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

Method isCtorInitialized

src/ast/ast.cpp:737–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735 }
736
737 bool Variable::isCtorInitialized() const {
738 if ( !init ) {
739 return false;
740 }
741 if ( !type->hasNonTrivialCtor() ) {
742 return false;
743 }
744 if ( init->rtti_isCallFunc() ) {
745 auto cfun = static_cast<ExprCallFunc*>(init);
746 if ( cfun->func && cfun->func->isTypeConstructor ) {
747 return true;
748 }
749 }
750 return false;
751 }
752
753 // function
754

Callers 2

visitLetInitMethod · 0.80
sv_simulateLetInitMethod · 0.80

Calls 1

hasNonTrivialCtorMethod · 0.45

Tested by

no test coverage detected