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

Method preVisit

src/ast/ast_const_folding.cpp:103–107  ·  view source on GitHub ↗

virtual bool canVisitStructureFieldInit ( Structure * ) override { return false; } virtual bool canVisitArgumentInit ( Function * , const VariablePtr &, Expression * ) override { return false; } virtual bool canVisitQuoteSubexpression ( ExprQuote * ) override { return false; } make block

Source from the content-addressed store, hash-verified

101 // virtual bool canVisitQuoteSubexpression ( ExprQuote * ) override { return false; }
102 // make block
103 virtual void preVisit ( ExprMakeBlock * expr ) override {
104 Visitor::preVisit(expr);
105 expr->noSideEffects = true;
106 expr->noNativeSideEffects = true;
107 }
108 // make generator
109 virtual void preVisit ( ExprMakeGenerator * expr ) override {
110 Visitor::preVisit(expr);

Callers

nothing calls this directly

Calls 4

preVisitFunction · 0.85
isHandleMethod · 0.80
isGoodTableTypeMethod · 0.80
isIndexMutableMethod · 0.45

Tested by

no test coverage detected