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

Method runVisitor

src/runtime/context.cpp:1205–1214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203 }
1204
1205 void Context::runVisitor ( SimVisitor * vis ) const {
1206 for ( int gvi=0, gvis=totalVariables; gvi!=gvis; ++gvi ) {
1207 const auto & gv = globalVariables[gvi];
1208 if ( gv.init ) gv.init->visit(*vis);
1209 }
1210 for ( int fni=0, fnis=totalFunctions; fni!=fnis; ++fni ) {
1211 const auto & fn = functions[fni];
1212 if ( fn.code ) fn.code->visit(*vis);
1213 }
1214 }
1215
1216 void Context::onAllocateString ( void * ptr, uint64_t size, bool tempString, const LineInfo & at ) {
1217 if ( g_envTotal == 0 ) return;

Callers

nothing calls this directly

Calls 1

visitMethod · 0.45

Tested by

no test coverage detected