MCPcopy
hub / github.com/google/go-jsonnet / OpenFodder

Method OpenFodder

ast/ast.go:45–45  ·  view source on GitHub ↗

OpenFodder returns the fodder before the first token of an AST node. Since every AST node has opening fodder, it is defined here. If the AST node is left recursive (e.g. BinaryOp) then it is ambiguous where the fodder should be stored. This is resolved by storing it as far inside the tree as possib

()

Source from the content-addressed store, hash-verified

43 // far inside the tree as possible. OpenFodder returns a pointer to allow
44 // the caller to modify the fodder.
45 OpenFodder() *Fodder
46}
47
48// Nodes represents a Node slice.

Callers 4

VisitMethod · 0.65
unparseMethod · 0.65
VisitMethod · 0.65
openFodderFunction · 0.65

Implementers 1

NodeBaseast/ast.go

Calls

no outgoing calls

Tested by

no test coverage detected