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

Function NewASTNode

syntax/syntax.go:43–45  ·  view source on GitHub ↗
(nodeType ASTNodeType, text string)

Source from the content-addressed store, hash-verified

41)
42
43func NewASTNode(nodeType ASTNodeType, text string) *ASTNode {
44 return &ASTNode{nodeType: nodeType, text: text}
45}
46
47func (a *ASTNode) AddChild(child *ASTNode) {
48 a.children = append(a.children, child)

Callers 7

IntDeclareFunction · 0.85
AdditiveLoopFunction · 0.85
MultiplicativeLoopFunction · 0.85
PrimaryFunction · 0.85
ArithmeticOperatorsFunction · 0.85
ParseFunction · 0.85
AssignmentStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected