MCPcopy Create free account
hub / github.com/angular/components / createFailureAtNode

Function createFailureAtNode

src/cdk/schematics/update-tool/migration.ts:83–90  ·  view source on GitHub ↗

Creates a failure with a specified message at the given node location.

(node: ts.Node, message: string)

Source from the content-addressed store, hash-verified

81
82 /** Creates a failure with a specified message at the given node location. */
83 protected createFailureAtNode(node: ts.Node, message: string) {
84 const sourceFile = node.getSourceFile();
85 this.failures.push({
86 filePath: this.fileSystem.resolve(sourceFile.fileName),
87 position: ts.getLineAndCharacterOfPosition(sourceFile, node.getStart()),
88 message: message,
89 });
90 }
91}

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected