MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / operator ()

Method operator ()

include/daScript/ast/ast_interop.h:84–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 defaultTempFn ( bool args, bool impl, bool result, bool econst )
83 : tempArgs(args), implicitArgs(impl), tempResult(result), explicitConstArgs(econst) {}
84 ___noinline bool operator () ( Function * fn ) {
85 if ( tempArgs || implicitArgs ) {
86 for ( auto & arg : fn->arguments ) {
87 if ( arg->type->isTempType() ) {
88 arg->type->temporary = tempArgs;
89 arg->type->implicit = implicitArgs;
90 arg->type->explicitConst = explicitConstArgs;
91 }
92 }
93 }
94 if ( tempResult ) {
95 if ( fn->result->isTempType() ) {
96 fn->result->temporary = true;
97 }
98 }
99 return true;
100 }
101 bool tempArgs = false;
102 bool implicitArgs = true;
103 bool tempResult = false;

Callers

nothing calls this directly

Calls 1

isTempTypeMethod · 0.80

Tested by

no test coverage detected