MCPcopy Index your code
hub / github.com/antlr/codebuff / getEnclosingInstanceStack

Method getEnclosingInstanceStack

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

Source from the content-addressed store, hash-verified

1287 }
1288
1289 public static List<ST> getEnclosingInstanceStack(InstanceScope scope, boolean topdown) {
1290 List<ST> stack = new LinkedList<ST>();
1291 InstanceScope p = scope;
1292 while ( p!=null ) {
1293 if ( topdown ) stack.add(0, p.st);
1294 else stack.add(p.st);
1295 p = p.parent;
1296 }
1297 return stack;
1298 }
1299
1300 public static List<InstanceScope> getScopeStack(InstanceScope scope, boolean topdown) {
1301 List<InstanceScope> stack = new LinkedList<InstanceScope>();

Callers 2

updateStackMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected