InlineIncludes take an expression and resolve any includes so that the included expression is "Inline"
(ctx Includer, n Node)
| 23 | // InlineIncludes take an expression and resolve any includes so that |
| 24 | // the included expression is "Inline" |
| 25 | func InlineIncludes(ctx Includer, n Node) (Node, error) { |
| 26 | return doInlineIncludes(ctx, n, 0) |
| 27 | } |
| 28 | func 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 |