MCPcopy Create free account
hub / github.com/antlr/codebuff / getEnclosingInstanceStack

Method getEnclosingInstanceStack

output/java/1.4.15/Interpreter.java:1317–1326  ·  view source on GitHub ↗
(InstanceScope scope, boolean topdown)

Source from the content-addressed store, hash-verified

1315 }
1316
1317 public static List<ST> getEnclosingInstanceStack(InstanceScope scope, boolean topdown) {
1318 List<ST> stack = new LinkedList<ST>();
1319 InstanceScope p = scope;
1320 while ( p !=null ) {
1321 if ( topdown ) stack.add(0, p.st);
1322 else stack.add(p.st);
1323 p = p.parent;
1324 }
1325 return stack;
1326 }
1327
1328 public static List<InstanceScope> getScopeStack(InstanceScope scope, boolean topdown) {
1329 List<InstanceScope> stack = new LinkedList<InstanceScope>();

Callers 2

updateStackMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected