Home
last modified time | relevance | path

Searched refs:assignmentPattern (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/expressions/
DarrayExpression.cpp304 const ir::AssignmentExpression *assignmentPattern = (*it)->AsAssignmentPattern(); in CheckPattern() local
306 if (assignmentPattern->Left()->IsIdentifier()) { in CheckPattern()
307 const ir::Identifier *ident = assignmentPattern->Left()->AsIdentifier(); in CheckPattern()
311 … checker->GetBaseTypeOfLiteralType(assignmentPattern->Right()->Check(checker)); in CheckPattern()
314 } else if (assignmentPattern->Left()->IsArrayPattern()) { in CheckPattern()
317 … checker::ArrayDestructuringContext(checker, assignmentPattern->Left()->AsArrayPattern(), false, in CheckPattern()
318 … true, nullptr, assignmentPattern->Right()); in CheckPattern()
322 ASSERT(assignmentPattern->Left()->IsObjectPattern()); in CheckPattern()
325 … checker::ObjectDestructuringContext(checker, assignmentPattern->Left()->AsObjectPattern(), in CheckPattern()
326 … false, true, nullptr, assignmentPattern->Right()); in CheckPattern()
DobjectExpression.cpp482 … const ir::AssignmentExpression *assignmentPattern = prop->Value()->AsAssignmentPattern(); in CheckPattern() local
483 patternParamType = assignmentPattern->Right()->Check(checker); in CheckPattern()
484 ASSERT(assignmentPattern->Left()->AsIdentifier()->Variable()); in CheckPattern()
485 bindingVar = assignmentPattern->Left()->AsIdentifier()->Variable(); in CheckPattern()
508 … const ir::AssignmentExpression *assignmentPattern = prop->Value()->AsAssignmentPattern(); in CheckPattern() local
510 if (assignmentPattern->Left()->IsIdentifier()) { in CheckPattern()
511 bindingVar = assignmentPattern->Left()->AsIdentifier()->Variable(); in CheckPattern()
513 … checker->GetBaseTypeOfLiteralType(assignmentPattern->Right()->Check(checker)); in CheckPattern()
518 if (assignmentPattern->Left()->IsArrayPattern()) { in CheckPattern()
521 … checker::ArrayDestructuringContext(checker, assignmentPattern->Left()->AsArrayPattern(), in CheckPattern()
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/core/
DdestructuringContext.cpp126 …ingContext::HandleAssignmentPattern(const ir::AssignmentExpression *assignmentPattern, Type *infer… in HandleAssignmentPattern() argument
129 if (!assignmentPattern->Left()->IsArrayPattern()) { in HandleAssignmentPattern()
133 Type *defaultType = assignmentPattern->Right()->Check(checker_); in HandleAssignmentPattern()
139 if (validateDefault && assignmentPattern->Right()->IsObjectExpression() && in HandleAssignmentPattern()
140 assignmentPattern->Left()->IsObjectPattern()) { in HandleAssignmentPattern()
141 …ValidateObjectLiteralType(defaultType->AsObjectType(), assignmentPattern->Left()->AsObjectPattern(… in HandleAssignmentPattern()
161 if (assignmentPattern->Left()->IsIdentifier()) { in HandleAssignmentPattern()
163 … HandleDestructuringAssignment(assignmentPattern->Left()->AsIdentifier(), initType, defaultType); in HandleAssignmentPattern()
168 … checker_->ThrowAssignmentError(defaultType, inferedType, assignmentPattern->Left()->Start()); in HandleAssignmentPattern()
171 … SetInferedTypeForVariable(assignmentPattern->Left()->AsIdentifier()->Variable(), inferedType, in HandleAssignmentPattern()
[all …]
DdestructuringContext.h58 … void HandleAssignmentPattern(const ir::AssignmentExpression *assignmentPattern, Type *inferedType,
Dfunction.cpp193 const ir::AssignmentExpression *assignmentPattern = prop->Value()->AsAssignmentPattern(); in CreateParameterTypeForObjectAssignmentPattern() local
198 newProp->SetTsType(GetBaseTypeOfLiteralType(CheckTypeCached(assignmentPattern->Right()))); in CreateParameterTypeForObjectAssignmentPattern()