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

Function das_checkName

src/parser/parser_impl.cpp:25–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 void das_checkName ( yyscan_t scanner, const string & name, const LineInfo &at ) {
26 if ( name.length()>=2 && name[0]=='_' && name[1]=='_' ) {
27 yyextra->g_Program->error("names starting with __ are reserved, " + name,"","",at,CompilationError::invalid_name);
28 }
29 }
30
31 void appendDimExpr ( TypeDecl * typeDecl, Expression * dimExpr ) {
32 if ( dimExpr ) {

Callers 5

yyparseFunction · 0.85
yyparseFunction · 0.85
ast_structureNameFunction · 0.85
ast_addEmptyEnumFunction · 0.85
yyparseFunction · 0.85

Calls 2

lengthMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected