(node, errorMessage)
| 85403 | return false; |
| 85404 | } |
| 85405 | function checkGrammarModuleElementContext(node, errorMessage) { |
| 85406 | var isInAppropriateContext = node.parent.kind === 305 /* SyntaxKind.SourceFile */ || node.parent.kind === 262 /* SyntaxKind.ModuleBlock */ || node.parent.kind === 261 /* SyntaxKind.ModuleDeclaration */; |
| 85407 | if (!isInAppropriateContext) { |
| 85408 | grammarErrorOnFirstToken(node, errorMessage); |
| 85409 | } |
| 85410 | return !isInAppropriateContext; |
| 85411 | } |
| 85412 | function importClauseContainsReferencedImport(importClause) { |
| 85413 | return ts.forEachImportClauseDeclaration(importClause, function (declaration) { |
| 85414 | return !!getSymbolOfNode(declaration).isReferenced; |
no test coverage detected
searching dependent graphs…