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

Function appendSources

src/ast/ast_derive_alias.cpp:217–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 bool appendSources ( const ProgramPtr & prog, Expression * expr, ExpressionSources & src, bool anyC, bool anyG ) {
218 SourceCollector srr(prog, anyC, anyG);
219 expr->visit(srr);
220 for ( auto s : srr.sources ) {
221 src.insert(s);
222 }
223 return srr.alwaysAliases;
224 }
225
226 Variable * intersectSources ( ExpressionSources & a, ExpressionSources & b ) {
227 if ( a.size() < b.size() ) {

Callers 1

preVisitMethod · 0.85

Calls 2

visitMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected