Home
last modified time | relevance | path

Searched refs:TypeAnnotation (Results 1 – 23 of 23) sorted by relevance

/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclarator.cpp76 const ir::Expression *typeAnnotation = declarator->Id()->AsIdentifier()->TypeAnnotation(); in CheckSimpleVariableDeclaration()
135 …:ArrayDestructuringContext(checker, id_, false, id_->AsArrayPattern()->TypeAnnotation() == nullptr, in Check()
136 id_->AsArrayPattern()->TypeAnnotation(), init_) in Check()
145 …checker::ObjectDestructuringContext(checker, id_, false, id_->AsObjectPattern()->TypeAnnotation() … in Check()
146 id_->AsObjectPattern()->TypeAnnotation(), init_) in Check()
/arkcompiler/ets_frontend/es2panda/ir/base/
DcatchClause.cpp65 typeAnnotation = param_->AsIdentifier()->TypeAnnotation(); in Check()
67 typeAnnotation = param_->AsArrayPattern()->TypeAnnotation(); in Check()
70 typeAnnotation = param_->AsObjectPattern()->TypeAnnotation(); in Check()
DspreadElement.h47 const Expression *TypeAnnotation() const in TypeAnnotation() function
DclassProperty.h74 const Expression *TypeAnnotation() const in TypeAnnotation() function
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsIndexSignature.h54 const Expression *TypeAnnotation() const in TypeAnnotation() function
59 Expression *TypeAnnotation() in TypeAnnotation() function
DtsTypeAssertion.h39 const Expression *TypeAnnotation() const in TypeAnnotation() function
DtsAsExpression.h53 const Expression *TypeAnnotation() const in TypeAnnotation() function
DtsTypePredicate.h47 Expression *TypeAnnotation() const in TypeAnnotation() function
DtsPrivateIdentifier.h54 const Expression *TypeAnnotation() const in TypeAnnotation() function
DtsPropertySignature.h55 const Expression *TypeAnnotation() const in TypeAnnotation() function
DtsTypeAliasDeclaration.h61 const Expression *TypeAnnotation() const in TypeAnnotation() function
DtsMappedType.h51 Expression *TypeAnnotation() in TypeAnnotation() function
DtsIndexSignature.cpp27 …return param_->AsIdentifier()->TypeAnnotation()->IsTSNumberKeyword() ? TSIndexSignatureKind::NUMBER in Kind()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dfunction.cpp128 if (!param->TypeAnnotation()) { in CheckFunctionIdentifierParameter()
136 param->TypeAnnotation()->Check(this); in CheckFunctionIdentifierParameter()
137 paramVar->SetTsType(param->TypeAnnotation()->AsTypeNode()->GetType(this)); in CheckFunctionIdentifierParameter()
214 if (paramIdent->TypeAnnotation()) { in CheckFunctionAssignmentPatternParameter()
215 paramIdent->TypeAnnotation()->Check(this); in CheckFunctionAssignmentPatternParameter()
216 Type *paramType = paramIdent->TypeAnnotation()->AsTypeNode()->GetType(this); in CheckFunctionAssignmentPatternParameter()
235 …ArrayDestructuringContext(this, arrayPattern, false, true, arrayPattern->TypeAnnotation(), param->… in CheckFunctionAssignmentPatternParameter()
241 …ext = ObjectDestructuringContext(this, objectPattern, false, true, objectPattern->TypeAnnotation(), in CheckFunctionAssignmentPatternParameter()
262 typeAnnotation = param->Argument()->AsIdentifier()->TypeAnnotation(); in CheckFunctionRestParameter()
266 typeAnnotation = param->Argument()->AsArrayPattern()->TypeAnnotation(); in CheckFunctionRestParameter()
[all …]
Dhelpers.cpp343 if (declarator->Id()->AsIdentifier()->TypeAnnotation()) { in InferSimpleVariableDeclaratorType()
344 … var->SetTsType(declarator->Id()->AsIdentifier()->TypeAnnotation()->AsTypeNode()->GetType(this)); in InferSimpleVariableDeclaratorType()
396 …var->SetTsType(decl->Node()->AsTSPropertySignature()->TypeAnnotation()->AsTypeNode()->GetType(this… in GetTypeOfVariable()
415 if (ident->TypeAnnotation()) { in GetTypeOfVariable()
417 var->SetTsType(ident->TypeAnnotation()->AsTypeNode()->GetType(this)); in GetTypeOfVariable()
427 if (ident->TypeAnnotation()) { in GetTypeOfVariable()
429 var->SetTsType(ident->TypeAnnotation()->AsTypeNode()->GetType(this)); in GetTypeOfVariable()
492 resolvedType = declaration->TypeAnnotation()->AsTypeNode()->GetType(this); in GetTypeFromTypeAliasReference()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DarrayExpression.h46 const Expression *TypeAnnotation() const in TypeAnnotation() function
51 Expression *TypeAnnotation() in TypeAnnotation() function
DobjectExpression.h54 const Expression *TypeAnnotation() const in TypeAnnotation() function
59 Expression *TypeAnnotation() in TypeAnnotation() function
Didentifier.h60 const Expression *TypeAnnotation() const in DEFINE_BITOPS()
65 Expression *TypeAnnotation() in DEFINE_BITOPS()
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeSystem.h712 int64_t typeIndex = extractor_->GetTypeIndexFromAnnotation(field->TypeAnnotation()); in FillField()
807 auto key = t->Param()->AsIdentifier()->TypeAnnotation(); in FillIndexSignatures()
809 extractor_->GetTypeIndexFromAnnotation(t->TypeAnnotation()); in FillIndexSignatures()
970 int64_t typeIndex = extractor_->GetTypeIndexFromAnnotation(field->TypeAnnotation()); in FillField()
1012 auto key = indexSignature->Param()->AsIdentifier()->TypeAnnotation(); in FillIndexSignature()
1014 extractor_->GetTypeIndexFromAnnotation(indexSignature->TypeAnnotation()); in FillIndexSignature()
1262 auto key = indexSignature->Param()->AsIdentifier()->TypeAnnotation(); in FillIndexSignature()
1264 extractor_->GetTypeIndexFromAnnotation(indexSignature->TypeAnnotation()); in FillIndexSignature()
1285 … int64_t typeIndex = extractor_->GetTypeIndexFromAnnotation(property->TypeAnnotation()); in FillMembers()
DtypeExtractor.cpp466 auto typeNode = node->AsTSTypeAliasDeclaration()->TypeAnnotation(); in GetTypeIndexFromTypeAliasNode()
479 auto typeIndex = GetTypeIndexFromAnnotation(node->AsTSAsExpression()->TypeAnnotation()); in GetTypeIndexFromAsNode()
486 auto typeIndex = GetTypeIndexFromAnnotation(node->AsTSTypeAssertion()->TypeAnnotation()); in GetTypeIndexFromAssertionNode()
632 auto typeAnnotation = identifier->TypeAnnotation(); in GetTypeIndexFromIdentifier()
770 GetTypeIndexFromAnnotation(typeAliasDef->TypeAnnotation())); in HandleTypeAliasDeclaration()
774 GetTypeIndexFromAnnotation(typeAliasDef->TypeAnnotation())); in HandleTypeAliasDeclaration()
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.cpp426 BuildTSSignatureDeclarationBaseParamsWithParent(ident, ident->TypeAnnotation()); in BuildVarDeclaratorId()
439 … BuildTSSignatureDeclarationBaseParamsWithParent(objPattern, objPattern->TypeAnnotation()); in BuildVarDeclaratorId()
449 … BuildTSSignatureDeclarationBaseParamsWithParent(arrayPattern, arrayPattern->TypeAnnotation()); in BuildVarDeclaratorId()
/arkcompiler/ets_frontend/es2panda/parser/
DexpressionParser.cpp670 if (lhsExpression->AsIdentifier()->TypeAnnotation() != nullptr) { in ValidateParenthesizedExpression()
679 if (lhsExpression->AsArrayExpression()->TypeAnnotation() != nullptr) { in ValidateParenthesizedExpression()
689 if (lhsExpression->AsObjectExpression()->TypeAnnotation() != nullptr) { in ValidateParenthesizedExpression()
DparserImpl.cpp2646 …indexSignature->SetRange({indexSignature->Param()->Start(), indexSignature->TypeAnnotation()->End(… in ParseClassElement()