Lines Matching defs:resolved
87 void ETSChecker::ValidateCallExpressionIdentifier(ir::Identifier *const ident, varbinder::Variable *const resolved,
90 if (resolved->HasFlag(varbinder::VariableFlags::CLASS_OR_INTERFACE) &&
127 void ETSChecker::ValidateNewClassInstanceIdentifier(ir::Identifier *const ident, varbinder::Variable *const resolved)
129 if (ident->Parent()->AsETSNewClassInstanceExpression()->GetTypeRef() == ident && (resolved != nullptr) &&
130 !resolved->HasFlag(varbinder::VariableFlags::CLASS_OR_INTERFACE)) {
136 void ETSChecker::ValidateMemberIdentifier(ir::Identifier *const ident, varbinder::Variable *const resolved,
139 if (resolved->Declaration()->Node()->IsTSEnumDeclaration() &&
144 if ((resolved != nullptr) && !resolved->Declaration()->PossibleTDZ()) {
145 WrongContextErrorClassifyByType(ident, resolved);
158 varbinder::Variable *const resolved)
162 if ((resolved != nullptr) && resolved->TsType()->IsETSFunctionType()) {
167 if ((resolved != nullptr) && !resolved->Declaration()->PossibleTDZ()) {
173 void ETSChecker::ValidateAssignmentIdentifier(ir::Identifier *const ident, varbinder::Variable *const resolved,
177 if (assignmentExpr->Left() == ident && (resolved != nullptr) && !resolved->Declaration()->PossibleTDZ()) {
178 WrongContextErrorClassifyByType(ident, resolved);
182 if (assignmentExpr->Right() == ident && (resolved != nullptr) &&
183 (!resolved->Declaration()->PossibleTDZ() && !type->IsETSFunctionType())) {
184 WrongContextErrorClassifyByType(ident, resolved);
204 void ETSChecker::ValidateResolvedIdentifier(ir::Identifier *const ident, varbinder::Variable *const resolved)
206 auto *smartType = Context().GetSmartCast(resolved);
207 auto *const resolvedType = GetApparentType(smartType != nullptr ? smartType : GetTypeOfVariable(resolved));
212 ValidateCallExpressionIdentifier(ident, resolved, resolvedType);
216 ValidateNewClassInstanceIdentifier(ident, resolved);
220 ValidateMemberIdentifier(ident, resolved, resolvedType);
232 if (resolved != nullptr && !resolved->Declaration()->PossibleTDZ()) {
233 WrongContextErrorClassifyByType(ident, resolved);
239 ValidatePropertyOrDeclaratorIdentifier(ident, resolved);
243 ValidateAssignmentIdentifier(ident, resolved, resolvedType);
247 if (resolved != nullptr && !resolved->Declaration()->PossibleTDZ() && !resolvedType->IsETSFunctionType()) {
248 WrongContextErrorClassifyByType(ident, resolved);