* Reports a diagnostic error for the current token being an invalid name. * * @param blankDiagnostic Diagnostic to report for the case of the name being blank (matched tokenIfBlankName). * @param nameDiagnostic Diagnostic to report for all other cases. * @param to
(nameDiagnostic, blankDiagnostic, tokenIfBlankName)
| 32190 | * @param tokenIfBlankName Current token if the name was invalid for being blank (not provided / skipped). |
| 32191 | */ |
| 32192 | function parseErrorForInvalidName(nameDiagnostic, blankDiagnostic, tokenIfBlankName) { |
| 32193 | if (token() === tokenIfBlankName) { |
| 32194 | parseErrorAtCurrentToken(blankDiagnostic); |
| 32195 | } |
| 32196 | else { |
| 32197 | parseErrorAtCurrentToken(nameDiagnostic, scanner.getTokenValue()); |
| 32198 | } |
| 32199 | } |
| 32200 | function getSpaceSuggestion(expressionText) { |
| 32201 | for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) { |
| 32202 | var keyword = viableKeywordSuggestions_1[_i]; |
no test coverage detected
searching dependent graphs…