MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getCodeOfPolicyOptions

Function getCodeOfPolicyOptions

src/builtin/module_builtin_rtti.cpp:975–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973 };
974
975 vector<pair<string,Type>> getCodeOfPolicyOptions() {
976 vector<pair<string,Type>> options;
977 Module dummyMod;
978 ModuleLibrary dummy(&dummyMod);
979 auto cop = new CodeOfPoliciesAnnotation(dummy);
980 for ( auto & f : cop->fields ) {
981 if ( f.second.decl->isWorkhorseType() ) {
982 auto bT = f.second.decl->baseType;
983 switch ( bT ) {
984 case Type::tUInt: bT = Type::tInt; break;
985 default: break;
986 }
987 options.push_back({f.first,bT});
988 }
989 }
990 return options;
991 }
992
993
994 struct DebugInfoHelperAnnotation : ManagedStructureAnnotation<DebugInfoHelper> {

Callers 1

lintMethod · 0.85

Calls 2

isWorkhorseTypeMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected