Home
last modified time | relevance | path

Searched refs:operatorType (Results 1 - 17 of 17) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/expressions/
H A DbinaryExpression.h36 explicit BinaryExpression(Expression *leftExpr, Expression *rightExpr, lexer::TokenType operatorType) in BinaryExpression() argument
37 : Expression(AstNodeType::BINARY_EXPRESSION), left_(leftExpr), right_(rightExpr), operator_(operatorType) in BinaryExpression()
80 void SetOperator(lexer::TokenType operatorType) in SetOperator() argument
82 operator_ = operatorType; in SetOperator()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DcheckerContext.cpp317 if (auto const operatorType = binaryExpression->OperatorType(); operatorType == lexer::TokenType::KEYW_INSTANCEOF) {
323 } else if (operatorType == lexer::TokenType::PUNCTUATOR_STRICT_EQUAL ||
324 operatorType == lexer::TokenType::PUNCTUATOR_NOT_STRICT_EQUAL ||
325 operatorType == lexer::TokenType::PUNCTUATOR_EQUAL ||
326 operatorType == lexer::TokenType::PUNCTUATOR_NOT_EQUAL) {
337 auto const operatorType = binaryExpression->OperatorType(); variable
339 bool strict = operatorType == lexer::TokenType::PUNCTUATOR_NOT_STRICT_EQUAL ||
340 operatorType == lexer::TokenType::PUNCTUATOR_STRICT_EQUAL;
364 bool const negate = operatorType
[all...]
H A DcheckerContext.h228 void CheckTestSmartCastCondition(lexer::TokenType operatorType);
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
H A DtsTypeOperatorBuilder.h35 TSTypeOperatorBuilder &SetOperatorType(TSOperatorType operatorType) in SetOperatorType() argument
37 operatorType_ = operatorType; in SetOperatorType()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
H A DbinaryExpression.h36 explicit BinaryExpression(Expression *const left, Expression *const right, lexer::TokenType const operatorType) in BinaryExpression() argument
37 : Expression(AstNodeType::BINARY_EXPRESSION), left_(left), right_(right), operator_(operatorType) in BinaryExpression()
132 void SetOperator(lexer::TokenType operatorType) noexcept
134 operator_ = operatorType;
/arkcompiler/ets_frontend/ets2panda/parser/
H A DexpressionParser.cpp1127 static constexpr size_t GetOperatorPrecedenceArithmeticAndComparison(const lexer::TokenType operatorType) in GetOperatorPrecedenceArithmeticAndComparison() argument
1129 switch (operatorType) { in GetOperatorPrecedenceArithmeticAndComparison()
1163 static constexpr size_t GetOperatorPrecedence(const lexer::TokenType operatorType) in GetOperatorPrecedence() argument
1165 ASSERT(operatorType == lexer::TokenType::KEYW_AS || lexer::Token::IsBinaryToken(operatorType)); in GetOperatorPrecedence()
1167 switch (operatorType) { in GetOperatorPrecedence()
1207 return GetOperatorPrecedenceArithmeticAndComparison(operatorType); in GetOperatorPrecedence()
1213 const lexer::TokenType operatorType) in ShouldBinaryExpressionBeAmended()
1215 return GetOperatorPrecedence(binaryExpression->OperatorType()) <= GetOperatorPrecedence(operatorType) && in ShouldBinaryExpressionBeAmended()
1217 (operatorType ! in ShouldBinaryExpressionBeAmended()
1212 ShouldBinaryExpressionBeAmended(const ir::BinaryExpression *const binaryExpression, const lexer::TokenType operatorType) ShouldBinaryExpressionBeAmended() argument
1221 ShouldAsExpressionBeAmended(const ir::TSAsExpression *const asExpression, const lexer::TokenType operatorType) ShouldAsExpressionBeAmended() argument
1228 ShouldExpressionBeAmended(const ir::Expression *const expression, const lexer::TokenType operatorType) ShouldExpressionBeAmended() argument
1242 AreLogicalAndNullishMixedIncorrectly(const ir::Expression *const expression, const lexer::TokenType operatorType) AreLogicalAndNullishMixedIncorrectly() argument
1284 CreateAmendedBinaryExpression(ir::Expression *const left, ir::Expression *const right, const lexer::TokenType operatorType) CreateAmendedBinaryExpression() argument
1304 lexer::TokenType operatorType = lexer_->GetToken().Type(); ParseBinaryExpression() local
2260 lexer::TokenType operatorType = lexer_->GetToken().Type(); ParseUnaryOrPrefixUpdateExpression() local
[all...]
H A DETSparserExpressions.cpp245 lexer::TokenType operatorType = Lexer()->GetToken().Type(); in ParseUnaryOrPrefixUpdateExpression() local
251 if (lexer::Token::IsUpdateToken(operatorType)) { in ParseUnaryOrPrefixUpdateExpression()
260 if (lexer::Token::IsUpdateToken(operatorType)) { in ParseUnaryOrPrefixUpdateExpression()
261 returnExpr = AllocNode<ir::UpdateExpression>(argument, operatorType, true); in ParseUnaryOrPrefixUpdateExpression()
262 } else if (operatorType == lexer::TokenType::KEYW_TYPEOF) { in ParseUnaryOrPrefixUpdateExpression()
265 returnExpr = AllocNode<ir::UnaryExpression>(argument, operatorType); in ParseUnaryOrPrefixUpdateExpression()
H A DparserImpl.h250 void CreateAmendedBinaryExpression(ir::Expression *left, ir::Expression *right, lexer::TokenType operatorType);
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsTypeOperator.h24 explicit TSTypeOperator(TypeNode *type, TSOperatorType operatorType) in TSTypeOperator() argument
25 : TypeNode(AstNodeType::TS_TYPE_OPERATOR), type_(type), operatorType_(operatorType) in TSTypeOperator()
/arkcompiler/ets_frontend/es2panda/ir/ts/
H A DtsTypeOperator.h34 explicit TSTypeOperator(Expression *type, TSOperatorType operatorType) in TSTypeOperator() argument
35 : TypeNode(AstNodeType::TS_TYPE_OPERATOR), type_(type), operatorType_(operatorType) in TSTypeOperator()
/arkcompiler/ets_frontend/ets2panda/ir/
H A DastDump.cpp62 const char *AstDumper::TypeOperatorToString(TSOperatorType operatorType) in TypeOperatorToString() argument
64 if (operatorType == TSOperatorType::KEYOF) { in TypeOperatorToString()
68 if (operatorType == TSOperatorType::READONLY) { in TypeOperatorToString()
72 if (operatorType == TSOperatorType::UNIQUE) { in TypeOperatorToString()
H A DastDump.h198 static const char *TypeOperatorToString(TSOperatorType operatorType);
/arkcompiler/ets_frontend/es2panda/ir/
H A DastDump.cpp69 const char *AstDumper::TypeOperatorToString(TSOperatorType operatorType) in TypeOperatorToString() argument
71 if (operatorType == TSOperatorType::KEYOF) { in TypeOperatorToString()
75 if (operatorType == TSOperatorType::READONLY) { in TypeOperatorToString()
79 if (operatorType == TSOperatorType::UNIQUE) { in TypeOperatorToString()
H A DastDump.h157 static const char *TypeOperatorToString(TSOperatorType operatorType);
/arkcompiler/ets_frontend/es2panda/parser/
H A DexpressionParser.cpp1180 static size_t GetOperatorPrecedence(lexer::TokenType operatorType) in GetOperatorPrecedence() argument
1182 ASSERT(lexer::Token::IsBinaryToken(operatorType)); in GetOperatorPrecedence()
1184 switch (operatorType) { in GetOperatorPrecedence()
1250 lexer::TokenType operatorType) in ShouldBinaryExpressionBeAmended()
1252 return GetOperatorPrecedence(binaryExpression->OperatorType()) <= GetOperatorPrecedence(operatorType) && in ShouldBinaryExpressionBeAmended()
1254 (operatorType != lexer::TokenType::PUNCTUATOR_EXPONENTIATION || in ShouldBinaryExpressionBeAmended()
1260 lexer::TokenType operatorType = lexer_->GetToken().Type(); in ParseBinaryExpression() local
1261 ASSERT(lexer::Token::IsBinaryToken(operatorType)); in ParseBinaryExpression()
1263 if (operatorType == lexer::TokenType::PUNCTUATOR_EXPONENTIATION) { in ParseBinaryExpression()
1284 ShouldBinaryExpressionBeAmended(rightExpr->AsBinaryExpression(), operatorType)) { in ParseBinaryExpression()
1249 ShouldBinaryExpressionBeAmended(ir::BinaryExpression *binaryExpression, lexer::TokenType operatorType) ShouldBinaryExpressionBeAmended() argument
2405 lexer::TokenType operatorType = lexer_->GetToken().Type(); ParseUnaryOrPrefixUpdateExpression() local
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dhelpers.cpp974 void CheckerContext::CheckTestSmartCastCondition(lexer::TokenType operatorType) in CheckTestSmartCastCondition() argument
976 if (operatorType != lexer::TokenType::EOS && operatorType != lexer::TokenType::PUNCTUATOR_LOGICAL_AND && in CheckTestSmartCastCondition()
977 operatorType != lexer::TokenType::PUNCTUATOR_LOGICAL_OR) { in CheckTestSmartCastCondition()
1016 operatorType_ = operatorType; in CheckTestSmartCastCondition()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
H A Daarch64_cgfunc.h610 MOperator SelectRelationMop(RelationOperator operatorType, RelationOperatorOpndPattern opndPattern, bool is64Bits,

Completed in 19 milliseconds