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

Method find

src/ast/ast_module.cpp:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 // ANNOTATION
62
63 const AnnotationArgument * AnnotationArgumentList::find ( const string & name, Type type ) const {
64 auto it = find_if(begin(), end(), [&](const AnnotationArgument & arg){
65 return (arg.name==name) && (type==Type::tVoid || type==arg.type);
66 });
67 return it==end() ? nullptr : &*it;
68 }
69
70 bool AnnotationArgumentList::getBoolOption(const string & name, bool def) const {
71 auto arg = find(name, Type::tBool);

Callers 15

getOptionTypeMethod · 0.45
registerAnnotationMethod · 0.45
addAnnotationMethod · 0.45
replaceFunctionMethod · 0.45
findAliasMethod · 0.45
findVariableMethod · 0.45
findFunctionMethod · 0.45
findGenericMethod · 0.45
findUniqueFunctionMethod · 0.45
findStructureMethod · 0.45

Calls 2

beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected