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

Function getStartElementCount

test/fixtures/snapshot/typescript.js:61100–61103  ·  view source on GitHub ↗
(type, flags)

Source from the content-addressed store, hash-verified

61098 }
61099 // Return count of starting consecutive tuple elements of the given kind(s)
61100 function getStartElementCount(type, flags) {
61101 var index = ts.findIndex(type.elementFlags, function (f) { return !(f & flags); });
61102 return index >= 0 ? index : type.elementFlags.length;
61103 }
61104 // Return count of ending consecutive tuple elements of the given kind(s)
61105 function getEndElementCount(type, flags) {
61106 return type.elementFlags.length - ts.findLastIndex(type.elementFlags, function (f) { return !(f & flags); }) - 1;

Callers 1

propertiesRelatedToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected