(InstanceScope scope, boolean topdown)
| 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>(); |
no test coverage detected