(InstanceScope scope, boolean topdown)
| 1299 | } |
| 1300 | |
| 1301 | public static List<ST> getEnclosingInstanceStack(InstanceScope scope, boolean topdown) { |
| 1302 | List<ST> stack = new LinkedList<ST>(); |
| 1303 | InstanceScope p = scope; |
| 1304 | while ( p !=null ) { |
| 1305 | if ( topdown ) stack.add(0, p.st); |
| 1306 | else stack.add(p.st); |
| 1307 | p = p.parent; |
| 1308 | } |
| 1309 | return stack; |
| 1310 | } |
| 1311 | |
| 1312 | public static List<InstanceScope> getScopeStack(InstanceScope scope, boolean topdown) { |
| 1313 | List<InstanceScope> stack = new LinkedList<InstanceScope>(); |
no test coverage detected