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

Method isSafeToDelete

src/ast/ast.cpp:641–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639 }
640
641 bool Structure::isSafeToDelete(das_set<Structure *> & dep) const { // &&
642 for ( const auto & fd : fields ) {
643 if ( fd.type && !fd.type->isSafeToDelete(dep) && fd.annotation.find("do_not_delete",Type::tBool)==nullptr ) {
644 return false;
645 }
646 }
647 return true;
648 }
649
650 bool Structure::isLocal(das_set<Structure *> & dep) const { // &&
651 for ( const auto & fd : fields ) {

Callers 2

visitMethod · 0.45

Calls 1

findMethod · 0.45

Tested by

no test coverage detected