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

Method visit

src/ast/ast_lint.cpp:831–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829 }
830 }
831 virtual ExpressionPtr visit ( ExprInvoke * expr ) override {
832 Visitor::visit(expr);
833 if ( expr->isInvokeMethod ) {
834 auto arg0 = expr->arguments[0];
835 if ( arg0->rtti_isR2V() ) {
836 arg0 = static_cast<ExprRef2Value*>(arg0)->subexpr;
837 }
838 if ( arg0->rtti_isField() ) {
839 auto field = static_cast<ExprField*>(arg0);
840 if ( field->value->rtti_isTypeDecl() ) {
841 usedTypeExprs.erase(field->value);
842 }
843 }
844 }
845 return expr;
846 }
847 virtual ExpressionPtr visit ( ExprCall * expr ) override {
848 Visitor::visit(expr);
849 if ( expr->func ) {

Callers

nothing calls this directly

Calls 8

findChainCtorAncestorFunction · 0.85
reduceSuperCountFunction · 0.85
countSuperCallsFunction · 0.85
isAccessDummyMethod · 0.80
visitFunction · 0.50
eraseMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected