MCPcopy Create free account
hub / github.com/angular/angular / nodeDebugInfo

Function nodeDebugInfo

packages/compiler-cli/src/ngtsc/util/src/typescript.ts:151–155  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

149}
150
151export function nodeDebugInfo(node: ts.Node): string {
152 const sf = getSourceFile(node);
153 const {line, character} = ts.getLineAndCharacterOfPosition(sf, node.pos);
154 return `[${sf.fileName}: ${ts.SyntaxKind[node.kind]} @ ${line}:${character}]`;
155}
156
157/**
158 * Resolve the specified `moduleName` using the given `compilerOptions` and `compilerHost`.

Callers 3

readHostDirectivesTypeFunction · 0.90

Calls 1

getSourceFileFunction · 0.85

Tested by

no test coverage detected