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

Method find

src/ast/ast.cpp:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172
173 pair<ExpressionPtr,bool> Enumeration::find ( const string & na ) const {
174 auto it = find_if(list.begin(), list.end(), [&](const EnumEntry & arg){
175 return arg.name == na;
176 });
177 return it!=list.end() ?
178 pair<ExpressionPtr,bool>(it->value,true) :
179 pair<ExpressionPtr,bool>(nullptr,false);
180 }
181
182 int64_t Enumeration::find ( const string & na, int64_t def ) const {
183 auto it = find_if(list.begin(), list.end(), [&](const EnumEntry & arg){

Callers 15

make_positionalFunction · 0.45
InsertSyntheticTestCaseFunction · 0.45
RegisterInstantiationMethod · 0.45
SplitStringFunction · 0.45
GetIdMethod · 0.45
IsSubstringPredFunction · 0.45
FormatDeathTestOutputFunction · 0.45
OnThreadExitMethod · 0.45

Calls 5

getConstExprIntOrUIntFunction · 0.85
tryGetConstExprIntOrUIntFunction · 0.85
isIntegerMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by 15

make_positionalFunction · 0.36
InsertSyntheticTestCaseFunction · 0.36
RegisterInstantiationMethod · 0.36
SplitStringFunction · 0.36
GetIdMethod · 0.36
IsSubstringPredFunction · 0.36
FormatDeathTestOutputFunction · 0.36
OnThreadExitMethod · 0.36