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

Method isCompatibleCast

src/ast/ast.cpp:273–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 }
272
273 bool Structure::isCompatibleCast ( const Structure & castS ) const {
274 if (this == &castS) {
275 return true;
276 }
277 auto *parentS = castS.parent;
278 while ( parentS ) {
279 if ( parentS == this ) {
280 return true;
281 }
282 parentS = parentS->parent;
283 }
284 return false;
285 }
286
287 bool Structure::hasAnyInitializers() const {
288 for ( const auto & fd : fields ) {

Callers 2

castStructMethod · 0.80
isSameTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected