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

Method canCopy

src/ast/ast.cpp:365–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 bool Structure::canCopy(bool tempMatters) const {
366 if ( circularGuard ) return true;
367 circularGuard = true;
368 for ( const auto & fd : fields ) {
369 if ( !fd.type->canCopy(tempMatters) ) {
370 circularGuard = false;
371 return false;
372 }
373 }
374 circularGuard = false;
375 return true;
376 }
377
378 bool Structure::canMove() const {
379 if ( circularGuard ) return true;

Callers 15

visitStructureFieldMethod · 0.45
visitGlobalLetInitMethod · 0.45
visitMethod · 0.45
visitLetInitMethod · 0.45
preVisitMethod · 0.45
visitMethod · 0.45
generateComprehensionFunction · 0.45
generateLambdaMakeStructFunction · 0.45
setBlockCopyMoveFlagsMethod · 0.45
inferReturnTypeMethod · 0.45
sv_makeLocalCMResCopyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected