Lines Matching refs:parseContext

70     parseContext.error(token.loc, "Expected", syntax, "");  in expected()
75 parseContext.error(token.loc, "Unimplemented", error, ""); in unimplemented()
196 parseContext.warn(token.loc, "unimplemented", "immediate sampler state", ""); in acceptSamplerState()
338 parseContext.pushNamespace(*namespaceToken.string); in acceptDeclaration()
351 parseContext.popNamespace(); in acceptDeclaration()
392 if (parseContext.symbolTable.atGlobalLevel()) in acceptDeclaration()
393 parseContext.getFullNamespaceName(fullName); in acceptDeclaration()
398parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
401 parseContext.renameShaderFunction(fullName); in acceptDeclaration()
417parseContext.error(idToken.loc, "function body can't be in a declarator list", "{", ""); in acceptDeclaration()
419 parseContext.error(idToken.loc, "function body can't be in a typedef", "{", ""); in acceptDeclaration()
423 parseContext.error(idToken.loc, "function typedefs not implemented", "{", ""); in acceptDeclaration()
424 parseContext.handleFunctionDeclarator(declarator.loc, *declarator.function, true); in acceptDeclaration()
431 parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType); in acceptDeclaration()
434 …if (declaredType.getQualifier().storage == EvqTemporary && parseContext.symbolTable.atGlobalLevel(… in acceptDeclaration()
465 parseContext.error(idToken.loc, "can't have an initializer", "typedef", ""); in acceptDeclaration()
474 … if (variableType.getBasicType() != EbtString && parseContext.getAnnotationNestingLevel() == 0) { in acceptDeclaration()
476 parseContext.declareTypedef(idToken.loc, *fullName, variableType); in acceptDeclaration()
479parseContext.error(idToken.loc, "buffer aliasing not yet supported", "block initializer", ""); in acceptDeclaration()
480 parseContext.declareBlock(idToken.loc, variableType, fullName); in acceptDeclaration()
481 parseContext.declareStructBufferCounter(idToken.loc, variableType, *fullName); in acceptDeclaration()
485 parseContext.growGlobalUniformBlock(idToken.loc, variableType, *fullName); in acceptDeclaration()
491parseContext.declareVariable(idToken.loc, *fullName, variableType, expressionNode), in acceptDeclaration()
508 …if (declaredType.getQualifier().storage == EvqGlobal && !parseContext.symbolTable.atGlobalLevel())… in acceptDeclaration()
548 parseContext.warn(token.loc, "attributes don't apply to control declaration", "", ""); in acceptControlDeclaration()
576 node = parseContext.declareVariable(idToken.loc, *idToken.string, type, expressionNode); in acceptControlDeclaration()
612 parseContext.mergeQualifiers(type.getQualifier(), qualifier); in acceptFullySpecifiedType()
615 parseContext.transferTypeAttributes(token.loc, attributes, type); in acceptFullySpecifiedType()
621 parseContext.declareBlock(loc, type); in acceptFullySpecifiedType()
723 if (!parseContext.handleInputGeometry(token.loc, ElgPoints)) in acceptQualifier()
728 if (!parseContext.handleInputGeometry(token.loc, ElgLines)) in acceptQualifier()
733 if (!parseContext.handleInputGeometry(token.loc, ElgTriangles)) in acceptQualifier()
738 if (!parseContext.handleInputGeometry(token.loc, ElgLinesAdjacency)) in acceptQualifier()
743 if (!parseContext.handleInputGeometry(token.loc, ElgTrianglesAdjacency)) in acceptQualifier()
785 parseContext.setLayoutQualifier(idToken.loc, qualifier, *idToken.string, expr); in acceptLayoutQualifierList()
787 parseContext.setLayoutQualifier(idToken.loc, qualifier, *idToken.string); in acceptLayoutQualifierList()
1080 parseContext.nestAnnotations(); in acceptAnnotations()
1099 parseContext.unnestAnnotations(); in acceptAnnotations()
1158 if (!parseContext.setTextureReturnType(sampler, subpassType, token.loc)) in acceptSubpassInputType()
1200 if (!parseContext.setTextureReturnType(sampler, txType, token.loc)) in acceptSamplerTypeDX9()
1374 format = parseContext.getLayoutFromTxType(token.loc, txType); in acceptTextureType()
1392 if (!parseContext.setTextureReturnType(sampler, txType, token.loc)) in acceptTextureType()
1416 bool enable16BitTypes = parseContext.hlslEnable16BitTypes(); in acceptType()
1432 if (parseContext.symbolTable.find(name) != nullptr) in acceptType()
1471 if (! parseContext.handleOutputGeometry(token.loc, geometry)) in acceptType()
1491 if (parseContext.hlslDX9Compatible()) in acceptType()
1552 if (parseContext.lookupUserType(*token.string, type) != nullptr) { in acceptType()
2059parseContext.error(token.loc, "unorm and snorm only valid in floating point domain", "", ""); in acceptType()
2121 …if (structName.size() > 0 && !postDeclsFound && parseContext.lookupUserType(structName, type) != n… in acceptStruct()
2136 parseContext.pushNamespace(structName); in acceptStruct()
2138 parseContext.popNamespace(); in acceptStruct()
2160 parseContext.declareStruct(token.loc, structName, type); in acceptStruct()
2173 parseContext.pushNamespace(structName); in acceptStruct()
2174 parseContext.pushThisScope(type, functionDeclarators); in acceptStruct()
2183 parseContext.popThisScope(); in acceptStruct()
2184 parseContext.popNamespace(); in acceptStruct()
2225 parseContext.error(token.loc, "non-structure type in ConstantBuffer", "", ""); in acceptConstantBufferType()
2360 parseContext.shareStructBufferType(blockType); in acceptStructBufferType()
2406 parseContext.transferTypeAttributes(token.loc, attributes, memberType); in acceptStructDeclarationList()
2445parseContext.warn(idToken.loc, "struct-member initializers ignored", "typedef", ""); in acceptStructDeclarationList()
2489 parseContext.getFullNamespaceName(functionName); in acceptMemberFunctionDefinition()
2562 TFunction* constructor = parseContext.makeConstructorCall(token.loc, type); in acceptDefaultParameterDeclaration()
2568parseContext.handleFunctionArgument(constructor, arguments, node->getAsAggregate()->getSequence()[… in acceptDefaultParameterDeclaration()
2570 node = parseContext.handleFunctionCall(token.loc, constructor, node); in acceptDefaultParameterDeclaration()
2588 parseContext.error(token.loc, "invalid default parameter value", "", ""); in acceptDefaultParameterDeclaration()
2612 parseContext.transferTypeAttributes(token.loc, attributes, *type); in acceptParameterDeclaration()
2623 parseContext.error(token.loc, "function parameter requires array size", "[]", ""); in acceptParameterDeclaration()
2637 parseContext.paramFix(*type); in acceptParameterDeclaration()
2641parseContext.error(idToken.loc, "invalid parameter after default value parameters", idToken.string… in acceptParameterDeclaration()
2660parseContext.handleFunctionDeclarator(declarator.loc, *declarator.function, false /* not prototype… in acceptFunctionDefinition()
2674 …TIntermNode* functionNode = parseContext.handleFunctionDefinition(declarator.loc, *declarator.func… in acceptFunctionBody()
2683parseContext.handleFunctionBody(declarator.loc, *declarator.function, functionBody, functionNode); in acceptFunctionBody()
2870 node = parseContext.handleAssign(loc, assignOp, node, rightNode); in acceptAssignmentExpression()
2871 node = parseContext.handleLvalue(loc, "assign", node); in acceptAssignmentExpression()
2874 parseContext.error(loc, "could not create assignment", "", ""); in acceptAssignmentExpression()
2901 node = parseContext.convertConditionalExpression(token.loc, node, false); in acceptConditionalExpression()
2905 ++parseContext.controlFlowNestingLevel; // this only needs to work right if no errors in acceptConditionalExpression()
2925 --parseContext.controlFlowNestingLevel; in acceptConditionalExpression()
2970 parseContext.error(loc, "Could not perform requested binary operation", "", ""); in acceptBinaryExpression()
3006 TFunction* constructorFunction = parseContext.makeConstructorCall(loc, castType); in acceptUnaryExpression()
3012 parseContext.handleFunctionArgument(constructorFunction, arguments, node); in acceptUnaryExpression()
3013 node = parseContext.handleFunctionCall(loc, constructorFunction, arguments); in acceptUnaryExpression()
3025parseContext.error(loc, "parenthesized array constructor not allowed", "([]())", "", ""); in acceptUnaryExpression()
3057 node = parseContext.handleLvalue(loc, "unary operator", node); in acceptUnaryExpression()
3105 fullName->append(parseContext.scopeMangler); in acceptPostfixExpression()
3114 node = parseContext.handleVariable(idToken.loc, fullName); in acceptPostfixExpression()
3169 node = parseContext.handleDotDereference(field.loc, node, *field.string); in acceptPostfixExpression()
3183 node = parseContext.handleBracketDereference(indexNode->getLoc(), node, indexNode); in acceptPostfixExpression()
3194 node = parseContext.handleLvalue(loc, "unary operator", node); in acceptPostfixExpression()
3211 TFunction* constructorFunction = parseContext.makeConstructorCall(token.loc, type); in acceptConstructor()
3225 node = parseContext.handleFunctionCall(arguments->getLoc(), constructorFunction, arguments); in acceptConstructor()
3244 } else if (parseContext.isBuiltInMethod(loc, baseObject, name)) { in acceptFunctionCall()
3256 parseContext.addScopeMangler(*functionName); in acceptFunctionCall()
3267 parseContext.handleFunctionArgument(function, arguments, baseObject); in acceptFunctionCall()
3273 node = parseContext.handleFunctionCall(loc, function, arguments); in acceptFunctionCall()
3302 parseContext.handleFunctionArgument(function, arguments, arg); in acceptArguments()
3401 parseContext.wrapupSwitchSubsequence(compoundStatement, statement); in acceptCompoundStatement()
3419 parseContext.pushScope(); in acceptScopedStatement()
3421 parseContext.popScope(); in acceptScopedStatement()
3428 parseContext.pushScope(); in acceptScopedCompoundStatement()
3430 parseContext.popScope(); in acceptScopedCompoundStatement()
3598 … TAttributeType attributeType = parseContext.attributeFromName(nameSpace, *attributeToken.string); in acceptAttributes()
3600parseContext.warn(attributeToken.loc, "unrecognized attribute", attributeToken.string->c_str(), ""… in acceptAttributes()
3623 parseContext.pushScope(); in acceptSelectionStatement()
3629 condition = parseContext.convertConditionalExpression(loc, condition); in acceptSelectionStatement()
3636 ++parseContext.controlFlowNestingLevel; // this only needs to work right if no errors in acceptSelectionStatement()
3655 parseContext.handleSelectionAttributes(loc, statement->getAsSelectionNode(), attributes); in acceptSelectionStatement()
3657 parseContext.popScope(); in acceptSelectionStatement()
3658 --parseContext.controlFlowNestingLevel; in acceptSelectionStatement()
3675 parseContext.pushScope(); in acceptSwitchStatement()
3678 parseContext.popScope(); in acceptSwitchStatement()
3683 parseContext.pushSwitchSequence(new TIntermSequence); in acceptSwitchStatement()
3685 ++parseContext.controlFlowNestingLevel; in acceptSwitchStatement()
3687 --parseContext.controlFlowNestingLevel; in acceptSwitchStatement()
3690 …statement = parseContext.addSwitch(loc, switchExpression, statement ? statement->getAsAggregate() … in acceptSwitchStatement()
3693 parseContext.popSwitchSequence(); in acceptSwitchStatement()
3694 parseContext.popScope(); in acceptSwitchStatement()
3721 parseContext.pushScope(); // this only needs to work right if no errors in acceptIterationStatement()
3722 parseContext.nestLooping(); in acceptIterationStatement()
3723 ++parseContext.controlFlowNestingLevel; in acceptIterationStatement()
3728 condition = parseContext.convertConditionalExpression(loc, condition); in acceptIterationStatement()
3738 parseContext.unnestLooping(); in acceptIterationStatement()
3739 parseContext.popScope(); in acceptIterationStatement()
3740 --parseContext.controlFlowNestingLevel; in acceptIterationStatement()
3747 parseContext.nestLooping(); // this only needs to work right if no errors in acceptIterationStatement()
3748 ++parseContext.controlFlowNestingLevel; in acceptIterationStatement()
3765 condition = parseContext.convertConditionalExpression(loc, condition); in acceptIterationStatement()
3772 parseContext.unnestLooping(); in acceptIterationStatement()
3773 --parseContext.controlFlowNestingLevel; in acceptIterationStatement()
3787 parseContext.pushScope(); in acceptIterationStatement()
3794 parseContext.nestLooping(); // this only needs to work right if no errors in acceptIterationStatement()
3795 ++parseContext.controlFlowNestingLevel; in acceptIterationStatement()
3802 condition = parseContext.convertConditionalExpression(loc, condition); in acceptIterationStatement()
3821 parseContext.popScope(); in acceptIterationStatement()
3822 parseContext.unnestLooping(); in acceptIterationStatement()
3823 --parseContext.controlFlowNestingLevel; in acceptIterationStatement()
3832 parseContext.handleLoopAttributes(loc, loopNode, attributes); in acceptIterationStatement()
3861 if (parseContext.loopNestingLevel == 0) { in acceptJumpStatement()
3868 if (parseContext.loopNestingLevel == 0 && parseContext.switchSequenceStack.size() == 0) { in acceptJumpStatement()
3883 statement = parseContext.handleReturnValue(token.loc, node); in acceptJumpStatement()
3921 statement = parseContext.intermediate.addBranch(EOpCase, expression, loc); in acceptCaseLabel()
3940 statement = parseContext.intermediate.addBranch(EOpDefault, loc); in acceptDefaultLabel()
3975 parseContext.arraySizeCheck(loc, sizeExpr, arraySize); in acceptArraySpecifier()
4027parseContext.handlePackOffset(locationToken.loc, qualifier, *locationToken.string, componentToken.… in acceptPostDecls()
4081parseContext.handleRegister(registerDesc.loc, qualifier, profile.string, *registerDesc.string, sub… in acceptPostDecls()
4086parseContext.handleSemantic(idToken.loc, qualifier, mapSemantic(semanticUpperCase.c_str()), semant… in acceptPostDecls()