Lines Matching refs:identifier

444 bool TParseContext::reservedErrorCheck(int line, const TString& identifier)
448 if (identifier.substr(0, 3) == TString("gl_")) {
453 if (identifier.substr(0, 6) == TString("webgl_")) {
457 if (identifier.substr(0, 7) == TString("_webgl_")) {
462 if (identifier.find("__") != TString::npos) {
463 //error(line, "Two consecutive underscores are reserved for future use.", identifier.c_str(), "", "");
582 bool TParseContext::voidErrorCheck(int line, const TString& identifier, const TPublicType& pubType)
585 error(line, "illegal use of type 'void'", identifier.c_str(), "");
746 bool TParseContext::arrayErrorCheck(int line, TString& identifier, TPublicType type, TVariable*& variable)
755 TSymbol* symbol = symbolTable.find(identifier, &builtIn, &sameScope);
757 if (reservedErrorCheck(line, identifier))
760 variable = new TVariable(&identifier, TType(type));
767 error(line, "INTERNAL ERROR inserting new symbol", identifier.c_str(), "");
772 error(line, "variable expected", identifier.c_str(), "");
778 error(line, "redeclaring non-array as array", identifier.c_str(), "");
782 error(line, "redeclaration of array with size", identifier.c_str(), "");
787 error(line, "redeclaration of array with a different type", identifier.c_str(), "");
794 error(line, "higher index value already used for the array", identifier.c_str(), "");
805 if (voidErrorCheck(line, identifier, type))
816 error(line, " undeclared identifier", node->getSymbol().c_str(), "");
863 bool TParseContext::nonInitConstErrorCheck(int line, TString& identifier, TPublicType& type)
870 error(line, "variables with qualifier 'const' must be initialized", identifier.c_str(), "");
883 bool TParseContext::nonInitErrorCheck(int line, TString& identifier, TPublicType& type)
885 if (reservedErrorCheck(line, identifier))
888 TVariable* variable = new TVariable(&identifier, TType(type));
896 if (voidErrorCheck(line, identifier, type))
978 bool TParseContext::executeInitializer(TSourceLoc line, TString& identifier, TPublicType& pType,
984 if (reservedErrorCheck(line, identifier))
987 if (voidErrorCheck(line, identifier, pType))
993 variable = new TVariable(&identifier, type);
1003 // identifier must be of type constant, a global, or a temporary
1387 TIntermTyped* TParseContext::addConstStruct(TString& identifier, TIntermTyped* node, TSourceLoc line)
1396 if ((*fields)[index].type->getFieldName() == identifier) {