Home
last modified time | relevance | path

Searched refs:typeDecl (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/parser/
H A DETSparser.cpp438 ir::AstNode *typeDecl = ParseTypeDeclaration(true); in ParseInnerTypeDeclaration() local
441 typeDecl->AddModifier(memberModifiers); in ParseInnerTypeDeclaration()
444 if (typeDecl->IsClassDeclaration()) { in ParseInnerTypeDeclaration()
445 typeDecl->AsClassDeclaration()->Definition()->AsClassDefinition()->SetInnerModifier(); in ParseInnerTypeDeclaration()
446 } else if (typeDecl->IsETSStructDeclaration()) { in ParseInnerTypeDeclaration()
447 typeDecl->AsETSStructDeclaration()->Definition()->AsClassDefinition()->SetInnerModifier(); in ParseInnerTypeDeclaration()
451 return typeDecl; in ParseInnerTypeDeclaration()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dobject.cpp557 auto const addTypeAlias = [&childrenSet, &typeAnnotation](varbinder::Decl *typeDecl) { in HasETSFunctionType()
558 typeAnnotation = typeDecl->Node()->AsTSTypeAliasDeclaration()->TypeAnnotation(); in HasETSFunctionType()
570 auto *typeDecl = typeAnnotation->AsETSTypeReference()->Part()->Name()->AsIdentifier()->Variable()->Declaration(); in HasETSFunctionType() local
571 if (typeDecl != nullptr && typeDecl->IsTypeAliasDecl()) { in HasETSFunctionType()
572 addTypeAlias(typeDecl); in HasETSFunctionType()
H A Dhelpers.cpp2047 auto *typeDecl = type->AsETSTypeReference()->Part()->Name()->AsIdentifier()->Variable()->Declaration(); in CheckRethrowingFunction() local
2048 if (typeDecl->IsTypeAliasDecl()) { in CheckRethrowingFunction()
2049 type = typeDecl->Node()->AsTSTypeAliasDeclaration()->TypeAnnotation(); in CheckRethrowingFunction()

Completed in 10 milliseconds