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

Method findArgumentIndex

src/ast/ast_typedecl.cpp:3186–3191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3184 }
3185
3186 int TypeDecl::findArgumentIndex( const string & name ) const {
3187 for (size_t index=0, indexs=argNames.size(); index!=indexs; ++index) {
3188 if (argNames[index] == name) return int(index);
3189 }
3190 return -1;
3191 }
3192
3193 string TypeDecl::findBitfieldName ( uint64_t val ) const {
3194 if ( argNames.size() ) {

Callers 8

ast_NameNameFunction · 0.80
visitMethod · 0.80
setRefSpMethod · 0.80
visitMakeVariantFieldMethod · 0.80
structToTupleMethod · 0.80
tupleFieldIndexMethod · 0.80
variantFieldIndexMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected