/arkcompiler/ets_frontend/ets2panda/ir/base/ |
H A D | tsPropertySignature.cpp | 31 if (auto *const typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 43 if (TypeAnnotation() != nullptr) { in Iterate() 44 cb(TypeAnnotation()); in Iterate() 55 {"typeAnnotation", AstDumper::Optional(TypeAnnotation())}}); in Dump() 86 auto *const typeAnnotation = TypeAnnotation()->Clone(allocator, nullptr); in Clone()
|
H A D | spreadElement.cpp | 123 if (auto *const typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 139 if (TypeAnnotation() != nullptr) { in Iterate() 140 cb(TypeAnnotation()); in Iterate() 149 {"typeAnnotation", AstDumper::Optional(TypeAnnotation())}}); in Dump() 156 auto type = TypeAnnotation(); in Dump()
|
H A D | catchClause.cpp | 62 if (param_->IsIdentifier() && param_->AsIdentifier()->TypeAnnotation() != nullptr) { in Dump() 64 param_->AsIdentifier()->TypeAnnotation()->Dump(dumper); in Dump() 78 return param_->AsIdentifier()->TypeAnnotation() == nullptr; in IsDefaultCatchClause()
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | identifier.cpp | 58 if (auto *typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 75 if (TypeAnnotation() != nullptr) { in Iterate() 76 cb(TypeAnnotation()); in Iterate() 90 if (TypeAnnotation() != nullptr) { in ValidateExpression() 91 return {"Unexpected token.", TypeAnnotation()->Start()}; in ValidateExpression() 102 {"typeAnnotation", AstDumper::Optional(TypeAnnotation())}, in Dump()
|
H A D | objectExpression.cpp | 91 if (TypeAnnotation() != nullptr) { in ValidateExpression() 92 return {"Unexpected token.", TypeAnnotation()->Start()}; in ValidateExpression() 210 if (auto *typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 228 if (TypeAnnotation() != nullptr) { in Iterate() 229 cb(TypeAnnotation()); in Iterate() 238 {"typeAnnotation", AstDumper::Optional(TypeAnnotation())}, in Dump()
|
H A D | arrayExpression.cpp | 124 if (TypeAnnotation() != nullptr) { in ValidateExpression() 125 return {"Unexpected token.", TypeAnnotation()->Start()}; in ValidateExpression() 184 if (auto *typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 202 if (TypeAnnotation() != nullptr) { in Iterate() 203 cb(TypeAnnotation()); in Iterate() 212 {"typeAnnotation", AstDumper::Optional(TypeAnnotation())}, in Dump()
|
/arkcompiler/ets_frontend/ets2panda/ir/statements/ |
H A D | functionDeclaration.cpp | 74 param->AsETSParameterExpression()->Ident()->TypeAnnotation() != nullptr && in Dump() 75 param->AsETSParameterExpression()->Ident()->TypeAnnotation()->IsETSTypeReference() && in Dump() 76 param->AsETSParameterExpression()->Ident()->TypeAnnotation()->AsETSTypeReference()->Part() != nullptr && in Dump() 77 param->AsETSParameterExpression()->Ident()->TypeAnnotation()->AsETSTypeReference()->Part()->Name() != in Dump() 81 ->TypeAnnotation() in Dump() 88 ->TypeAnnotation() in Dump()
|
/arkcompiler/ets_frontend/ets2panda/ir/ets/ |
H A D | etsParameterExpression.cpp | 85 TypeNode const *ETSParameterExpression::TypeAnnotation() const noexcept 87 return !IsRestParameter() ? ident_->TypeAnnotation() : spread_->TypeAnnotation(); 90 TypeNode *ETSParameterExpression::TypeAnnotation() noexcept 92 return !IsRestParameter() ? ident_->TypeAnnotation() : spread_->TypeAnnotation(); 167 auto typeAnnotation = ident_->AsAnnotatedExpression()->TypeAnnotation(); in Dump()
|
H A D | etsParameterExpression.h | 55 [[nodiscard]] TypeNode const *TypeAnnotation() const noexcept; 56 [[nodiscard]] TypeNode *TypeAnnotation() noexcept;
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsAsExpression.cpp | 45 if (auto *typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 56 cb(TypeAnnotation()); in Iterate() 61 dumper->Add({{"type", "TSAsExpression"}, {"expression", expression_}, {"typeAnnotation", TypeAnnotation()}}); in Dump() 69 TypeAnnotation()->Dump(dumper); in Dump() 96 auto *typeAnnotation = TypeAnnotation(); in Clone()
|
H A D | tsTypeAliasDeclaration.cpp | 51 if (auto *typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 71 if (TypeAnnotation() != nullptr) { in Iterate() 72 cb(TypeAnnotation()); in Iterate() 81 {"typeAnnotation", AstDumper::Optional(TypeAnnotation())}, in Dump() 98 auto type = TypeAnnotation(); in Dump()
|
H A D | tsTypeAssertion.cpp | 28 if (auto *typeAnnotation = TypeAnnotation(); typeAnnotation != nullptr) { in TransformChildren() 43 cb(TypeAnnotation()); in Iterate() 49 dumper->Add({{"type", "TSTypeAssertion"}, {"typeAnnotation", TypeAnnotation()}, {"expression", expression_}}); in Dump()
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | variableDeclarator.cpp | 78 const ir::Expression *typeAnnotation = declarator->Id()->AsIdentifier()->TypeAnnotation(); in CheckSimpleVariableDeclaration() 136 checker::ArrayDestructuringContext(checker, id_, false, id_->AsArrayPattern()->TypeAnnotation() == nullptr, in Check() 137 id_->AsArrayPattern()->TypeAnnotation(), init_) in Check() 146 checker::ObjectDestructuringContext(checker, id_, false, id_->AsObjectPattern()->TypeAnnotation() == nullptr, in Check() 147 id_->AsObjectPattern()->TypeAnnotation(), init_) in Check()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | function.cpp | 128 if (!param->TypeAnnotation()) { in CheckFunctionIdentifierParameter() 136 param->TypeAnnotation()->Check(this); in CheckFunctionIdentifierParameter() 137 paramVar->SetTsType(param->TypeAnnotation()->AsTypeNode()->GetType(this)); in CheckFunctionIdentifierParameter() 217 if (paramIdent->TypeAnnotation()) { in CheckFunctionAssignmentPatternParameter() 218 paramIdent->TypeAnnotation()->Check(this); in CheckFunctionAssignmentPatternParameter() 219 Type *paramType = paramIdent->TypeAnnotation()->AsTypeNode()->GetType(this); in CheckFunctionAssignmentPatternParameter() 238 ArrayDestructuringContext(this, arrayPattern, false, true, arrayPattern->TypeAnnotation(), param->Right()); in CheckFunctionAssignmentPatternParameter() 244 auto context = ObjectDestructuringContext(this, objectPattern, false, true, objectPattern->TypeAnnotation(), in CheckFunctionAssignmentPatternParameter() 265 typeAnnotation = param->Argument()->AsIdentifier()->TypeAnnotation(); in CheckFunctionRestParameter() 269 typeAnnotation = param->Argument()->AsArrayPattern()->TypeAnnotation(); in CheckFunctionRestParameter() [all...] |
H A D | helpers.cpp | 345 if (declarator->Id()->AsIdentifier()->TypeAnnotation()) { in InferSimpleVariableDeclaratorType() 346 var->SetTsType(declarator->Id()->AsIdentifier()->TypeAnnotation()->AsTypeNode()->GetType(this)); in InferSimpleVariableDeclaratorType() 398 var->SetTsType(decl->Node()->AsTSPropertySignature()->TypeAnnotation()->AsTypeNode()->GetType(this)); in GetTypeOfVariable() 418 if (ident->TypeAnnotation()) { in GetTypeOfVariable() 420 var->SetTsType(ident->TypeAnnotation()->AsTypeNode()->GetType(this)); in GetTypeOfVariable() 430 if (ident->TypeAnnotation()) { in GetTypeOfVariable() 432 var->SetTsType(ident->TypeAnnotation()->AsTypeNode()->GetType(this)); in GetTypeOfVariable() 496 resolvedType = declaration->TypeAnnotation()->AsTypeNode()->GetType(this); in GetTypeFromTypeAliasReference()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | privateIdentifier.h | 47 const Expression *TypeAnnotation() const in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::PrivateIdentifier 52 Expression *TypeAnnotation() in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::PrivateIdentifier
|
H A D | arrayExpression.h | 46 const Expression *TypeAnnotation() const in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::ArrayExpression 51 Expression *TypeAnnotation() in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::ArrayExpression
|
H A D | identifier.h | 60 const Expression *TypeAnnotation() const in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::Identifier 65 Expression *TypeAnnotation() in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::panda::es2panda::ir::Identifier
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsIndexSignature.h | 55 const Expression *TypeAnnotation() const in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::TSIndexSignature 60 Expression *TypeAnnotation() in TypeAnnotation() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::TSIndexSignature
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | catchClause.cpp | 65 typeAnnotation = param_->AsIdentifier()->TypeAnnotation(); in Check() 67 typeAnnotation = param_->AsArrayPattern()->TypeAnnotation(); in Check() 70 typeAnnotation = param_->AsObjectPattern()->TypeAnnotation(); in Check()
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | helpers.cpp | 343 if (declarator->Id()->AsIdentifier()->TypeAnnotation() != nullptr) { in InferSimpleVariableDeclaratorType() 344 var->SetTsType(declarator->Id()->AsIdentifier()->TypeAnnotation()->GetType(this)); in InferSimpleVariableDeclaratorType() 377 if (ident->TypeAnnotation() != nullptr) { in GetTypeParam() 379 var->SetTsType(ident->TypeAnnotation()->GetType(this)); in GetTypeParam() 389 if (ident->TypeAnnotation() != nullptr) { in GetTypeParam() 391 var->SetTsType(ident->TypeAnnotation()->GetType(this)); in GetTypeParam() 435 var->SetTsType(decl->Node()->AsTSPropertySignature()->TypeAnnotation()->GetType(this)); in GetDeclTsType() 518 resolvedType = declaration->TypeAnnotation()->GetType(this); in GetTypeFromTypeAliasReference()
|
H A D | function.cpp | 126 if (param->TypeAnnotation() == nullptr) { in CheckFunctionIdentifierParameter() 134 param->TypeAnnotation()->Check(this); in CheckFunctionIdentifierParameter() 135 paramVar->SetTsType(param->TypeAnnotation()->GetType(this)); in CheckFunctionIdentifierParameter() 212 if (paramIdent->TypeAnnotation() != nullptr) { in CheckFunctionAssignmentPatternParameter() 213 paramIdent->TypeAnnotation()->Check(this); in CheckFunctionAssignmentPatternParameter() 214 Type *paramType = paramIdent->TypeAnnotation()->GetType(this); in CheckFunctionAssignmentPatternParameter() 233 {this, arrayPattern, false, true, arrayPattern->TypeAnnotation(), param->Right()}); in CheckFunctionAssignmentPatternParameter() 240 {this, objectPattern, false, true, objectPattern->TypeAnnotation(), param->Right()}); in CheckFunctionAssignmentPatternParameter() 259 typeAnnotation = param->Argument()->AsAnnotatedExpression()->TypeAnnotation(); in CheckFunctionRestParameter() 313 if (param->TypeAnnotation() ! in CheckFunctionArrayPatternParameter() [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | expression.cpp | 24 if (auto *const annotation = other.TypeAnnotation(); annotation != nullptr) { in AnnotatedExpression()
|
/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A D | referenceTypeAnnotationIsNull.cpp | 26 if (ast->AsIdentifier()->IsReference() && ast->AsIdentifier()->TypeAnnotation() != nullptr) { in operator ()()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | interfacePropertyDeclarations.cpp | 58 types.push_back(field->TypeAnnotation()); in TransformOptionalFieldTypeAnnotation() 86 paramIdent->SetTsTypeAnnotation(field->TypeAnnotation()->Clone(checker->Allocator(), nullptr)); in GenerateGetterOrSetter() 87 paramIdent->TypeAnnotation()->SetParent(paramIdent); in GenerateGetterOrSetter() 99 auto signature = ir::FunctionSignature(nullptr, std::move(params), isSetter ? nullptr : field->TypeAnnotation()); in GenerateGetterOrSetter()
|