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

Method getEnclosingInstanceStack

output/java/1.4.19/Interpreter.java:1321–1330  ·  view source on GitHub ↗
(InstanceScope scope, boolean topdown)

Source from the content-addressed store, hash-verified

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

Callers 2

updateStackMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected