MCPcopy Create free account
hub / github.com/araddon/qlbridge / InlineIncludes

Function InlineIncludes

expr/include.go:25–27  ·  view source on GitHub ↗

InlineIncludes take an expression and resolve any includes so that the included expression is "Inline"

(ctx Includer, n Node)

Source from the content-addressed store, hash-verified

23// InlineIncludes take an expression and resolve any includes so that
24// the included expression is "Inline"
25func InlineIncludes(ctx Includer, n Node) (Node, error) {
26 return doInlineIncludes(ctx, n, 0)
27}
28func doInlineIncludes(ctx Includer, n Node, depth int) (Node, error) {
29 // We need to make a copy, so we lazily use the To/From pb
30 // We need the copy because we are going to mutate this node

Callers 2

TestInlineIncludesFunction · 0.92
TestDateMathFunction · 0.92

Calls 1

doInlineIncludesFunction · 0.85

Tested by 2

TestInlineIncludesFunction · 0.74
TestDateMathFunction · 0.74