MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / hasFlag

Function hasFlag

packages/transpiler/src/BuilderHelpers.ts:136–138  ·  view source on GitHub ↗
(type: ts.Type, flag: ts.TypeFlags)

Source from the content-addressed store, hash-verified

134}
135
136export function hasFlag(type: ts.Type, flag: ts.TypeFlags): boolean {
137 return (type.flags & flag) === flag;
138}
139
140export function isMap(type: ts.Type | null): boolean {
141 return !!(type && type.symbol?.name === 'Map');

Callers 3

isPrimitiveTypeFunction · 0.70
isNumberTypeFunction · 0.70
isEnumTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected