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

Method canMove

src/ast/ast.cpp:378–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 }
377
378 bool Structure::canMove() const {
379 if ( circularGuard ) return true;
380 circularGuard = true;
381 for ( const auto & fd : fields ) {
382 if ( !fd.type->canMove() ) {
383 circularGuard = false;
384 return false;
385 }
386 }
387 circularGuard = false;
388 return true;
389 }
390
391 bool Structure::canCloneFromConst() const {
392 if ( circularGuard ) return true;

Callers 15

visitStructureFieldMethod · 0.45
visitGlobalLetInitMethod · 0.45
visitMethod · 0.45
visitLetInitMethod · 0.45
visitMethod · 0.45
setBlockCopyMoveFlagsMethod · 0.45
inferReturnTypeMethod · 0.45
getDetailsAndSuggestsMethod · 0.45
canRelaxAssignMethod · 0.45
sv_simulateLetInitMethod · 0.45
constructMethod · 0.45
constructExternalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected