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

Method AddPropertyDef

IDEHelper/Compiler/BfCompiler.cpp:8806–8831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8804 }
8805
8806 void AddPropertyDef(BfTypeDef* typeDef, BfPropertyDef* propDef)
8807 {
8808 if (propDef->mName == "[]")
8809 {
8810 mResult += "[";
8811
8812 for (auto methodDef : propDef->mMethods)
8813 {
8814 if (methodDef->mMethodType == BfMethodType_PropertyGetter)
8815 {
8816 AddParams(methodDef, mResult);
8817 break;
8818 }
8819 }
8820
8821 mResult += "]";
8822 }
8823 else
8824 mResult += propDef->mName;
8825 mResult += "\t";
8826 auto refNode = propDef->GetRefNode();
8827 if (refNode == NULL)
8828 refNode = typeDef->GetRefNode();
8829 AddLocation(refNode);
8830 mResult += "\n";
8831 }
8832
8833 void GetGenericStr(BfMethodDef* methodDef, StringImpl& result)
8834 {

Callers 2

GetTypeDefMatchesMethod · 0.80
GetTypeDefInfoMethod · 0.80

Calls 1

GetRefNodeMethod · 0.45

Tested by

no test coverage detected