Home
last modified time | relevance | path

Searched refs:OperatorPrecedence (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/src/sksl/
DSkSLOperator.cpp21 OperatorPrecedence Operator::getBinaryPrecedence() const { in getBinaryPrecedence()
25 case Kind::PERCENT: return OperatorPrecedence::kMultiplicative; in getBinaryPrecedence()
27 case Kind::MINUS: return OperatorPrecedence::kAdditive; in getBinaryPrecedence()
29 case Kind::SHR: return OperatorPrecedence::kShift; in getBinaryPrecedence()
33 case Kind::GTEQ: return OperatorPrecedence::kRelational; in getBinaryPrecedence()
35 case Kind::NEQ: return OperatorPrecedence::kEquality; in getBinaryPrecedence()
36 case Kind::BITWISEAND: return OperatorPrecedence::kBitwiseAnd; in getBinaryPrecedence()
37 case Kind::BITWISEXOR: return OperatorPrecedence::kBitwiseXor; in getBinaryPrecedence()
38 case Kind::BITWISEOR: return OperatorPrecedence::kBitwiseOr; in getBinaryPrecedence()
39 case Kind::LOGICALAND: return OperatorPrecedence::kLogicalAnd; in getBinaryPrecedence()
[all …]
DSkSLOperator.h57 enum class OperatorPrecedence : uint8_t { enum
91 OperatorPrecedence getBinaryPrecedence() const;
/external/skia/src/sksl/ir/
DSkSLPostfixExpression.cpp45 std::string PostfixExpression::description(OperatorPrecedence parentPrecedence) const { in description()
46 bool needsParens = (OperatorPrecedence::kPostfix >= parentPrecedence); in description()
48 this->operand()->description(OperatorPrecedence::kPostfix) + in description()
DSkSLTernaryExpression.cpp139 std::string TernaryExpression::description(OperatorPrecedence parentPrecedence) const { in description()
140 bool needsParens = (OperatorPrecedence::kTernary >= parentPrecedence); in description()
142 this->test()->description(OperatorPrecedence::kTernary) + " ? " + in description()
143 this->ifTrue()->description(OperatorPrecedence::kTernary) + " : " + in description()
144 this->ifFalse()->description(OperatorPrecedence::kTernary) + in description()
DSkSLChildCall.h26 enum class OperatorPrecedence : uint8_t;
61 std::string description(OperatorPrecedence) const override;
DSkSLSetting.h26 enum class OperatorPrecedence : uint8_t;
65 std::string description(OperatorPrecedence) const override { in description() argument
DSkSLVariableReference.h23 enum class OperatorPrecedence : uint8_t;
76 std::string description(OperatorPrecedence) const override;
DSkSLTypeReference.h24 enum class OperatorPrecedence : uint8_t;
55 std::string description(OperatorPrecedence) const override { in description() argument
DSkSLFunctionCall.h26 enum class OperatorPrecedence : uint8_t;
86 std::string description(OperatorPrecedence) const override;
DSkSLChildCall.cpp28 std::string ChildCall::description(OperatorPrecedence) const { in description()
33 result += arg->description(OperatorPrecedence::kSequence); in description()
DSkSLFieldAccess.h27 enum class OperatorPrecedence : uint8_t;
90 std::string description(OperatorPrecedence) const override;
DSkSLExpression.h25 enum class OperatorPrecedence : uint8_t;
132 virtual std::string description(OperatorPrecedence parentPrecedence) const = 0;
DSkSLIndexExpression.cpp172 std::string IndexExpression::description(OperatorPrecedence) const { in description()
173 return this->base()->description(OperatorPrecedence::kPostfix) + "[" + in description()
174 this->index()->description(OperatorPrecedence::kExpression) + "]"; in description()
DSkSLTernaryExpression.h25 enum class OperatorPrecedence : uint8_t;
88 std::string description(OperatorPrecedence parentPrecedence) const override;
DSkSLIndexExpression.h24 enum class OperatorPrecedence : uint8_t;
78 std::string description(OperatorPrecedence) const override;
DSkSLConstructor.h26 enum class OperatorPrecedence : uint8_t;
39 std::string description(OperatorPrecedence) const override; in description() argument
DSkSLSwizzle.h28 enum class OperatorPrecedence : uint8_t;
105 std::string description(OperatorPrecedence) const override;
DSkSLFieldAccess.cpp116 std::string FieldAccess::description(OperatorPrecedence) const { in description()
117 std::string f = this->base()->description(OperatorPrecedence::kPostfix); in description()
DSkSLLiteral.cpp13 std::string Literal::description(OperatorPrecedence) const { in description()
DSkSLLiteral.h28 enum class OperatorPrecedence : uint8_t;
111 std::string description(OperatorPrecedence) const override; in description() argument
DSkSLVariableReference.cpp21 std::string VariableReference::description(OperatorPrecedence) const { in description()
DSkSLPoison.h32 std::string description(OperatorPrecedence) const override { in description() argument
DSkSLExpression.cpp19 return this->description(OperatorPrecedence::kExpression); in description()
DSkSLEmptyExpression.h38 std::string description(OperatorPrecedence) const override { in description() argument
DSkSLFunctionReference.h40 std::string description(OperatorPrecedence) const override { in description() argument

12