Lines Matching refs:fKind
167 if (e->fKind == ProgramElement::kInterfaceBlock_Kind) { in start()
183 switch (statement.fKind) { in convertStatement()
191 if (fRTAdjust && Program::kGeometry_Kind == fKind) { in convertStatement()
192 SkASSERT(result->fKind == Statement::kExpression_Kind); in convertStatement()
194 if (expr.fKind == Expression::kFunctionCall_Kind) { in convertStatement()
227 ABORT("unsupported statement type: %d\n", statement.fKind); in convertStatement()
260 if (fKind != Program::kFragmentProcessor_Kind && in convertVarDeclarations()
267 (decl.fModifiers.fFlags & Modifiers::kOut_Flag) && fKind == Program::kFragment_Kind && in convertVarDeclarations()
282 if (size->fKind == Expression::kIntLiteral_Kind) { in convertVarDeclarations()
325 (*fSymbolTable)[varDecl.fName]->fKind == Symbol::kVariable_Kind && in convertVarDeclarations()
381 if (test->fKind == Expression::kBoolLiteral_Kind) { in convertIf()
530 SkASSERT(Program::kVertex_Kind != fKind || !fRTAdjust || "main" != fCurrentFunction->fName); in convertReturn()
693 if (fKind == Program::kPipelineStage_Kind) { in convertFunction()
717 switch (entry->fKind) { in convertFunction()
782 if (f.fName == "main" && fKind == Program::kPipelineStage_Kind) { in convertFunction()
808 if (Program::kVertex_Kind == fKind && f.fName == "main" && fRTAdjust) { in convertFunction()
874 if (converted->fKind == Expression::kIntLiteral_Kind) { in convertInterfaceBlock()
917 switch (value.fKind) { in getConstantInt()
969 if (result && result->fKind == Symbol::kType_Kind) { in convertType()
987 switch (expr.fKind) { in convertExpression()
1008 ABORT("unsupported expression type: %d\n", expr.fKind); in convertExpression()
1018 switch (result->fKind) { in convertIdentifier()
1075 ABORT("unsupported symbol type %d\n", result->fKind); in convertIdentifier()
1300 SkASSERT(left.fKind == Expression::kBoolLiteral_Kind); in short_circuit_boolean()
1321 if (left.fKind == Expression::kBoolLiteral_Kind && !right.isConstant()) { in constantFold()
1323 } else if (right.fKind == Expression::kBoolLiteral_Kind && !left.isConstant()) { in constantFold()
1337 if (left.fKind == Expression::kBoolLiteral_Kind && in constantFold()
1338 right.fKind == Expression::kBoolLiteral_Kind) { in constantFold()
1352 if (left.fKind == Expression::kIntLiteral_Kind && right.fKind == Expression::kIntLiteral_Kind) { in constantFold()
1385 if (left.fKind == Expression::kFloatLiteral_Kind && in constantFold()
1386 right.fKind == Expression::kFloatLiteral_Kind) { in constantFold()
1411 SkASSERT(left.fKind == Expression::kConstructor_Kind); in constantFold()
1412 SkASSERT(right.fKind == Expression::kConstructor_Kind); in constantFold()
1438 left.fKind == right.fKind) { in constantFold()
1468 if (left->fKind == Expression::kIntLiteral_Kind && right->fType.isInteger()) { in convertBinaryExpression()
1474 if (right->fKind == Expression::kIntLiteral_Kind && left->fType.isInteger()) { in convertBinaryExpression()
1543 if (test->fKind == Expression::kBoolLiteral_Kind) { in convertTernaryExpression()
1631 if (functionValue->fKind == Expression::kTypeReference_Kind) { in call()
1636 if (functionValue->fKind != Expression::kFunctionReference_Kind) { in call()
1682 if (type.isFloat() && args.size() == 1 && args[0]->fKind == Expression::kFloatLiteral_Kind) { in convertNumberConstructor()
1686 if (type.isFloat() && args.size() == 1 && args[0]->fKind == Expression::kIntLiteral_Kind) { in convertNumberConstructor()
1690 if (args[0]->fKind == Expression::kIntLiteral_Kind && (type == *fContext.fInt_Type || in convertNumberConstructor()
1822 if (base->fKind == Expression::kIntLiteral_Kind) { in convertPrefixExpression()
1826 if (base->fKind == Expression::kFloatLiteral_Kind) { in convertPrefixExpression()
1857 if (base->fKind == Expression::kBoolLiteral_Kind) { in convertPrefixExpression()
1879 if (base->fKind == Expression::kTypeReference_Kind) { in convertIndex()
1880 if (index.fKind == ASTExpression::kInt_Kind) { in convertIndex()
2005 if (e->fKind == ProgramElement::kEnum_Kind && type.name() == ((Enum&) *e).fTypeName) { in convertTypeField()
2034 if (ASTExpression::kIdentifier_Kind != args[1]->fKind) { in convertAppend()
2074 if (ProgramElement::kFunction_Kind == e->fKind) { in convertAppend()
2110 switch (expression.fSuffix->fKind) { in convertSuffixExpression()
2115 } else if (base->fKind == Expression::kTypeReference_Kind) { in convertSuffixExpression()
2129 if (Expression::kFunctionReference_Kind == base->fKind && in convertSuffixExpression()
2152 if (base->fKind == Expression::kTypeReference_Kind) { in convertSuffixExpression()
2192 switch (expr.fKind) { in checkValid()
2220 switch (expr.fKind) { in setRefKind()
2260 fKind = kind; in convertProgram()
2269 switch (decl.fKind) { in convertProgram()