Lines Matching defs:node
460 void ScopesInitPhase::AttachLabelToScope([[maybe_unused]] ir::AstNode *node) {}
722 void InitScopesPhaseETS::RunExternalNode(ir::AstNode *node, varbinder::VarBinder *varbinder)
725 RunExternalNode(node, &program);
728 void InitScopesPhaseETS::RunExternalNode(ir::AstNode *node, parser::Program *ctx)
732 scopesPhase.CallNode(node);
1204 void InitScopesPhaseETS::AttachLabelToScope(ir::AstNode *node)
1206 if (node->Parent() == nullptr) {
1210 if (!node->Parent()->IsLabelledStatement()) {
1214 auto stmt = node->Parent()->AsLabelledStatement();
1245 void InitScopesPhaseETS::AddGlobalDeclaration(ir::AstNode *node)
1249 switch (node->Type()) {
1251 auto def = node->AsClassDeclaration()->Definition();
1260 ident = node->AsETSStructDeclaration()->Definition()->Ident();
1261 isBuiltin = node->AsETSStructDeclaration()->Definition()->IsFromExternal();
1265 ident = node->AsTSInterfaceDeclaration()->Id();
1266 isBuiltin = node->AsTSInterfaceDeclaration()->IsFromExternal();
1270 ident = node->AsTSEnumDeclaration()->Key();
1274 ident = node->AsTSTypeAliasDeclaration()->Id();