MCPcopy Create free account
hub / github.com/apache/groovy / getAST

Method getAST

src/test/groovy/org/codehaus/groovy/ast/ASTTest.java:32–38  ·  view source on GitHub ↗
(String source, int untilPhase)

Source from the content-addressed store, hash-verified

30public abstract class ASTTest extends TestCase {
31
32 public ModuleNode getAST(String source, int untilPhase) {
33 SourceUnit unit = SourceUnit.create("Test", source);
34 CompilationUnit compUnit = new CompilationUnit();
35 compUnit.addSource(unit);
36 compUnit.compile(untilPhase);
37 return unit.getAST();
38 }
39
40 public ModuleNode getAST(String source) {
41 return getAST(source, Phases.SEMANTIC_ANALYSIS);

Callers 12

visitMethod · 0.45
visitMethod · 0.45
resolveVariableScopesMethod · 0.45
enclosingClassNodeMethod · 0.45
visitMethod · 0.45
callMethod · 0.45
getTransformerMethod · 0.45

Calls 4

createMethod · 0.95
addSourceMethod · 0.95
compileMethod · 0.95
getASTMethod · 0.95

Tested by

no test coverage detected