• Home
  • Raw
  • Download

Lines Matching refs:line

51 …Context::parseVectorFields(const TString& compString, int vecSize, TVectorFields& fields, int line)  in parseVectorFields()  argument
55 error(line, "illegal vector field selection", compString.c_str(), ""); in parseVectorFields()
117 error(line, "illegal vector field selection", compString.c_str(), ""); in parseVectorFields()
124 error(line, "vector field selection out of range", compString.c_str(), ""); in parseVectorFields()
130 … error(line, "illegal - vector component fields not from the same set", compString.c_str(), ""); in parseVectorFields()
144 …Context::parseMatrixFields(const TString& compString, int matSize, TMatrixFields& fields, int line) in parseMatrixFields() argument
152 error(line, "illegal length of matrix field selection", compString.c_str(), ""); in parseMatrixFields()
158 error(line, "illegal matrix field selection", compString.c_str(), ""); in parseMatrixFields()
165 error(line, "illegal matrix field selection", compString.c_str(), ""); in parseMatrixFields()
173 error(line, "illegal matrix field selection", compString.c_str(), ""); in parseMatrixFields()
181 error(line, "matrix field selection out of range", compString.c_str(), ""); in parseMatrixFields()
236 void TParseContext::assignError(int line, const char* op, TString left, TString right) in assignError() argument
238 error(line, "", op, "cannot convert from '%s' to '%s'", in assignError()
245 void TParseContext::unaryOpError(int line, const char* op, TString operand) in unaryOpError() argument
247 error(line, " wrong operand type", op, in unaryOpError()
255 void TParseContext::binaryOpError(int line, const char* op, TString left, TString right) in binaryOpError() argument
257 error(line, " wrong operand types ", op, in binaryOpError()
263 bool TParseContext::precisionErrorCheck(int line, TPrecision precision, TBasicType type){ in precisionErrorCheck() argument
267 error( line, "No precision specified for (float)", "", "" ); in precisionErrorCheck()
273 error( line, "No precision specified (int)", "", "" ); in precisionErrorCheck()
287 bool TParseContext::lValueErrorCheck(int line, const char* op, TIntermTyped* node) in lValueErrorCheck() argument
299 return lValueErrorCheck(line, op, binaryNode->getLeft()); in lValueErrorCheck()
301 errorReturn = lValueErrorCheck(line, op, binaryNode->getLeft()); in lValueErrorCheck()
313 … error(line, " l-value of swizzle cannot have duplicate components", op, "", ""); in lValueErrorCheck()
324 error(line, " l-value required", op, "", ""); in lValueErrorCheck()
364 error(line, " l-value required", op, "", ""); in lValueErrorCheck()
380 error(line, " l-value required", op, "\"%s\" (%s)", symbol, message); in lValueErrorCheck()
382 error(line, " l-value required", op, "(%s)", message); in lValueErrorCheck()
425 bool TParseContext::globalErrorCheck(int line, bool global, const char* token) in globalErrorCheck() argument
430 error(line, "only allowed at global scope", token, ""); in globalErrorCheck()
444 bool TParseContext::reservedErrorCheck(int line, const TString& identifier) in reservedErrorCheck() argument
449 error(line, reservedErrMsg, "gl_", ""); in reservedErrorCheck()
454 error(line, reservedErrMsg, "webgl_", ""); in reservedErrorCheck()
458 error(line, reservedErrMsg, "_webgl_", ""); in reservedErrorCheck()
465 …ink.info.message(EPrefixWarning, "Two consecutive underscores are reserved for future use.", line); in reservedErrorCheck()
480 bool TParseContext::constructorErrorCheck(int line, TIntermNode* node, TFunction& function, TOperat… in constructorErrorCheck() argument
527 error(line, "array constructor needs one argument per array element", "constructor", ""); in constructorErrorCheck()
532 error(line, "constructing from a non-dereferenced array", "constructor", ""); in constructorErrorCheck()
538 … error(line, "constructing matrix from matrix can only take one argument", "constructor", ""); in constructorErrorCheck()
544 error(line, "too many arguments", "constructor", ""); in constructorErrorCheck()
549 …error(line, "Number of constructor parameters does not match the number of structure fields", "con… in constructorErrorCheck()
556 error(line, "not enough data provided for construction", "constructor", ""); in constructorErrorCheck()
563 error(line, "constructor argument does not have a type", "constructor", ""); in constructorErrorCheck()
567 error(line, "cannot convert a sampler", "constructor", ""); in constructorErrorCheck()
571 error(line, "cannot convert a void", "constructor", ""); in constructorErrorCheck()
582 bool TParseContext::voidErrorCheck(int line, const TString& identifier, const TPublicType& pubType) in voidErrorCheck() argument
585 error(line, "illegal use of type 'void'", identifier.c_str(), ""); in voidErrorCheck()
596 bool TParseContext::boolErrorCheck(int line, const TIntermTyped* type) in boolErrorCheck() argument
599 error(line, "boolean expression expected", "", ""); in boolErrorCheck()
610 bool TParseContext::boolErrorCheck(int line, const TPublicType& pType) in boolErrorCheck() argument
613 error(line, "boolean expression expected", "", ""); in boolErrorCheck()
620 bool TParseContext::samplerErrorCheck(int line, const TPublicType& pType, const char* reason) in samplerErrorCheck() argument
624 error(line, reason, getBasicString(pType.type), "(structure contains a sampler)"); in samplerErrorCheck()
631 error(line, reason, getBasicString(pType.type), ""); in samplerErrorCheck()
639 bool TParseContext::structQualifierErrorCheck(int line, const TPublicType& pType) in structQualifierErrorCheck() argument
643 error(line, "cannot be used with a structure", getQualifierString(pType.qualifier), ""); in structQualifierErrorCheck()
648 if (pType.qualifier != EvqUniform && samplerErrorCheck(line, pType, "samplers must be uniform")) in structQualifierErrorCheck()
654 bool TParseContext::parameterSamplerErrorCheck(int line, TQualifier qualifier, const TType& type) in parameterSamplerErrorCheck() argument
658 error(line, "samplers cannot be output parameters", type.getBasicString(), ""); in parameterSamplerErrorCheck()
686 bool TParseContext::arraySizeErrorCheck(int line, TIntermTyped* expr, int& size) in arraySizeErrorCheck() argument
690 error(line, "array size must be a constant integer expression", "", ""); in arraySizeErrorCheck()
697 error(line, "array size must be a positive integer", "", ""); in arraySizeErrorCheck()
710 bool TParseContext::arrayQualifierErrorCheck(int line, TPublicType type) in arrayQualifierErrorCheck() argument
713 …error(line, "cannot declare arrays of this qualifier", TType(type).getCompleteString().c_str(), ""… in arrayQualifierErrorCheck()
725 bool TParseContext::arrayTypeErrorCheck(int line, TPublicType type) in arrayTypeErrorCheck() argument
731 error(line, "cannot declare arrays of arrays", TType(type).getCompleteString().c_str(), ""); in arrayTypeErrorCheck()
746 bool TParseContext::arrayErrorCheck(int line, TString& identifier, TPublicType type, TVariable*& va… in arrayErrorCheck() argument
757 if (reservedErrorCheck(line, identifier)) in arrayErrorCheck()
767 error(line, "INTERNAL ERROR inserting new symbol", identifier.c_str(), ""); in arrayErrorCheck()
772 error(line, "variable expected", identifier.c_str(), ""); in arrayErrorCheck()
778 error(line, "redeclaring non-array as array", identifier.c_str(), ""); in arrayErrorCheck()
782 error(line, "redeclaration of array with size", identifier.c_str(), ""); in arrayErrorCheck()
787 error(line, "redeclaration of array with a different type", identifier.c_str(), ""); in arrayErrorCheck()
794 … error(line, "higher index value already used for the array", identifier.c_str(), ""); in arrayErrorCheck()
805 if (voidErrorCheck(line, identifier, type)) in arrayErrorCheck()
811 …text::arraySetMaxSize(TIntermSymbol *node, TType* type, int size, bool updateFlag, TSourceLoc line) in arraySetMaxSize() argument
816 error(line, " undeclared identifier", node->getSymbol().c_str(), ""); in arraySetMaxSize()
829 infoSink.info.message(EPrefixInternalError, "gl_MaxDrawBuffers not defined", line); in arraySetMaxSize()
835 … error(line, "", "[", "gl_FragData can only have a max array size of up to gl_MaxDrawBuffers", ""); in arraySetMaxSize()
863 bool TParseContext::nonInitConstErrorCheck(int line, TString& identifier, TPublicType& type) in nonInitConstErrorCheck() argument
870 error(line, "variables with qualifier 'const' must be initialized", identifier.c_str(), ""); in nonInitConstErrorCheck()
883 bool TParseContext::nonInitErrorCheck(int line, TString& identifier, TPublicType& type) in nonInitErrorCheck() argument
885 if (reservedErrorCheck(line, identifier)) in nonInitErrorCheck()
891 error(line, "redefinition", variable->getName().c_str(), ""); in nonInitErrorCheck()
896 if (voidErrorCheck(line, identifier, type)) in nonInitErrorCheck()
902 bool TParseContext::paramErrorCheck(int line, TQualifier qualifier, TQualifier paramQualifier, TTyp… in paramErrorCheck() argument
905 … error(line, "qualifier not allowed on function parameter", getQualifierString(qualifier), ""); in paramErrorCheck()
909 …error(line, "qualifier not allowed with ", getQualifierString(qualifier), getQualifierString(param… in paramErrorCheck()
921 bool TParseContext::extensionErrorCheck(int line, const TString& extension) in extensionErrorCheck() argument
925 error(line, "extension", extension.c_str(), "is not supported"); in extensionErrorCheck()
929 error(line, "extension", extension.c_str(), "is disabled"); in extensionErrorCheck()
934 infoSink.info.message(EPrefixWarning, msg.c_str(), line); in extensionErrorCheck()
952 const TFunction* TParseContext::findFunction(int line, TFunction* call, bool *builtIn) in findFunction() argument
962 error(line, "no matching overloaded function found", call->getName().c_str(), ""); in findFunction()
967 error(line, "function name expected", call->getName().c_str(), ""); in findFunction()
978 bool TParseContext::executeInitializer(TSourceLoc line, TString& identifier, TPublicType& pType, in executeInitializer() argument
984 if (reservedErrorCheck(line, identifier)) in executeInitializer()
987 if (voidErrorCheck(line, identifier, pType)) in executeInitializer()
995 error(line, "redefinition", variable->getName().c_str(), ""); in executeInitializer()
1007 …error(line, " cannot initialize this type of qualifier ", variable->getType().getQualifierString()… in executeInitializer()
1016 …error(line, " assigning non-constant to", "=", "'%s'", variable->getType().getCompleteString().c_s… in executeInitializer()
1021 error(line, " non-matching types for const initializer ", in executeInitializer()
1041 … error(line, " cannot assign to", "=", "'%s'", variable->getType().getCompleteString().c_str()); in executeInitializer()
1048 … = intermediate.addSymbol(variable->getUniqueId(), variable->getName(), variable->getType(), line); in executeInitializer()
1049 intermNode = intermediate.addAssign(EOpInitialize, intermSymbol, initializer, line); in executeInitializer()
1051 … assignError(line, "=", intermSymbol->getCompleteString(), initializer->getCompleteString()); in executeInitializer()
1084 …Constructor(TIntermNode* node, const TType* type, TOperator op, TFunction* fnCall, TSourceLoc line) in addConstructor() argument
1155 TIntermTyped* constructor = intermediate.setAggregateOperator(aggrNode, op, line); in addConstructor()
1192 …:constructBuiltIn(const TType* type, TOperator op, TIntermNode* node, TSourceLoc line, bool subset) in constructBuiltIn() argument
1226 error(line, "unsupported construction", "", ""); in constructBuiltIn()
1233 error(line, "can't convert", "constructor", ""); in constructBuiltIn()
1246 return intermediate.setAggregateOperator(newNode, op, line); in constructBuiltIn()
1254 …text::constructStruct(TIntermNode* node, TType* type, int paramCount, TSourceLoc line, bool subset) in constructStruct() argument
1260 return intermediate.setAggregateOperator(node->getAsTyped(), EOpConstructStruct, line); in constructStruct()
1262 error(line, "", "constructor", "cannot convert parameter %d from '%s' to '%s'", paramCount, in constructStruct()
1277 …yped* TParseContext::addConstVectorNode(TVectorFields& fields, TIntermTyped* node, TSourceLoc line) in addConstVectorNode() argument
1287 …essage(EPrefixInternalError, "ConstantUnion not initialized in addConstVectorNode function", line); in addConstVectorNode()
1293 error(line, "Cannot offset into the vector", "Error", ""); in addConstVectorNode()
1303 error(line, "", "[", "vector field selection out of range '%d'", fields.offsets[i]); in addConstVectorNode()
1311 typedNode = intermediate.addConstantUnion(constArray, node->getType(), line); in addConstVectorNode()
1321 TIntermTyped* TParseContext::addConstMatrixNode(int index, TIntermTyped* node, TSourceLoc line) in addConstMatrixNode() argument
1327 error(line, "", "[", "matrix field selection out of range '%d'", index); in addConstMatrixNode()
1335 …edNode = intermediate.addConstantUnion(&unionArray[size*index], tempConstantNode->getType(), line); in addConstMatrixNode()
1337 error(line, "Cannot offset into the matrix", "Error", ""); in addConstMatrixNode()
1353 TIntermTyped* TParseContext::addConstArrayNode(int index, TIntermTyped* node, TSourceLoc line) in addConstArrayNode() argument
1361 error(line, "", "[", "array field selection out of range '%d'", index); in addConstArrayNode()
1370 …mediate.addConstantUnion(&unionArray[arrayElementSize * index], tempConstantNode->getType(), line); in addConstArrayNode()
1372 error(line, "Cannot offset into the array", "Error", ""); in addConstArrayNode()
1387 …ntermTyped* TParseContext::addConstStruct(TString& identifier, TIntermTyped* node, TSourceLoc line) in addConstStruct() argument
1406 …te.addConstantUnion(constArray+instanceSize, tempConstantNode->getType(), line); // type will be c… in addConstStruct()
1408 error(line, "Cannot offset into the structure", "Error", ""); in addConstStruct()