Home | History | Annotate | Download | only in compiler

Lines Matching refs:variable

156         const TVariable* variable;
163 variable = fakeVariable;
165 // This identifier can only be a variable type symbol
167 context->error($1.line, "variable expected", $1.string->c_str(), "");
170 variable = static_cast<const TVariable*>(symbol);
176 if (variable->getType().getQualifier() == EvqConst ) {
177 ConstantUnion* constArray = variable->getConstPointer();
178 TType t(variable->getType());
181 $$ = context->intermediate.addSymbol(variable->getUniqueId(),
182 variable->getName(),
183 variable->getType(), $1.line);
266 context->error($2.line, "", "[", "array must be redeclared with a size before being indexed with a variable");
966 TVariable *variable = new TVariable(param.name, *param.type);
968 prototype = context->intermediate.growAggregate(prototype, context->intermediate.addSymbol(variable->getUniqueId(), variable->getName(), variable->getType(), $1.line), $1.line);
1016 // in which case, we want to use the variable names from this one, and not the one that's
1212 TVariable* variable;
1213 if (context->arrayErrorCheck($4.line, *$3.string, $1.type, variable))
1233 TVariable* variable;
1234 if (context->arrayErrorCheck($4.line, *$3.string, $1.type, variable))
1297 TVariable* variable;
1298 if (context->arrayErrorCheck($3.line, *$2.string, $1, variable))
1326 TVariable* variable;
1327 if (context->arrayErrorCheck($3.line, *$2.string, $1, variable))
1417 // $$.variable = new TVariable($2.string, $1);
1418 // if (! context->symbolTable.insert(*$$.variable)) {
1419 // context->error($2.line, "redefinition", $$.variable->getName().c_str(), "");
1421 // // don't have to delete $$.variable, the pool pop will take care of it
2019 TVariable *variable = new TVariable(param.name, *param.type);
2023 if (! context->symbolTable.insert(*variable)) {
2024 context->error($1.line, "redefinition", variable->getName().c_str(), "");
2026 delete variable;
2034 context->intermediate.addSymbol(variable->getUniqueId(),
2035 variable->getName(),
2036 variable->getType(), $1.line),