MCPcopy Index your code
hub / github.com/nodejs/node / addTypeOnlyDeclarationRelatedInfo

Function addTypeOnlyDeclarationRelatedInfo

test/fixtures/snapshot/typescript.js:50085–50089  ·  view source on GitHub ↗
(diagnostic, typeOnlyDeclaration, unescapedName)

Source from the content-addressed store, hash-verified

50083 return result;
50084 }
50085 function addTypeOnlyDeclarationRelatedInfo(diagnostic, typeOnlyDeclaration, unescapedName) {
50086 if (!typeOnlyDeclaration)
50087 return diagnostic;
50088 return ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(typeOnlyDeclaration, typeOnlyDeclaration.kind === 275 /* SyntaxKind.ExportSpecifier */ ? ts.Diagnostics._0_was_exported_here : ts.Diagnostics._0_was_imported_here, unescapedName));
50089 }
50090 function getIsDeferredContext(location, lastLocation) {
50091 if (location.kind !== 214 /* SyntaxKind.ArrowFunction */ && location.kind !== 213 /* SyntaxKind.FunctionExpression */) {
50092 // initializers in instance property declaration of class like entities are executed in constructor and thus deferred

Callers 2

resolveNameHelperFunction · 0.85
checkAliasSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected