github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/ast/cxx_member_call_expr.go (about) 1 package ast 2 3 // CXXMemberCallExpr struct 4 type CXXMemberCallExpr struct { 5 *CallExpr 6 } 7 8 func parseCXXMemberCallExpr(line string) *CXXMemberCallExpr { 9 return &CXXMemberCallExpr{parseCallExpr(line)} 10 } 11 12 // AddChild adds a new child node. Child nodes can then be accessed with the 13 // Children attribute. 14 func (n *CXXMemberCallExpr) AddChild(node Node) { 15 n.ChildNodes = append(n.ChildNodes, node) 16 } 17 18 // Address returns the numeric address of the node. See the documentation for 19 // the Address type for more information. 20 func (n *CXXMemberCallExpr) Address() Address { 21 return n.Addr 22 } 23 24 // Children returns the child nodes. If this node does not have any children or 25 // this node does not support children it will always return an empty slice. 26 func (n *CXXMemberCallExpr) Children() []Node { 27 return n.ChildNodes 28 } 29 30 // Position returns the position in the original source code. 31 func (n *CXXMemberCallExpr) Position() Position { 32 return n.Pos 33 }