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

Function parseTypeOperatorOrHigher

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

Source from the content-addressed store, hash-verified

34130 return finishNode(factory.createInferTypeNode(parseTypeParameterOfInferType()), pos);
34131 }
34132 function parseTypeOperatorOrHigher() {
34133 var operator = token();
34134 switch (operator) {
34135 case 140 /* SyntaxKind.KeyOfKeyword */:
34136 case 154 /* SyntaxKind.UniqueKeyword */:
34137 case 145 /* SyntaxKind.ReadonlyKeyword */:
34138 return parseTypeOperator(operator);
34139 case 137 /* SyntaxKind.InferKeyword */:
34140 return parseInferType();
34141 }
34142 return allowConditionalTypesAnd(parsePostfixTypeOrHigher);
34143 }
34144 function parseFunctionOrConstructorTypeToError(isInUnionType) {
34145 // the function type and constructor type shorthand notation
34146 // are not allowed directly in unions and intersections, but we'll

Callers 1

parseTypeOperatorFunction · 0.85

Calls 4

parseTypeOperatorFunction · 0.85
parseInferTypeFunction · 0.85
allowConditionalTypesAndFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected