Home | History | Annotate | Download | only in compiler

Lines Matching refs:constructor

474 // Make sure there is enough data provided to the constructor to build
475 // something of the type of the constructor. Also returns the type of
476 // the constructor.
527 error(line, "array constructor needs one argument per array element", "constructor", "");
532 error(line, "constructing from a non-dereferenced array", "constructor", "");
538 error(line, "constructing matrix from matrix can only take one argument", "constructor", "");
544 error(line, "too many arguments", "constructor", "");
549 error(line, "Number of constructor parameters does not match the number of structure fields", "constructor", "");
556 error(line, "not enough data provided for construction", "constructor", "");
563 error(line, "constructor argument does not have a type", "constructor", "");
567 error(line, "cannot convert a sampler", "constructor", "");
571 error(line, "cannot convert a void", "constructor", "");
1079 // This function is used to test for the correctness of the parameters passed to various constructor functions
1110 // If structure constructor or array constructor is being called
1131 TIntermSequence &sequenceVector = aggrNode->getSequence() ; // Stores the information about the parameter to the constructor
1132 // if the structure constructor contains more than one parameter, then construct
1135 int paramCount = 0; // keeps a track of the constructor parameter number being checked
1137 // for each parameter to the constructor call, check to see if the right type is passed or convert them
1155 TIntermTyped* constructor = intermediate.setAggregateOperator(aggrNode, op, line);
1156 TIntermTyped* constConstructor = foldConstConstructor(constructor->getAsAggregate(), *type);
1160 return constructor;
1185 // Function for constructor implementation. Calls addUnaryMath with appropriate EOp value
1186 // for the parameter to the constructor (passed to this function). Essentially, it converts
1187 // the parameter types correctly. If a constructor expects an int (like ivec2) and is passed a
1233 error(line, "can't convert", "constructor", "");
1245 // setAggregateOperator will insert a new node for the constructor, as needed.
1250 // an error message if the expected type does not match the parameter passed to the constructor.
1262 error(line, "", "constructor", "cannot convert parameter %d from '%s' to '%s'", paramCount,