(statements)
| 11988 | }; |
| 11989 | |
| 11990 | function getLocalNames(statements) { |
| 11991 | var localNames = []; |
| 11992 | for(var i=0,l=statements.length;i<l;++i) { |
| 11993 | var statement = statements[i]; |
| 11994 | if(statement instanceof AstVar) { |
| 11995 | localNames = localNames.concat(statement.getNames()); |
| 11996 | } else if(statement instanceof AstForStatement && |
| 11997 | statement.argument.initStatement instanceof AstVar) { |
| 11998 | localNames = localNames.concat(statement.argument.initStatement.getNames()); |
| 11999 | } |
| 12000 | } |
| 12001 | return appendToLookupTable({}, localNames); |
| 12002 | } |
| 12003 | |
| 12004 | function AstStatementsBlock(statements) { |
| 12005 | this.statements = statements; |
no test coverage detected