MCPcopy Create free account
hub / github.com/beefytech/Beef / IsEnum

Method IsEnum

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:186–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184//////////////////////////////////////////////////////////////////////////
185
186bool BfGenericParamInstance::IsEnum()
187{
188 if ((mGenericParamFlags & BfGenericParamFlag_Enum) != 0)
189 return true;
190 if (mTypeConstraint != NULL)
191 {
192 auto module = mTypeConstraint->GetModule();
193 if ((module != NULL) && (mTypeConstraint->IsInstanceOf(module->mCompiler->mEnumTypeDef)))
194 return true;
195 }
196 return true;
197 return false;
198}
199
200//////////////////////////////////////////////////////////////////////////
201

Callers 15

HandleCaseBindMethod · 0.45
VisitMethod · 0.45
ResolveConstFieldMethod · 0.45
CreateTypeDataMethod · 0.45
AggregateSplatMethod · 0.45
ExtractValueMethod · 0.45
SetupIRMethodMethod · 0.45
ProcessMethodMethod · 0.45

Calls 2

GetModuleMethod · 0.45
IsInstanceOfMethod · 0.45

Tested by

no test coverage detected