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

Method getEnclosingInstanceStack

output/java/1.4.14/Interpreter.java:1313–1322  ·  view source on GitHub ↗
(InstanceScope scope, boolean topdown)

Source from the content-addressed store, hash-verified

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

Callers 2

updateStackMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected