MCPcopy Create free account
hub / github.com/nodejs/node / positionIsASICandidate

Function positionIsASICandidate

test/fixtures/snapshot/typescript.js:129066–129074  ·  view source on GitHub ↗
(pos, context, sourceFile)

Source from the content-addressed store, hash-verified

129064 return startLine !== endLine;
129065 }
129066 function positionIsASICandidate(pos, context, sourceFile) {
129067 var contextAncestor = ts.findAncestor(context, function (ancestor) {
129068 if (ancestor.end !== pos) {
129069 return "quit";
129070 }
129071 return ts.syntaxMayBeASICandidate(ancestor.kind);
129072 });
129073 return !!contextAncestor && nodeIsASICandidate(contextAncestor, sourceFile);
129074 }
129075 ts.positionIsASICandidate = positionIsASICandidate;
129076 function probablyUsesSemicolons(sourceFile) {
129077 var withSemicolon = 0;

Callers

nothing calls this directly

Calls 1

nodeIsASICandidateFunction · 0.85

Tested by

no test coverage detected