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

Method isGeneric

src/ast/ast.cpp:920–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918 }
919
920 bool Function::isGeneric() const {
921 for ( const auto & ann : annotations ) {
922 if (ann->annotation) {
923 auto fna = static_cast<FunctionAnnotation*>(ann->annotation);
924 if (fna->isGeneric()) {
925 return true;
926 }
927 }
928 }
929 for ( auto & arg : arguments ) {
930 if ( arg->type->isAuto() && !arg->init ) {
931 return true;
932 }
933 }
934 return false;
935 }
936
937 string Function::getAotArgumentPrefix(ExprCallFunc * call, int argIndex) const {
938 for ( auto & ann : annotations ) {

Callers 5

yyparseFunction · 0.45
yyparseFunction · 0.45
ast_structVarDefAbstractFunction · 0.45
ast_structVarDefFunction · 0.45
yyparseFunction · 0.45

Calls 1

isAutoMethod · 0.80

Tested by

no test coverage detected