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

Function isStartOfFunctionTypeOrConstructorType

test/fixtures/snapshot/typescript.js:34191–34200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34189 return token() === 103 /* SyntaxKind.NewKeyword */;
34190 }
34191 function isStartOfFunctionTypeOrConstructorType() {
34192 if (token() === 29 /* SyntaxKind.LessThanToken */) {
34193 return true;
34194 }
34195 if (token() === 20 /* SyntaxKind.OpenParenToken */ && lookAhead(isUnambiguouslyStartOfFunctionType)) {
34196 return true;
34197 }
34198 return token() === 103 /* SyntaxKind.NewKeyword */ ||
34199 token() === 126 /* SyntaxKind.AbstractKeyword */ && lookAhead(nextTokenIsNewKeyword);
34200 }
34201 function skipParameterStart() {
34202 if (ts.isModifierKind(token())) {
34203 // Skip modifiers

Callers 2

parseTypeFunction · 0.85

Calls 2

lookAheadFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected