Home | History | Annotate | Download | only in compiler

Lines Matching refs:initializer

937 // Enforce non-initializer type/qualifier rules.
968 // Do semantic checking for a variable declaration that has no initializer,
1236 TIntermTyped *initializer, TIntermNode **intermNode)
1243 // We have not checked yet whether the initializer actually is an array or not.
1244 if(initializer->isArray())
1246 type.setArraySize(initializer->getArraySize());
1250 // Having a non-array initializer for an unsized array will result in an error later,
1262 if(symbolTable.atGlobalLevel() && initializer->getQualifier() != EvqConstExpr)
1281 if (qualifier != initializer->getQualifier()) {
1290 if (type != initializer->getType()) {
1291 error(line, " non-matching types for const initializer ",
1297 if (initializer->getAsConstantUnion()) {
1298 variable->shareConstPointer(initializer->getAsConstantUnion()->getUnionArrayPointer());
1299 } else if (initializer->getAsSymbolNode()) {
1300 const TSymbol* symbol = symbolTable.find(initializer->getAsSymbolNode()->getSymbol(), 0);
1317 *intermNode = createAssign(EOpInitialize, intermSymbol, initializer, line);
1319 assignError(line, "=", intermSymbol->getCompleteString(), initializer->getCompleteString());
1521 TIntermTyped *initializer)
1529 if(!executeInitializer(identifierLocation, identifier, publicType, initializer, &intermNode))
1549 TIntermTyped *initializer)
1564 // If indexExpression is nullptr, then the array will eventually get its size implicitly from the initializer.
1573 // initNode will correspond to the whole of "type b[n] = initializer".
1575 if(!executeInitializer(identifierLocation, identifier, arrayType, initializer, &initNode))
1701 const TSourceLoc &initLocation, TIntermTyped *initializer)
1715 if(!executeInitializer(identifierLocation, identifier, publicType, initializer, &intermNode))
1742 initializer)
1763 // If indexExpression is nullptr, then the array will eventually get its size implicitly from the initializer.
1772 // initNode will correspond to the whole of "b[n] = initializer".
1774 if(!executeInitializer(identifierLocation, identifier, arrayType, initializer, &initNode))