Lines Matching defs:assignment
19 // desc: A compound assignment expression of the form E1 op= E2 is equivalent to E1 =
142 static ir::Expression *ConstructOpAssignmentResult(public_lib::Context *ctx, ir::AssignmentExpression *assignment)
148 const auto opEqual = assignment->OperatorType();
151 auto *const left = assignment->Left();
152 auto *const right = assignment->Right();
161 // Create temporary variable(s) if left hand of assignment is not defined by simple identifier[s]
186 // Generate ArkTS code string for new lowered assignment expression:
195 ir::AstNode *HandleOpAssignment(public_lib::Context *ctx, ir::AssignmentExpression *assignment)
199 if (assignment->TsType() == nullptr) { // hasn't been through checker
200 return assignment;
203 auto *loweringResult = ConstructOpAssignmentResult(ctx, assignment);
205 loweringResult->SetParent(assignment->Parent());
207 auto rng = assignment->Range();
216 auto *const scope = NearestScope(assignment);
222 checker::SavedCheckerContext scc {checker, checker::CheckerStatus::IGNORE_VISIBILITY, ContainingClass(assignment)};
227 AdjustBoxingUnboxingFlags(loweringResult, assignment);