MCPcopy Create free account
hub / github.com/crossoverJie/gscript / AddChild

Method AddChild

syntax/syntax.go:47–50  ·  view source on GitHub ↗
(child *ASTNode)

Source from the content-addressed store, hash-verified

45}
46
47func (a *ASTNode) AddChild(child *ASTNode) {
48 a.children = append(a.children, child)
49 child.parent = a
50}
51
52func (a *ASTNode) GetNodeType() ASTNodeType {
53 return a.nodeType

Callers 6

IntDeclareFunction · 0.95
ArithmeticOperatorsFunction · 0.95
ParseFunction · 0.95
AssignmentStatementFunction · 0.95
AdditiveLoopFunction · 0.80
MultiplicativeLoopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected