Flutter Engine
The Flutter Engine
|
#include <SkSLOperator.h>
Public Types | |
using | Kind = OperatorKind |
Public Member Functions | |
Operator (Kind op) | |
Kind | kind () const |
bool | isEquality () const |
OperatorPrecedence | getBinaryPrecedence () const |
const char * | operatorName () const |
std::string_view | tightOperatorName () const |
bool | isAssignment () const |
bool | isCompoundAssignment () const |
Operator | removeAssignment () const |
bool | isRelational () const |
bool | isOnlyValidForIntegralTypes () const |
bool | isValidForMatrixOrVector () const |
bool | isAllowedInStrictES2Mode () const |
bool | determineBinaryType (const Context &context, const Type &left, const Type &right, const Type **outLeftType, const Type **outRightType, const Type **outResultType) const |
Definition at line 79 of file SkSLOperator.h.
using SkSL::Operator::Kind = OperatorKind |
Definition at line 81 of file SkSLOperator.h.
|
inline |
Definition at line 83 of file SkSLOperator.h.
bool SkSL::Operator::determineBinaryType | ( | const Context & | context, |
const Type & | left, | ||
const Type & | right, | ||
const Type ** | outLeftType, | ||
const Type ** | outRightType, | ||
const Type ** | outResultType | ||
) | const |
Determines the operand and result types of a binary expression. Returns true if the expression is legal, false otherwise. If false, the values of the out parameters are undefined.
Definition at line 223 of file SkSLOperator.cpp.
OperatorPrecedence SkSL::Operator::getBinaryPrecedence | ( | ) | const |
Definition at line 21 of file SkSLOperator.cpp.
|
inline |
Definition at line 133 of file SkSLOperator.h.
bool SkSL::Operator::isAssignment | ( | ) | const |
Definition at line 110 of file SkSLOperator.cpp.
bool SkSL::Operator::isCompoundAssignment | ( | ) | const |
Definition at line 129 of file SkSLOperator.cpp.
|
inline |
Definition at line 87 of file SkSLOperator.h.
bool SkSL::Operator::isOnlyValidForIntegralTypes | ( | ) | const |
Defines the set of operators which are only valid on integral types: << <<= >> >>= & &= | |= ^ ^= % %=
Definition at line 161 of file SkSLOperator.cpp.
bool SkSL::Operator::isRelational | ( | ) | const |
Defines the set of relational (comparison) operators: < <= > >=
Definition at line 149 of file SkSLOperator.cpp.
bool SkSL::Operator::isValidForMatrixOrVector | ( | ) | const |
Defines the set of operators which perform vector/matrix math.
Definition at line 181 of file SkSLOperator.cpp.
|
inline |
Definition at line 85 of file SkSLOperator.h.
const char * SkSL::Operator::operatorName | ( | ) | const |
Definition at line 58 of file SkSLOperator.cpp.
Operator SkSL::Operator::removeAssignment | ( | ) | const |
Definition at line 133 of file SkSLOperator.cpp.
std::string_view SkSL::Operator::tightOperatorName | ( | ) | const |
Definition at line 99 of file SkSLOperator.cpp.