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

Class VariableNameAndPosition

src/parser/parser_impl.h:18–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 };
17
18 struct VariableNameAndPosition {
19 string name;
20 string aka;
21 LineInfo at;
22 ExpressionPtr tag = nullptr;
23 bool isTupleExpansion = false;
24 VariableNameAndPosition ( const string & n, const string & a, const LineInfo & At, Expression * t = nullptr )
25 : name(n), aka(a), at(At), tag(t) {}
26 VariableNameAndPosition ( vector<string> * n, const LineInfo & At ) {
27 isTupleExpansion = true;
28 TextWriter ss;
29 bool first = true;
30 for ( auto & na : *n ) {
31 if ( first ) first = false; else ss << "`";
32 ss << na;
33 }
34 name = ss.str();
35 at = At;
36 delete n;
37 }
38 };
39
40 struct VariableDeclaration {
41 VariableDeclaration ( vector<string> * n, const LineInfo & at, TypeDecl * t, Expression * i )

Callers 6

yyparseFunction · 0.85
yyparseFunction · 0.85
VariableDeclarationMethod · 0.85
ast_structVarDefAbstractFunction · 0.85
ast_structVarDefFunction · 0.85
yyparseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected