Lines Matching refs:idToken

84 bool HlslGrammar::acceptIdentifier(HlslToken& idToken)  in acceptIdentifier()  argument
88 idToken = token; in acceptIdentifier()
96 idToken = token; in acceptIdentifier()
98 idToken.tokenClass = EHTokIdentifier; in acceptIdentifier()
99 idToken.string = NewPoolTString(intermediate.implicitThisName); in acceptIdentifier()
116 idToken = token; in acceptIdentifier()
388 HlslToken idToken; in acceptDeclaration() local
390 while (acceptIdentifier(idToken)) { in acceptDeclaration()
391 TString *fullName = idToken.string; in acceptDeclaration()
417 … parseContext.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()
465 parseContext.error(idToken.loc, "can't have an initializer", "typedef", ""); in acceptDeclaration()
476 parseContext.declareTypedef(idToken.loc, *fullName, variableType); in acceptDeclaration()
479 … parseContext.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()
491 … parseContext.declareVariable(idToken.loc, *fullName, variableType, expressionNode), in acceptDeclaration()
492 idToken.loc); in acceptDeclaration()
509 unitNode = intermediate.growAggregate(unitNode, initializers, idToken.loc); in acceptDeclaration()
557 HlslToken idToken; in acceptControlDeclaration() local
558 if (! acceptIdentifier(idToken)) { in acceptControlDeclaration()
576 node = parseContext.declareVariable(idToken.loc, *idToken.string, type, expressionNode); in acceptControlDeclaration()
774 HlslToken idToken; in acceptLayoutQualifierList() local
775 if (! acceptIdentifier(idToken)) in acceptLayoutQualifierList()
785 parseContext.setLayoutQualifier(idToken.loc, qualifier, *idToken.string, expr); in acceptLayoutQualifierList()
787 parseContext.setLayoutQualifier(idToken.loc, qualifier, *idToken.string); in acceptLayoutQualifierList()
2383 HlslToken idToken; in acceptStructDeclarationList() local
2411 if (! acceptIdentifier(idToken)) { in acceptStructDeclarationList()
2421 … functionDefinitionAccepted = acceptMemberFunctionDefinition(nodeList, memberType, *idToken.string, in acceptStructDeclarationList()
2432 member.type->setFieldName(*idToken.string); in acceptStructDeclarationList()
2445 … parseContext.warn(idToken.loc, "struct-member initializers ignored", "typedef", ""); in acceptStructDeclarationList()
2615 HlslToken idToken; in acceptParameterDeclaration() local
2616 acceptIdentifier(idToken); in acceptParameterDeclaration()
2641 …parseContext.error(idToken.loc, "invalid parameter after default value parameters", idToken.string… in acceptParameterDeclaration()
2645 TParameter param = { idToken.string, type, defaultValue }; in acceptParameterDeclaration()
3081 HlslToken idToken; in acceptPostfixExpression() local
3099 } else if (acceptIdentifier(idToken)) { in acceptPostfixExpression()
3101 TString* fullName = idToken.string; in acceptPostfixExpression()
3106 if (acceptIdentifier(idToken)) in acceptPostfixExpression()
3107 fullName->append(*idToken.string); in acceptPostfixExpression()
3114 node = parseContext.handleVariable(idToken.loc, fullName); in acceptPostfixExpression()
3117 } else if (acceptFunctionCall(idToken.loc, *fullName, node, nullptr)) { in acceptPostfixExpression()
4002 HlslToken idToken; in acceptPostDecls() local
4028 } else if (! acceptIdentifier(idToken)) { in acceptPostDecls()
4031 } else if (*idToken.string == "register") { in acceptPostDecls()
4084 TString semanticUpperCase = *idToken.string; in acceptPostDecls()
4086 …parseContext.handleSemantic(idToken.loc, qualifier, mapSemantic(semanticUpperCase.c_str()), semant… in acceptPostDecls()