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

Method AddTypeInstanceEntry

IDEHelper/Compiler/BfAutoComplete.cpp:3408–3417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3406}
3407
3408void BfAutoComplete::AddTypeInstanceEntry(BfTypeInstance* typeInst)
3409{
3410 String bestTypeName = mModule->TypeToString(typeInst, BfTypeNameFlag_ReduceName);
3411
3412 if (typeInst->IsValueType())
3413 AddEntry(AutoCompleteEntry("valuetype", bestTypeName));
3414 else
3415 AddEntry(AutoCompleteEntry("class", bestTypeName));
3416 mDefaultSelection = bestTypeName;
3417}
3418
3419bool BfAutoComplete::CheckDocumentation(AutoCompleteEntry* entry, BfCommentNode* documentation)
3420{

Callers 1

Calls 3

AutoCompleteEntryClass · 0.85
TypeToStringMethod · 0.45
IsValueTypeMethod · 0.45

Tested by

no test coverage detected