()
| 79436 | } |
| 79437 | return type; |
| 79438 | function checkYieldExpressionGrammar() { |
| 79439 | if (!(node.flags & 8192 /* NodeFlags.YieldContext */)) { |
| 79440 | grammarErrorOnFirstToken(node, ts.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); |
| 79441 | } |
| 79442 | if (isInParameterInitializerBeforeContainingFunction(node)) { |
| 79443 | error(node, ts.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); |
| 79444 | } |
| 79445 | } |
| 79446 | } |
| 79447 | function checkConditionalExpression(node, checkMode) { |
| 79448 | checkTruthinessExpression(node.condition); |
nothing calls this directly
no test coverage detected
searching dependent graphs…