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