Home
last modified time | relevance | path

Searched refs:typeAnnotation_ (Results 1 – 25 of 40) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsPropertySignature.cpp30 if (typeAnnotation_) { in Iterate()
31 cb(typeAnnotation_); in Iterate()
42 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
49 if (typeAnnotation_) { in Check()
50 typeAnnotation_->Check(checker); in Check()
57 if (typeAnnotation_) { in Check()
58 Variable()->SetTsType(typeAnnotation_->AsTypeNode()->GetType(checker)); in Check()
70 if (typeAnnotation_) { in UpdateSelf()
71 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsTypePredicate.cpp26 if (typeAnnotation_) { in Iterate()
27 cb(typeAnnotation_); in Iterate()
35 {"typeAnnotation", AstDumper::Nullable(typeAnnotation_)}, in Dump()
55 if (typeAnnotation_) { in UpdateSelf()
56 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsPrivateIdentifier.cpp30 if (typeAnnotation_) { in Iterate()
31 cb(typeAnnotation_); in Iterate()
40 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
58 if (typeAnnotation_) { in UpdateSelf()
59 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsMappedType.cpp26 if (typeAnnotation_) { in Iterate()
27 cb(typeAnnotation_); in Iterate()
37 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
62 if (typeAnnotation_) { in UpdateSelf()
63 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsTypeAliasDeclaration.cpp35 cb(typeAnnotation_); in Iterate()
42 {"typeAnnotation", typeAnnotation_}, in Dump()
51 typeAnnotation_->Check(checker); in Check()
63 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsIndexSignature.cpp34 cb(typeAnnotation_); in Iterate()
41 {"typeAnnotation", typeAnnotation_}, in Dump()
56 typeAnnotation_->Check(checker); in Check()
57 checker::Type *indexType = typeAnnotation_->AsTypeNode()->GetType(checker); in Check()
77 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsSatisfiesExpression.cpp26 cb(typeAnnotation_); in Iterate()
31 …ype", "TSSatisfiesExpression"}, {"expression", expression_}, {"typeAnnotation", typeAnnotation_}}); in Dump()
47 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsTypeAssertion.cpp24 cb(typeAnnotation_); in Iterate()
30 …dumper->Add({{"type", "TSTypeAssertion"}, {"typeAnnotation", typeAnnotation_}, {"expression", expr… in Dump()
45 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsIndexSignature.h39 typeAnnotation_(typeAnnotation), in Expression()
57 return typeAnnotation_; in TypeAnnotation()
62 return typeAnnotation_; in TypeAnnotation()
85 Expression *typeAnnotation_; variable
DtsAsExpression.cpp31 cb(typeAnnotation_); in Iterate()
36 …dd({{"type", "TSAsExpression"}, {"expression", expression_}, {"typeAnnotation", typeAnnotation_}}); in Dump()
100 typeAnnotation_->Check(checker); in Check()
102 checker::Type *targetType = typeAnnotation_->AsTypeNode()->GetType(checker); in Check()
117 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DtsTypeAssertion.h35 …: Expression(AstNodeType::TS_TYPE_ASSERTION), typeAnnotation_(typeAnnotation), expression_(express… in TSTypeAssertion()
41 return typeAnnotation_; in TypeAnnotation()
61 Expression *typeAnnotation_;
DtsSatisfiesExpression.h38 typeAnnotation_(typeAnnotation) in TSSatisfiesExpression()
54 return typeAnnotation_; in TypeAnnotation()
65 Expression *typeAnnotation_; variable
DtsAsExpression.h38 typeAnnotation_(typeAnnotation), in TSAsExpression()
55 return typeAnnotation_; in TypeAnnotation()
71 Expression *typeAnnotation_; variable
DtsPrivateIdentifier.h35 …: Expression(AstNodeType::TS_PRIVATE_IDENTIFIER), key_(key), value_(value), typeAnnotation_(typeAn… in TSPrivateIdentifier()
56 return typeAnnotation_; in TypeAnnotation()
68 Expression *typeAnnotation_; variable
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DprivateIdentifier.cpp24 if (typeAnnotation_) { in Iterate()
25 cb(typeAnnotation_); in Iterate()
34 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
48 if (typeAnnotation_) { in UpdateSelf()
49 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
Didentifier.cpp34 if (typeAnnotation_) { in Iterate()
35 cb(typeAnnotation_); in Iterate()
43 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
99 if (typeAnnotation_) { in UpdateSelf()
100 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DarrayExpression.h37 …: Expression(nodeType), elements_(std::move(elements)), typeAnnotation_(nullptr), trailingComma_(t… in ArrayExpression()
48 return typeAnnotation_; in TypeAnnotation()
53 return typeAnnotation_; in TypeAnnotation()
81 typeAnnotation_ = typeAnnotation; in SetTsTypeAnnotation()
93 Expression *typeAnnotation_; variable
DprivateIdentifier.h43 typeAnnotation_(typeAnnotation) in PrivateIdentifier()
49 return typeAnnotation_; in TypeAnnotation()
54 return typeAnnotation_; in TypeAnnotation()
75 Expression *typeAnnotation_ {};
Didentifier.h56 typeAnnotation_(typeAnnotation) in DEFINE_BITOPS()
62 return typeAnnotation_; in DEFINE_BITOPS()
67 return typeAnnotation_; in DEFINE_BITOPS()
126 typeAnnotation_ = typeAnnotation; in DEFINE_BITOPS()
137 Expression *typeAnnotation_ {}; in DEFINE_BITOPS()
/arkcompiler/ets_frontend/ets2panda/ir/base/
DclassProperty.cpp39 if (typeAnnotation_ != nullptr) { in TransformChildren()
40 typeAnnotation_ = static_cast<TypeNode *>(cb(typeAnnotation_)); in TransformChildren()
56 if (typeAnnotation_ != nullptr) { in Iterate()
57 cb(typeAnnotation_); in Iterate()
77 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
106 if (typeAnnotation_ != nullptr) { in Dump()
108 typeAnnotation_->Dump(dumper); in Dump()
144 auto *const typeAnnotation = typeAnnotation_->Clone(allocator, this); in Clone()
DtsIndexSignature.cpp33 typeAnnotation_ = static_cast<TypeNode *>(cb(typeAnnotation_)); in TransformChildren()
39 cb(typeAnnotation_); in Iterate()
46 {"typeAnnotation", typeAnnotation_}, in Dump()
79 auto *const typeAnnotation = typeAnnotation_->Clone(allocator); in Clone()
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsTypePredicate.cpp30 if (typeAnnotation_ != nullptr) { in TransformChildren()
31 typeAnnotation_ = static_cast<TypeNode *>(cb(typeAnnotation_)); in TransformChildren()
38 if (typeAnnotation_ != nullptr) { in Iterate()
39 cb(typeAnnotation_); in Iterate()
47 {"typeAnnotation", AstDumper::Nullish(typeAnnotation_)}, in Dump()
DtsMappedType.cpp30 if (typeAnnotation_ != nullptr) { in TransformChildren()
31 typeAnnotation_ = static_cast<TypeNode *>(cb(typeAnnotation_)); in TransformChildren()
38 if (typeAnnotation_ != nullptr) { in Iterate()
39 cb(typeAnnotation_); in Iterate()
47 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
/arkcompiler/ets_frontend/es2panda/ir/base/
DspreadElement.cpp79 typeAnnotation_ = typeAnnotation; in SetTsTypeAnnotation()
86 if (typeAnnotation_) { in Iterate()
87 cb(typeAnnotation_); in Iterate()
95 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}}); in Dump()
108 if (typeAnnotation_) { in UpdateSelf()
109 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateSelf()
DclassProperty.cpp38 if (typeAnnotation_) { in Iterate()
39 cb(typeAnnotation_); in Iterate()
60 {"typeAnnotation", AstDumper::Optional(typeAnnotation_)}, in Dump()
80 if (typeAnnotation_) { in UpdateChildNodes()
81 typeAnnotation_ = std::get<ir::AstNode *>(cb(typeAnnotation_))->AsExpression(); in UpdateChildNodes()

12