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

Method preVisitAlias

src/ast/ast_lint.cpp:489–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487 lintType(td);
488 }
489 virtual void preVisitAlias ( TypeDecl * td, const string & name ) override {
490 Visitor::preVisitAlias(td,name);
491 if ( !td->isAuto() ) {
492 if ( td->getSizeOf64()>0x7fffffff ) {
493 program->error("alias '" + name + "' is too big", "", "",
494 td->at, CompilationError::exceeds_type_alias );
495 }
496 }
497 }
498 virtual bool canVisitStructure ( Structure * st ) override {
499 return !st->isTemplate; // not a thing with templates
500 }

Callers

nothing calls this directly

Calls 3

isAutoMethod · 0.80
getSizeOf64Method · 0.45
errorMethod · 0.45

Tested by

no test coverage detected