Lines Matching defs:node
596 auto *node = nodeVar->Declaration()->Node();
598 isAnnotationTypeAlias = node->IsTSTypeAliasDeclaration();
600 localTypeAnnotation = node->AsTSTypeAliasDeclaration()->TypeAnnotation();
1593 ir::AstNode *ETSChecker::FindAncestorGivenByType(ir::AstNode *node, ir::AstNodeType type, const ir::AstNode *endNode)
1595 auto *iter = node->Parent();
1629 std::optional<const ir::AstNode *> ETSChecker::FindJumpTarget(ir::AstNode *node)
1631 ASSERT(node->IsBreakStatement() || node->IsContinueStatement());
1633 bool const isContinue = node->IsContinueStatement();
1636 auto label = isContinue ? node->AsContinueStatement()->Ident() : node->AsBreakStatement()->Ident();
1649 const auto *iter = node->Parent();
1670 varbinder::VariableFlags ETSChecker::GetAccessFlagFromNode(const ir::AstNode *node)
1672 if (node->IsPrivate()) {
1676 if (node->IsProtected()) {
1701 void ETSChecker::AddBoxingUnboxingFlagsToNode(ir::AstNode *node, Type *boxingUnboxingType)
1704 node->AddBoxingUnboxingFlags(GetBoxingFlag(boxingUnboxingType));
1706 node->AddBoxingUnboxingFlags(GetUnboxingFlag(boxingUnboxingType));
1929 bool ETSChecker::CheckRethrowingParams(const ir::AstNode *ancestorFunction, const ir::AstNode *node)
1932 if (node->AsCallExpression()->Callee()->AsIdentifier()->Name().Is(
1940 void ETSChecker::CheckThrowingStatements(ir::AstNode *node)
1942 ir::AstNode *ancestorFunction = FindAncestorGivenByType(node, ir::AstNodeType::SCRIPT_FUNCTION);
1948 node->Start());
1954 (!node->IsThrowStatement() && CheckRethrowingParams(ancestorFunction, node)))) {
1958 if (!CheckThrowingPlacement(node, ancestorFunction)) {
1959 if (ancestorFunction->AsScriptFunction()->IsRethrowing() && !node->IsThrowStatement()) {
1963 node->Start());
1975 node->Start());
1981 bool ETSChecker::CheckThrowingPlacement(ir::AstNode *node, const ir::AstNode *ancestorFunction)
1983 ir::AstNode *startPoint = node;
2280 bool ETSChecker::IsInLocalClass(const ir::AstNode *node) const
2282 while (node != nullptr) {
2283 if (node->Type() == ir::AstNodeType::CLASS_DEFINITION) {
2284 return node->AsClassDefinition()->IsLocal();
2286 node = node->Parent();
2663 for (auto node : importDecl->Specifiers()) {
2664 if (node->IsImportSpecifier()) {
2665 auto specifier = node->AsImportSpecifier();