Home
last modified time | relevance | path

Searched refs:arrow (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DexpressionLambdaLowering.cpp20 static ir::AstNode *ConvertExpression(checker::ETSChecker *const checker, ir::ArrowFunctionExpression *const arrow) in ConvertExpression() argument
22 auto *const function = arrow->Function(); in ConvertExpression()
43 return arrow; in ConvertExpression()
/arkcompiler/ets_runtime/test/moduletest/async/
H A Dasync.js28 var arrow = () => {}
37 print(arrow.name)
/arkcompiler/ets_frontend/ets2panda/parser/
H A DexpressionParser.cpp283 ThrowSyntaxError("Insufficient formal parameter in arrow function."); in ValidateArrowParameter()
290 ThrowSyntaxError("yield is not allowed in arrow function parameters"); in ValidateArrowParameterAssignment()
292 ThrowSyntaxError("await is not allowed in arrow function parameters"); in ValidateArrowParameterAssignment()
401 ThrowSyntaxError("Unexpected token, arrow (=>)"); in ConvertToArrowParameter()
1750 ir::ArrowFunctionExpression *arrow = ParsePotentialArrowExpression(&returnExpression, startLoc); in ParseMemberExpression() local
1752 if (arrow != nullptr) { in ParseMemberExpression()
1753 return arrow; in ParseMemberExpression()
/arkcompiler/ets_frontend/es2panda/parser/
H A DexpressionParser.cpp354 ThrowSyntaxError("yield is not allowed in arrow function parameters"); in ValidateArrowParameter()
358 ThrowSyntaxError("await is not allowed in arrow function parameters"); in ValidateArrowParameter()
372 ThrowSyntaxError("Insufficient formal parameter in arrow function."); in ValidateArrowParameter()
471 ThrowSyntaxError("Unexpected token, arrow (=>)"); in ConvertToArrowParameter()
1832 ir::ArrowFunctionExpression *arrow = ParsePotentialArrowExpression(&returnExpression, startLoc, in ParseMemberExpression() local
1835 if (arrow) { in ParseMemberExpression()
1836 return arrow; in ParseMemberExpression()

Completed in 8 milliseconds