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

Method getEnclosingInstanceStack

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

Source from the content-addressed store, hash-verified

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

Callers 2

updateStackMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected