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

Function getMutableArrayOrTupleType

test/fixtures/snapshot/typescript.js:75542–75547  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

75540 return getInferredTypes(context);
75541 }
75542 function getMutableArrayOrTupleType(type) {
75543 return type.flags & 1048576 /* TypeFlags.Union */ ? mapType(type, getMutableArrayOrTupleType) :
75544 type.flags & 1 /* TypeFlags.Any */ || isMutableArrayOrTuple(getBaseConstraintOfType(type) || type) ? type :
75545 isTupleType(type) ? createTupleType(getTypeArguments(type), type.target.elementFlags, /*readonly*/ false, type.target.labeledElementDeclarations) :
75546 createTupleType([type], [8 /* ElementFlags.Variadic */]);
75547 }
75548 function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) {
75549 if (index >= argCount - 1) {
75550 var arg = args[argCount - 1];

Callers 1

getSpreadArgumentTypeFunction · 0.85

Calls 6

mapTypeFunction · 0.85
isMutableArrayOrTupleFunction · 0.85
getBaseConstraintOfTypeFunction · 0.85
isTupleTypeFunction · 0.85
createTupleTypeFunction · 0.85
getTypeArgumentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…