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

Function isStartOfMappedType

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

Source from the content-addressed store, hash-verified

33772 return members;
33773 }
33774 function isStartOfMappedType() {
33775 nextToken();
33776 if (token() === 39 /* SyntaxKind.PlusToken */ || token() === 40 /* SyntaxKind.MinusToken */) {
33777 return nextToken() === 145 /* SyntaxKind.ReadonlyKeyword */;
33778 }
33779 if (token() === 145 /* SyntaxKind.ReadonlyKeyword */) {
33780 nextToken();
33781 }
33782 return token() === 22 /* SyntaxKind.OpenBracketToken */ && nextTokenIsIdentifier() && nextToken() === 101 /* SyntaxKind.InKeyword */;
33783 }
33784 function parseMappedTypeParameter() {
33785 var pos = getNodePos();
33786 var name = parseIdentifierName();

Callers

nothing calls this directly

Calls 3

nextTokenFunction · 0.85
nextTokenIsIdentifierFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected