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

Method canCloneFromConst

src/ast/ast.cpp:391–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389 }
390
391 bool Structure::canCloneFromConst() const {
392 if ( circularGuard ) return true;
393 circularGuard = true;
394 for ( const auto & fd : fields ) {
395 if ( !fd.type->canCloneFromConst() ) {
396 circularGuard = false;
397 return false;
398 }
399 }
400 circularGuard = false;
401 return true;
402 }
403
404 bool Structure::canClone() const {
405 if ( circularGuard ) return true;

Callers 5

visitMethod · 0.45
canCopyOrMoveTypeMethod · 0.45
visitMethod · 0.45
makeCloneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected