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

Function append

src/ast/ast_typedecl.cpp:3398–3409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3396 }
3397
3398 void append ( TypeAliasMap & aliases, const TypeDeclPtr & td, bool viaPointer ) {
3399 auto mname = td->getMangledName();
3400 auto & aMain = aliases[mname];
3401 aMain.first = td;
3402 aMain.second |= viaPointer;
3403 if ( td->isBaseVectorType() ) {
3404 auto bt = new TypeDecl(td->getVectorBaseType());
3405 auto & aSub = aliases[bt->getMangledName()];
3406 aSub.first = bt;
3407 aSub.second |= viaPointer;
3408 }
3409 }
3410
3411 void TypeDecl::collectAliasing ( TypeAliasMap & aliases, das_set<Structure *> & dep, bool viaPointer ) const {
3412 append(aliases, (TypeDecl *) this, viaPointer);

Callers 3

collectAliasingMethod · 0.70
appendMethod · 0.50

Calls 3

isBaseVectorTypeMethod · 0.80
getVectorBaseTypeMethod · 0.80
getMangledNameMethod · 0.45

Tested by

no test coverage detected