Lines Matching refs:writeExpression
131 void MetalCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::MetalCodeGenerator
270 this->writeExpression(*arguments[index], Precedence::kAssignment); in getOutParamHelper()
304 this->writeExpression(*arguments[index], Precedence::kAssignment); in getOutParamHelper()
378 this->writeExpression(*outVars[i], Precedence::kSequence); in writeFunctionCall()
380 this->writeExpression(*arguments[i], Precedence::kSequence); in writeFunctionCall()
531 this->writeExpression(*arg, Precedence::kSequence); in writeArgumentList()
540 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
542 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
550 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
554 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
564 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
566 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
574 this->writeExpression(*arguments[0], Precedence::kAdditive); in writeIntrinsicCall()
576 this->writeExpression(*arguments[1], Precedence::kAdditive); in writeIntrinsicCall()
586 this->writeExpression(*arguments[0], Precedence::kMultiplicative); in writeIntrinsicCall()
588 this->writeExpression(*arguments[1], Precedence::kMultiplicative); in writeIntrinsicCall()
599 this->writeExpression(*arguments[2], Precedence::kSequence); in writeIntrinsicCall()
601 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
603 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
612 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
618 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
624 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
630 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
636 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
642 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
648 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
654 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
660 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
666 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
672 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
678 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
688 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
694 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
700 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
738 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
742 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
756 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
758 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
760 this->writeExpression(*arguments[2], Precedence::kSequence); in writeIntrinsicCall()
774 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
790 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
815 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
879 this->writeExpression(*c.arguments()[0], Precedence::kRelational); in writeIntrinsicCall()
902 this->writeExpression(*c.arguments()[1], Precedence::kRelational); in writeIntrinsicCall()
1126 this->writeExpression(*c.argument(), Precedence::kSequence); in writeConstructorMatrixResize()
1168 this->writeExpression(*c.argument(), Precedence::kSequence); in writeConstructorArrayCast()
1203 this->writeExpression(expr, Precedence::kSequence); in writeConstructorCompoundVector()
1224 this->writeExpression(*expr, Precedence::kSequence); in writeConstructorCompoundMatrix()
1253 this->writeExpression(*arg, Precedence::kSequence); in writeConstructorCompoundMatrix()
1273 this->writeExpression(*arg, Precedence::kSequence); in writeAnyConstructor()
1340 this->writeExpression(*expr.base(), Precedence::kPostfix); in writeIndexExpression()
1342 this->writeExpression(*expr.index(), Precedence::kTopLevel); in writeIndexExpression()
1349 this->writeExpression(*f.base(), Precedence::kPostfix); in writeFieldAccess()
1371 this->writeExpression(*swizzle.base(), Precedence::kPostfix); in writeSwizzle()
1584 this->writeExpression(expr, Precedence::kMultiplicative); in writeNumberAsMatrix()
1633 this->writeExpression(left, precedence); in writeBinaryExpression()
1644 this->writeExpression(left, Precedence::kAssignment); in writeBinaryExpression()
1658 this->writeExpression(right, precedence); in writeBinaryExpression()
1670 this->writeExpression(*t.test(), Precedence::kTernary); in writeTernaryExpression()
1672 this->writeExpression(*t.ifTrue(), Precedence::kTernary); in writeTernaryExpression()
1674 this->writeExpression(*t.ifFalse(), Precedence::kTernary); in writeTernaryExpression()
1686 this->writeExpression(*p.operand(), Precedence::kPrefix); in writePrefixExpression()
1697 this->writeExpression(*p.operand(), Precedence::kPostfix); in writePostfixExpression()
2067 this->writeExpression(value, Precedence::kTopLevel); in writeVarInitializer()
2095 this->writeExpression(*s.as<ExpressionStatement>().expression(), Precedence::kTopLevel); in writeStatement()
2157 this->writeExpression(*stmt.test(), Precedence::kTopLevel); in writeIfStatement()
2170 this->writeExpression(*f.test(), Precedence::kTopLevel); in writeForStatement()
2183 this->writeExpression(*f.test(), Precedence::kTopLevel); in writeForStatement()
2187 this->writeExpression(*f.next(), Precedence::kTopLevel); in writeForStatement()
2197 this->writeExpression(*d.test(), Precedence::kTopLevel); in writeDoStatement()
2203 this->writeExpression(*s.value(), Precedence::kTopLevel); in writeSwitchStatement()
2210 this->writeExpression(*c.value(), Precedence::kTopLevel); in writeSwitchStatement()
2243 this->writeExpression(*r.expression(), Precedence::kTopLevel); in writeReturnStatement()
2258 this->writeExpression(*r.expression(), Precedence::kTopLevel); in writeReturnStatement()