| 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> { |
no test coverage detected