Home
last modified time | relevance | path

Searched refs:TypeAnnotation (Results 1 - 25 of 70) sorted by relevance

123

/arkcompiler/ets_frontend/ets2panda/ir/base/
H A DtsPropertySignature.cpp31 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 DspreadElement.cpp123 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 DcatchClause.cpp62 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 Didentifier.cpp58 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 DobjectExpression.cpp91 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 DarrayExpression.cpp124 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 DfunctionDeclaration.cpp74 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 DetsParameterExpression.cpp85 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 DetsParameterExpression.h55 [[nodiscard]] TypeNode const *TypeAnnotation() const noexcept;
56 [[nodiscard]] TypeNode *TypeAnnotation() noexcept;
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsAsExpression.cpp45 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 DtsTypeAliasDeclaration.cpp51 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 DtsTypeAssertion.cpp28 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 DvariableDeclarator.cpp78 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 Dfunction.cpp128 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 Dhelpers.cpp345 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 DprivateIdentifier.h47 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 DarrayExpression.h46 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 Didentifier.h60 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 DtsIndexSignature.h55 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 DcatchClause.cpp65 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 Dhelpers.cpp343 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 Dfunction.cpp126 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 Dexpression.cpp24 if (auto *const annotation = other.TypeAnnotation(); annotation != nullptr) { in AnnotatedExpression()
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DreferenceTypeAnnotationIsNull.cpp26 if (ast->AsIdentifier()->IsReference() && ast->AsIdentifier()->TypeAnnotation() != nullptr) { in operator ()()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DinterfacePropertyDeclarations.cpp58 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()

Completed in 11 milliseconds

123