MCPcopy Create free account
hub / github.com/apache/pig / traverse

Method traverse

src/org/apache/pig/parser/QueryParserDriver.java:384–396  ·  view source on GitHub ↗
(Tree t, List<CommonTree> macroNodes,
            List<CommonTree> inlineNodes)

Source from the content-addressed store, hash-verified

382 }
383
384 static void traverse(Tree t, List<CommonTree> macroNodes,
385 List<CommonTree> inlineNodes) {
386 if (t.getText().equals(MACRO_DEF)) {
387 macroNodes.add((CommonTree) t.getParent());
388 } else if (t.getText().equals(MACRO_INLINE)) {
389 inlineNodes.add((CommonTree) t);
390 }
391 int n = t.getChildCount();
392 for (int i = 0; i < n; i++) {
393 Tree t0 = t.getChild(i);
394 traverse(t0, macroNodes, inlineNodes);
395 }
396 }
397
398 private FetchFileRet getMacroFile(String fname) {
399 FetchFileRet localFileRet = null;

Callers 2

expandMacroMethod · 0.95
processPigMethod · 0.95

Calls 2

addMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected