Lines Matching refs:constructor

464 // Make sure there is enough data provided to the constructor to build
465 // something of the type of the constructor. Also returns the type of
466 // the constructor.
517 error(line, "array constructor needs one argument per array element", "constructor");
522 error(line, "constructing from a non-dereferenced array", "constructor");
528 error(line, "constructing matrix from matrix can only take one argument", "constructor");
534 error(line, "too many arguments", "constructor");
539 error(line, "Number of constructor parameters does not match the number of structure fields", "constructor");
546 error(line, "not enough data provided for construction", "constructor");
553 error(line, "constructor argument does not have a type", "constructor");
557 error(line, "cannot convert a sampler", "constructor");
561 error(line, "cannot convert a void", "constructor");
1047 // This function is used to test for the correctness of the parameters passed to various constructor functions
1078 // If structure constructor or array constructor is being called
1099 TIntermSequence &sequenceVector = aggrNode->getSequence() ; // Stores the information about the parameter to the constructor
1100 // if the structure constructor contains more than one parameter, then construct
1103 int paramCount = 0; // keeps a track of the constructor parameter number being checked
1105 // for each parameter to the constructor call, check to see if the right type is passed or convert them
1123 TIntermTyped* constructor = intermediate.setAggregateOperator(aggrNode, op, line);
1124 TIntermTyped* constConstructor = foldConstConstructor(constructor->getAsAggregate(), *type);
1128 return constructor;
1153 // Function for constructor implementation. Calls addUnaryMath with appropriate EOp value
1154 // for the parameter to the constructor (passed to this function). Essentially, it converts
1155 // the parameter types correctly. If a constructor expects an int (like ivec2) and is passed a
1201 error(line, "can't convert", "constructor");
1213 // setAggregateOperator will insert a new node for the constructor, as needed.
1218 // an error message if the expected type does not match the parameter passed to the constructor.
1235 error(line, "", "constructor", extraInfo.c_str());