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

Method getEnclosingInstanceStack

output/java8/1.4.12/Interpreter.java:1262–1271  ·  view source on GitHub ↗
(InstanceScope scope, boolean topdown)

Source from the content-addressed store, hash-verified

1260 }
1261
1262 public static List<ST> getEnclosingInstanceStack(InstanceScope scope, boolean topdown) {
1263 List<ST> stack = new LinkedList<ST>();
1264 InstanceScope p = scope;
1265 while ( p!=null ) {
1266 if ( topdown ) stack.add(0, p.st);
1267 else stack.add(p.st);
1268 p = p.parent;
1269 }
1270 return stack;
1271 }
1272
1273 public static List<InstanceScope> getScopeStack(InstanceScope scope, boolean topdown) {
1274 List<InstanceScope> stack = new LinkedList<InstanceScope>();

Callers 2

updateStackMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected