github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/c4go_error_node.go (about) 1 package ast 2 3 // C4goErrorNode is error node type 4 type C4goErrorNode struct { 5 } 6 7 // AddChild adds a new child node. Child nodes can then be accessed with the 8 // Children attribute. 9 func (n C4goErrorNode) AddChild(_ Node) { 10 panic("Not acceptable to use for that node") 11 } 12 13 // Address returns the numeric address of the node. See the documentation for 14 // the Address type for more information. 15 func (n C4goErrorNode) Address() (a Address) { 16 panic("Not acceptable to use for that node") 17 } 18 19 // Children returns the child nodes. If this node does not have any children or 20 // this node does not support children it will always return an empty slice. 21 func (n C4goErrorNode) Children() (node []Node) { 22 panic("Not acceptable to use for that node") 23 } 24 25 // Position returns the position in the original source code. 26 func (n C4goErrorNode) Position() (p Position) { 27 panic("Not acceptable to use for that node") 28 }