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