* Builds the generator function body.
()
| 103948 | * Builds the generator function body. |
| 103949 | */ |
| 103950 | function build() { |
| 103951 | blockIndex = 0; |
| 103952 | labelNumber = 0; |
| 103953 | labelNumbers = undefined; |
| 103954 | lastOperationWasAbrupt = false; |
| 103955 | lastOperationWasCompletion = false; |
| 103956 | clauses = undefined; |
| 103957 | statements = undefined; |
| 103958 | exceptionBlockStack = undefined; |
| 103959 | currentExceptionBlock = undefined; |
| 103960 | withBlockStack = undefined; |
| 103961 | var buildResult = buildStatements(); |
| 103962 | return emitHelpers().createGeneratorHelper(ts.setEmitFlags(factory.createFunctionExpression( |
| 103963 | /*modifiers*/ undefined, |
| 103964 | /*asteriskToken*/ undefined, |
| 103965 | /*name*/ undefined, |
| 103966 | /*typeParameters*/ undefined, [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, state)], |
| 103967 | /*type*/ undefined, factory.createBlock(buildResult, |
| 103968 | /*multiLine*/ buildResult.length > 0)), 524288 /* EmitFlags.ReuseTempVariableScope */)); |
| 103969 | } |
| 103970 | /** |
| 103971 | * Builds the statements for the generator function body. |
| 103972 | */ |
no test coverage detected
searching dependent graphs…