(statement)
| 11503 | }; |
| 11504 | |
| 11505 | function transformStatement(statement) { |
| 11506 | if(fieldTest.test(statement)) { |
| 11507 | var attrAndType = attrAndTypeRegex.exec(statement); |
| 11508 | var definitions = statement.substring(attrAndType[0].length).split(","); |
| 11509 | var defaultTypeValue = getDefaultValueForType(attrAndType[2]); |
| 11510 | for(var i=0; i < definitions.length; ++i) { |
| 11511 | definitions[i] = transformVarDefinition(definitions[i], defaultTypeValue); |
| 11512 | } |
| 11513 | return new AstVar(definitions, attrAndType[2]); |
| 11514 | } else { |
| 11515 | return new AstStatement(transformExpression(statement)); |
| 11516 | } |
| 11517 | } |
| 11518 | |
| 11519 | function AstForExpression(initStatement, condition, step) { |
| 11520 | this.initStatement = initStatement; |
no test coverage detected