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

Function GetAttributesTargetListString

IDEHelper/Compiler/BfModule.cpp:12100–12128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12098}
12099
12100static String GetAttributesTargetListString(BfAttributeTargets attrTarget)
12101{
12102 String resultStr;
12103 auto flagsLeft = attrTarget;
12104 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Assembly, resultStr, "assembly declarations");
12105 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Module, resultStr, "module declarations");
12106 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Class, resultStr, "class declarations");
12107 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Struct, resultStr, "struct declarations");
12108 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Enum, resultStr, "enum declarations");
12109 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Constructor, resultStr, "constructor declarations");
12110 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Method, resultStr, "method declarations");
12111 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Property, resultStr, "property declarations");
12112 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Field, resultStr, "field declarations");
12113 AddAttributeTargetName(flagsLeft, BfAttributeTargets_StaticField, resultStr, "static field declarations");
12114 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Interface, resultStr, "interface declarations");
12115 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Parameter, resultStr, "parameter declarations");
12116 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Delegate, resultStr, "delegate declarations");
12117 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Function, resultStr, "function declarations");
12118 AddAttributeTargetName(flagsLeft, BfAttributeTargets_ReturnValue, resultStr, "return value");
12119 AddAttributeTargetName(flagsLeft, BfAttributeTargets_GenericParameter, resultStr, "generic parameters");
12120 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Invocation, resultStr, "invocations");
12121 AddAttributeTargetName(flagsLeft, BfAttributeTargets_MemberAccess, resultStr, "member access");
12122 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Alloc, resultStr, "allocations");
12123 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Alias, resultStr, "aliases");
12124 AddAttributeTargetName(flagsLeft, BfAttributeTargets_Block, resultStr, "blocks");
12125 if (resultStr.IsEmpty())
12126 return "<nothing>";
12127 return resultStr;
12128}
12129
12130BfIRType BfModule::CurrentAddToConstHolder(BfIRType irType)
12131{

Callers 2

GetCustomAttributesMethod · 0.85

Calls 2

AddAttributeTargetNameFunction · 0.85
IsEmptyMethod · 0.45

Tested by

no test coverage detected