Home
last modified time | relevance | path

Searched refs:convResult (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/base/
DspreadElement.cpp47 bool convResult = true; in ConvertibleToRest() local
51convResult = allowPattern && argument_->AsArrayExpression()->ConvertibleToArrayPattern(); in ConvertibleToRest()
55convResult = allowPattern && argument_->AsObjectExpression()->ConvertibleToObjectPattern(); in ConvertibleToRest()
61 convResult = false; in ConvertibleToRest()
65 convResult = !isDeclaration; in ConvertibleToRest()
74 return convResult; in ConvertibleToRest()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DassignmentExpression.cpp33 bool convResult = true; in ConvertibleToAssignmentPattern() local
37 convResult = left_->AsArrayExpression()->ConvertibleToArrayPattern(); in ConvertibleToAssignmentPattern()
41 convResult = mustBePattern && left_->AsSpreadElement()->ConvertibleToRest(false); in ConvertibleToAssignmentPattern()
45 convResult = left_->AsObjectExpression()->ConvertibleToObjectPattern(); in ConvertibleToAssignmentPattern()
49convResult = left_->AsAssignmentExpression()->ConvertibleToAssignmentPattern(mustBePattern); in ConvertibleToAssignmentPattern()
54 convResult = false; in ConvertibleToAssignmentPattern()
67 return convResult; in ConvertibleToAssignmentPattern()
72 convResult = right_->AsArrayExpression()->ConvertibleToArrayPattern(); in ConvertibleToAssignmentPattern()
77 convResult = false; in ConvertibleToAssignmentPattern()
81 convResult = right_->AsObjectExpression()->ConvertibleToObjectPattern(); in ConvertibleToAssignmentPattern()
[all …]
DarrayExpression.cpp34 bool convResult = true; in ConvertibleToArrayPattern() local
38 convResult = it->AsArrayExpression()->ConvertibleToArrayPattern(); in ConvertibleToArrayPattern()
43 convResult = it->AsSpreadElement()->ConvertibleToRest(isDeclaration_); in ConvertibleToArrayPattern()
45 convResult = false; in ConvertibleToArrayPattern()
51 convResult = it->AsObjectExpression()->ConvertibleToObjectPattern(); in ConvertibleToArrayPattern()
55 convResult = it->AsAssignmentExpression()->ConvertibleToAssignmentPattern(); in ConvertibleToArrayPattern()
61 convResult = false; in ConvertibleToArrayPattern()
69 if (!convResult) { in ConvertibleToArrayPattern()
75 return convResult; in ConvertibleToArrayPattern()
DobjectExpression.cpp129 bool convResult = true; in ConvertibleToObjectPattern() local
134 convResult = it->AsArrayExpression()->ConvertibleToArrayPattern(); in ConvertibleToObjectPattern()
139 convResult = it->AsSpreadElement()->ConvertibleToRest(isDeclaration_, false); in ConvertibleToObjectPattern()
141 convResult = false; in ConvertibleToObjectPattern()
148 convResult = it->AsObjectExpression()->ConvertibleToObjectPattern(); in ConvertibleToObjectPattern()
152 convResult = it->AsAssignmentExpression()->ConvertibleToAssignmentPattern(); in ConvertibleToObjectPattern()
158 convResult = false; in ConvertibleToObjectPattern()
162 convResult = it->AsProperty()->ConventibleToPatternProperty(); in ConvertibleToObjectPattern()
170 if (!convResult) { in ConvertibleToObjectPattern()
176 return convResult; in ConvertibleToObjectPattern()