(InstanceScope scope, boolean topdown)
| 1315 | } |
| 1316 | |
| 1317 | public static List<ST> getEnclosingInstanceStack(InstanceScope scope, boolean topdown) { |
| 1318 | List<ST> stack = new LinkedList<ST>(); |
| 1319 | InstanceScope p = scope; |
| 1320 | while ( p !=null ) { |
| 1321 | if ( topdown ) stack.add(0, p.st); |
| 1322 | else stack.add(p.st); |
| 1323 | p = p.parent; |
| 1324 | } |
| 1325 | return stack; |
| 1326 | } |
| 1327 | |
| 1328 | public static List<InstanceScope> getScopeStack(InstanceScope scope, boolean topdown) { |
| 1329 | List<InstanceScope> stack = new LinkedList<InstanceScope>(); |
no test coverage detected