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

Function lookupOrIssueError

test/fixtures/snapshot/typescript.js:48993–49005  ·  view source on GitHub ↗
(location, message, arg0, arg1, arg2, arg3)

Source from the content-addressed store, hash-verified

48991 return emitResolver;
48992 }
48993 function lookupOrIssueError(location, message, arg0, arg1, arg2, arg3) {
48994 var diagnostic = location
48995 ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3)
48996 : ts.createCompilerDiagnostic(message, arg0, arg1, arg2, arg3);
48997 var existing = diagnostics.lookup(diagnostic);
48998 if (existing) {
48999 return existing;
49000 }
49001 else {
49002 diagnostics.add(diagnostic);
49003 return diagnostic;
49004 }
49005 }
49006 function errorSkippedOn(key, location, message, arg0, arg1, arg2, arg3) {
49007 var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
49008 diagnostic.skippedOn = key;

Callers 1

Calls 2

addMethod · 0.65
lookupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…