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

Method preVisitModule

src/ast/ast_lint.cpp:473–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 return !isCppKeyword(str.c_str());
472 }
473 virtual void preVisitModule ( Module * mod ) override {
474 Visitor::preVisitModule(mod);
475 if ( !mod->name.empty() && !isValidModuleName(mod->name) ) {
476 program->error("invalid module name '" + mod->name + "'", "", "",
477 LineInfo(), CompilationError::invalid_module_name );
478 }
479 }
480 void lintType ( TypeDecl * td ) {
481 if ( td->firstType ) lintType(td->firstType);
482 if ( td->secondType ) lintType(td->secondType);

Callers 1

visitModuleMethod · 0.45

Calls 3

LineInfoClass · 0.50
emptyMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected