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

Method getEnclosingInstanceStack

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

Source from the content-addressed store, hash-verified

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

Callers 2

updateStackMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected