MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onError

Method onError

compiler/companion/src/JSXProcessor.ts:1360–1363  ·  view source on GitHub ↗
(node: ts.Node, message: string)

Source from the content-addressed store, hash-verified

1358 }
1359
1360 private onError(node: ts.Node, message: string): never {
1361 const { line, character } = node.getSourceFile().getLineAndCharacterOfPosition(node.getStart());
1362 throw new Error(`${message} at (${line + 1},${character + 1}) (node content: ${node.getText()})`);
1363 }
1364
1365 private log(node: ts.Node, message: string) {
1366 const { line, character } = node.getSourceFile().getLineAndCharacterOfPosition(node.getStart());

Calls 2

getTextMethod · 0.65
getSourceFileMethod · 0.45

Tested by

no test coverage detected