From d6cdc1db4ef2e65c195dd0d4bbe4afd5fbba20f0 Mon Sep 17 00:00:00 2001 From: Google JSIR Bot Date: Wed, 17 Jun 2026 05:13:44 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 933659732 --- maldoca/astgen/ast_def.cc | 18 + maldoca/astgen/ast_def.h | 42 ++ maldoca/astgen/ast_def.proto | 34 ++ maldoca/astgen/ast_gen_main.cc | 76 ++- maldoca/astgen/ast_source_printer.cc | 3 + maldoca/astgen/ast_to_ir_source_printer.cc | 101 +++- maldoca/astgen/ast_to_ir_source_printer.h | 20 +- maldoca/astgen/ir_to_ast_source_printer.cc | 105 +++- maldoca/astgen/ir_to_ast_source_printer.h | 20 +- .../multiple_inheritance/ast.generated.cc | 10 +- maldoca/astgen/type.cc | 25 +- maldoca/astgen/type.h | 37 +- maldoca/astgen/type_test.cc | 7 +- maldoca/js/ast/ast.generated.cc | 458 +++++++++--------- 14 files changed, 627 insertions(+), 329 deletions(-) diff --git a/maldoca/astgen/ast_def.cc b/maldoca/astgen/ast_def.cc index 8ef44a8..52fda0c 100644 --- a/maldoca/astgen/ast_def.cc +++ b/maldoca/astgen/ast_def.cc @@ -360,6 +360,24 @@ absl::StatusOr AstDef::FromProto(const AstDefPb& pb) { for (auto kind : union_type_pb.kinds()) { union_type_node->kinds_.push_back(static_cast(kind)); } + if (union_type_pb.has_ir_op_name()) { + union_type_node->ir_op_name_ = union_type_pb.ir_op_name(); + } + if (union_type_pb.has_should_generate_dispatch()) { + union_type_node->should_generate_dispatch_ = + union_type_pb.should_generate_dispatch(); + } + for (const auto& o : union_type_pb.dispatch_overrides()) { + std::optional ir_op_name; + if (o.has_ir_op_name()) { + ir_op_name = o.ir_op_name(); + } + union_type_node->dispatch_overrides_.emplace( + o.type(), NodeDef::DispatchOverride{o.visitor(), ir_op_name}); + } + for (const auto& s : union_type_pb.dispatch_skip()) { + union_type_node->dispatch_skip_.insert(s); + } if (nodes.contains(union_type_pb.name())) { return absl::InvalidArgumentError( absl::StrCat(union_type_pb.name(), " already exists!")); diff --git a/maldoca/astgen/ast_def.h b/maldoca/astgen/ast_def.h index c8be037..4a661ea 100644 --- a/maldoca/astgen/ast_def.h +++ b/maldoca/astgen/ast_def.h @@ -22,6 +22,7 @@ #include #include "absl/container/flat_hash_map.h" +#include "absl/container/flat_hash_set.h" #include "absl/log/log.h" #include "absl/status/statusor.h" #include "absl/strings/string_view.h" @@ -175,6 +176,44 @@ class NodeDef { // If false, the op is expected to be manually written. bool should_generate_ir_op() const { return should_generate_ir_op_; } + // Whether IR dispatch code should be automatically generated for unions. + bool should_generate_dispatch() const { return should_generate_dispatch_; } + + // Overrides for generated dispatch code. + // + // For a union type (e.g., `Expression`), the generator automatically + // produces dispatch code (e.g., `dynamic_cast` chain in AST-to-IR, or + // `TypeSwitch` in IR-to-AST) to route to the correct visitor for each member + // (e.g., `VisitIdentifier`). + // + // `DispatchOverride` allows customizing this routing for specific members. + struct DispatchOverride { + // The name of the visitor function to call. + // E.g., "VisitIdentifierRef" instead of the default "VisitIdentifier". + std::string visitor; + + // The IR op name to use for this member. + // E.g., "jsir.IdentifierRef" instead of "jsir.Identifier". + std::optional ir_op_name; + }; + + // Map from union member type name (e.g., "Identifier") to its dispatch + // override. + const absl::flat_hash_map& dispatch_overrides() + const { + return dispatch_overrides_; + } + + // Set of union member type names to skip in the generated dispatch code. + // + // If a member is skipped, it will not be included in the generated + // dispatch methods, and must be handled manually if needed. + // + // E.g., {"InvalidExpression"} to skip generating dispatch for invalid nodes. + const absl::flat_hash_set& dispatch_skip() const { + return dispatch_skip_; + } + // The allowed FieldKinds for this node. Does not include those specified in // ancestors. // @@ -293,6 +332,9 @@ class NodeDef { std::vector aggregated_kinds_; bool has_control_flow_; std::optional ir_op_name_; + bool should_generate_dispatch_ = true; + absl::flat_hash_map dispatch_overrides_; + absl::flat_hash_set dispatch_skip_; bool has_fold_; std::vector additional_mlir_traits_; std::vector aggregated_additional_mlir_traits_; diff --git a/maldoca/astgen/ast_def.proto b/maldoca/astgen/ast_def.proto index c607113..7a994b7 100644 --- a/maldoca/astgen/ast_def.proto +++ b/maldoca/astgen/ast_def.proto @@ -342,6 +342,40 @@ message UnionTypePb { // Supported kinds. Each kind leads to a different IR op. repeated FieldKind kinds = 5; + + // [Optional] Custom MLIR op name. + optional string ir_op_name = 6; + + // If true, automatically generate the corresponding IR dispatch code. + optional bool should_generate_dispatch = 7 [default = true]; + + message DispatchOverridePb { + // The name of the union member type to override. + // E.g., "Identifier". + optional string type = 1; + + // The name of the visitor function to call. + // E.g., "VisitIdentifierRef" instead of the default "VisitIdentifier". + optional string visitor = 2; + + // The IR op name to use for this member. + // E.g., "jsir.IdentifierRef" instead of "jsir.Identifier". + optional string ir_op_name = 3; + } + + // Overrides for generated dispatch code. + // + // Allows customizing the generated visitor and IR op name for specific + // union members. + repeated DispatchOverridePb dispatch_overrides = 8; + + // Set of union member type names to skip in the generated dispatch code. + // + // If a member is skipped, it will not be included in the generated + // dispatch methods, and must be handled manually if needed. + // + // E.g., "InvalidExpression" to skip generating dispatch for invalid nodes. + repeated string dispatch_skip = 9; } // Top-level AST definition. diff --git a/maldoca/astgen/ast_gen_main.cc b/maldoca/astgen/ast_gen_main.cc index 44a5ff7..1e3236f 100644 --- a/maldoca/astgen/ast_gen_main.cc +++ b/maldoca/astgen/ast_gen_main.cc @@ -50,6 +50,31 @@ ABSL_FLAG(std::string, ast_path, "", "The directory for the AST code in C++."); ABSL_FLAG(std::string, ir_path, "", "The directory for the IR code in TableGen and C++."); +// Flags to support mapping AST nodes to a different target IR dialect +// (e.g. mapping SWC's "jsswc" AST to the standard "jsir" dialect). +ABSL_FLAG(std::string, ir_lang_name, "", + "The language name for the IR (e.g. 'js')."); + +// Overrides to prevent generated files from overwriting other dialect +// conversions and to use custom names/paths. +ABSL_FLAG(std::string, ast_to_ir_cc_path, "", + "Override output path for generated AST to IR C++ source."); + +ABSL_FLAG(std::string, ir_to_ast_cc_path, "", + "Override output path for generated IR to AST C++ source."); + +ABSL_FLAG(std::string, ast_to_ir_header_include_path, "", + "Override include path for AST to IR header in generated source."); + +ABSL_FLAG(std::string, ir_to_ast_header_include_path, "", + "Override include path for IR to AST header in generated source."); + +ABSL_FLAG(std::string, ast_to_ir_class_name, "", + "Override class name for AST to IR converter."); + +ABSL_FLAG(std::string, ir_to_ast_class_name, "", + "Override class name for IR to AST converter."); + namespace maldoca { namespace { @@ -58,6 +83,15 @@ absl::Status AstGenMain() { auto cc_namespace = absl::GetFlag(FLAGS_cc_namespace); auto ast_path = absl::GetFlag(FLAGS_ast_path); auto ir_path = absl::GetFlag(FLAGS_ir_path); + auto ir_lang_name = absl::GetFlag(FLAGS_ir_lang_name); + auto ast_to_ir_cc_path_flag = absl::GetFlag(FLAGS_ast_to_ir_cc_path); + auto ir_to_ast_cc_path_flag = absl::GetFlag(FLAGS_ir_to_ast_cc_path); + auto ast_to_ir_header_include_path = + absl::GetFlag(FLAGS_ast_to_ir_header_include_path); + auto ir_to_ast_header_include_path = + absl::GetFlag(FLAGS_ir_to_ast_header_include_path); + auto ast_to_ir_class_name = absl::GetFlag(FLAGS_ast_to_ir_class_name); + auto ir_to_ast_class_name = absl::GetFlag(FLAGS_ir_to_ast_class_name); AstDefPb ast_def_pb; MALDOCA_RETURN_IF_ERROR(ParseTextProtoFile(ast_def_path, &ast_def_pb)); @@ -87,27 +121,35 @@ absl::Status AstGenMain() { SetFileContents(ast_from_json_path, ast_from_json)); if (!ir_path.empty()) { - std::string ir_tablegen = PrintIrTableGen(ast_def, ir_path); - auto ir_tablegen_path = JoinPath( - ir_path, absl::StrCat(ast_def.lang_name(), "ir_ops.generated.td")); - std::cout << "Writing ir_tablegen to " << ir_tablegen_path << "\n"; - MALDOCA_RETURN_IF_ERROR( - SetFileContents(ir_tablegen_path, ir_tablegen)); - - std::string ast_to_ir = - PrintAstToIrSource(ast_def, cc_namespace, ast_path, ir_path); - auto ast_to_ir_path = JoinPath( - ir_path, "conversion", - absl::StrCat("ast_to_", ast_def.lang_name(), "ir.generated.cc")); + if (ir_lang_name.empty() || ir_lang_name == ast_def.lang_name()) { + std::string ir_tablegen = PrintIrTableGen(ast_def, ir_path); + auto ir_tablegen_path = JoinPath( + ir_path, absl::StrCat(ast_def.lang_name(), "ir_ops.generated.td")); + std::cout << "Writing ir_tablegen to " << ir_tablegen_path << "\n"; + MALDOCA_RETURN_IF_ERROR(SetFileContents(ir_tablegen_path, ir_tablegen)); + } + + std::string ast_to_ir = PrintAstToIrSource( + ast_def, cc_namespace, ast_path, ir_path, ir_lang_name, + ast_to_ir_header_include_path, ast_to_ir_class_name); + auto ast_to_ir_path = + ast_to_ir_cc_path_flag.empty() + ? JoinPath(ir_path, "conversion", + absl::StrCat("ast_to_", ast_def.lang_name(), + "ir.generated.cc")) + : ast_to_ir_cc_path_flag; std::cout << "Writing ast_to_ir to " << ast_to_ir_path << "\n"; MALDOCA_RETURN_IF_ERROR( SetFileContents(ast_to_ir_path, ast_to_ir)); - std::string ir_to_ast = - PrintIrToAstSource(ast_def, cc_namespace, ast_path, ir_path); - auto ir_to_ast_path = JoinPath( - ir_path, "conversion", - absl::StrCat(ast_def.lang_name(), "ir_to_ast.generated.cc")); + std::string ir_to_ast = PrintIrToAstSource( + ast_def, cc_namespace, ast_path, ir_path, ir_lang_name, + ir_to_ast_header_include_path, ir_to_ast_class_name); + auto ir_to_ast_path = ir_to_ast_cc_path_flag.empty() + ? JoinPath(ir_path, "conversion", + absl::StrCat(ast_def.lang_name(), + "ir_to_ast.generated.cc")) + : ir_to_ast_cc_path_flag; std::cout << "Writing ir_to_ast to " << ir_to_ast_path << "\n"; MALDOCA_RETURN_IF_ERROR( SetFileContents(ir_to_ast_path, ir_to_ast)); diff --git a/maldoca/astgen/ast_source_printer.cc b/maldoca/astgen/ast_source_printer.cc index 6eedf5f..2fe7af6 100644 --- a/maldoca/astgen/ast_source_printer.cc +++ b/maldoca/astgen/ast_source_printer.cc @@ -275,6 +275,9 @@ void AstSourcePrinter::PrintConstructor(const NodeDef& node, } Print(")"); + if (!ancestor->aggregated_fields().empty()) { + Print(" /* NOLINT */"); + } } for (const FieldDef& field : node.fields()) { diff --git a/maldoca/astgen/ast_to_ir_source_printer.cc b/maldoca/astgen/ast_to_ir_source_printer.cc index 29af652..75b3603 100644 --- a/maldoca/astgen/ast_to_ir_source_printer.cc +++ b/maldoca/astgen/ast_to_ir_source_printer.cc @@ -60,8 +60,9 @@ static Symbol GetVisitor(const NodeDef& node, FieldKind kind) { // Gets the name of the *RegionEndOp. // - For an lval or rval (expression): ExprRegionEndOp. // - For a list of lvals or rvals (expressions): ExprsRegionEndOp. -Symbol GetRegionEndOp(const AstDef& ast, const FieldDef& field) { - auto ir_name = Symbol(absl::StrCat(ast.lang_name(), "ir")); +Symbol GetRegionEndOp(const AstDef& ast, const FieldDef& field, + absl::string_view ir_lang) { + auto ir_name = Symbol(absl::StrCat(ir_lang, "ir")); Symbol region_end_op; switch (field.kind()) { @@ -102,8 +103,15 @@ void AstToIrSourcePrinter::PrintAst(const AstDef& ast, Println("// clang-format off"); Println(); - PrintIncludeHeader( - absl::StrCat(ir_path, "/conversion/ast_to_", ast.lang_name(), "ir.h")); + if (!header_include_path_.empty()) { + PrintIncludeHeader(header_include_path_); + } else { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); + PrintIncludeHeader( + absl::StrCat(ir_path, "/conversion/ast_to_", ir_lang, "ir.h")); + } Println(); Println("#include "); @@ -135,7 +143,7 @@ void AstToIrSourcePrinter::PrintAst(const AstDef& ast, Println(); for (const auto* node : ast.topological_sorted_nodes()) { - if (!node->children().empty()) { + if (!node->children().empty() && node->should_generate_dispatch()) { for (FieldKind kind : node->aggregated_kinds()) { PrintNonLeafNode(ast, *node, kind); } @@ -161,7 +169,10 @@ void AstToIrSourcePrinter::PrintAst(const AstDef& ast, void AstToIrSourcePrinter::PrintNonLeafNode(const AstDef& ast, const NodeDef& node, FieldKind kind) { - auto ir_op_name = node.ir_op_name(ast.lang_name(), kind); + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); + auto ir_op_name = node.ir_op_name(ir_lang, kind); std::string return_type; if (ir_op_name.has_value()) { return_type = ir_op_name.value().ToPascalCase(); @@ -184,26 +195,40 @@ void AstToIrSourcePrinter::PrintNonLeafNode(const AstDef& ast, } } } - auto ir_name = Symbol(absl::StrCat(ast.lang_name(), "ir")); + auto ir_name = Symbol(absl::StrCat(ir_lang, "ir")); auto visitor = GetVisitor(node, kind); + std::string class_name = class_name_.empty() + ? absl::StrCat("AstTo", ir_name.ToPascalCase()) + : class_name_; auto vars = WithVars({ {"Ret", return_type}, {"Name", (Symbol(ast.lang_name()) + node.name()).ToPascalCase()}, - {"IrName", ir_name.ToPascalCase()}, + {"ClassName", class_name}, {"Visitor", visitor.ToPascalCase()}, }); Println( - "$Ret$ AstTo$IrName$::$Visitor$(mlir::OpBuilder &builder, const $Name$ " + "$Ret$ $ClassName$::$Visitor$(mlir::OpBuilder &builder, const $Name$ " "*node) {"); { auto indent = WithIndent(); for (const NodeDef* leaf : node.leaves()) { + if (node.dispatch_skip().contains(leaf->name())) { + continue; + } + auto it = node.dispatch_overrides().find(leaf->name()); + std::string visitor_name; + if (it != node.dispatch_overrides().end() && + !it->second.visitor.empty()) { + visitor_name = it->second.visitor; + } else { + visitor_name = GetVisitor(*leaf, kind).ToPascalCase(); + } auto vars = WithVars({ {"LeafName", (Symbol(ast.lang_name()) + leaf->name()).ToPascalCase()}, {"leaf_name", Symbol(leaf->name()).ToCcVarName()}, - {"LeafVisitor", GetVisitor(*leaf, kind).ToPascalCase()}, + {"LeafVisitor", visitor_name}, }); Println( "if (auto *$leaf_name$ = dynamic_cast(node)) {"); @@ -219,8 +244,11 @@ void AstToIrSourcePrinter::PrintNonLeafNode(const AstDef& ast, void AstToIrSourcePrinter::PrintLeafNode(const AstDef& ast, const NodeDef& node, FieldKind kind) { - auto ir_op_name = node.ir_op_name(ast.lang_name(), kind).value(); - auto ir_name = Symbol(absl::StrCat(ast.lang_name(), "ir")); + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); + auto ir_op_name = node.ir_op_name(ir_lang, kind).value(); + auto ir_name = Symbol(absl::StrCat(ir_lang, "ir")); auto visitor = Symbol("Visit") + node.name(); if (kind == FIELD_KIND_LVAL) { @@ -241,16 +269,20 @@ void AstToIrSourcePrinter::PrintLeafNode(const AstDef& ast, const NodeDef& node, break; } + std::string class_name = class_name_.empty() + ? absl::StrCat("AstTo", ir_name.ToPascalCase()) + : class_name_; + auto vars = WithVars({ {"OpName", ir_op_name.ToPascalCase()}, {"Name", (Symbol(ast.lang_name()) + node.name()).ToPascalCase()}, - {"IrName", ir_name.ToPascalCase()}, + {"ClassName", class_name}, {"Visitor", visitor.ToPascalCase()}, {"Creator", creator.ToPascalCase()}, }); Println( - "$OpName$ AstTo$IrName$::$Visitor$(mlir::OpBuilder &builder, const " + "$OpName$ $ClassName$::$Visitor$(mlir::OpBuilder &builder, const " "$Name$ *node) {"); { auto indent = WithIndent(); @@ -320,7 +352,10 @@ void AstToIrSourcePrinter::PrintRegion(const AstDef& ast, const NodeDef& node, auto lhs = Symbol("mlir") + field.name(); auto lhs_region = lhs + "region"; auto rhs = absl::StrCat("node->", field.name().ToCcVarName(), "()"); - auto ir_name = Symbol(absl::StrCat(ast.lang_name(), "ir")); + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); + auto ir_name = Symbol(absl::StrCat(ir_lang, "ir")); auto vars = WithVars({ {"lhs", lhs.ToCcVarName()}, @@ -351,7 +386,7 @@ void AstToIrSourcePrinter::PrintRegion(const AstDef& ast, const NodeDef& node, } }(); - Symbol region_end_op = GetRegionEndOp(ast, field); + Symbol region_end_op = GetRegionEndOp(ast, field, ir_lang); PrintToIr(ast, action, field.type(), RefOrVal::kRef, field.kind(), lhs, rhs); @@ -397,8 +432,11 @@ void AstToIrSourcePrinter::PrintBuiltinToIr(const AstDef& ast, Action action, const BuiltinType& type, const Symbol& lhs, const std::string& rhs) { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); auto vars = WithVars({ - {"mlir_type", type.CcMlirBuilderType(FIELD_KIND_ATTR)}, + {"mlir_type", type.CcMlirBuilderType(ir_lang, FIELD_KIND_ATTR)}, {"lhs", lhs.ToCcVarName()}, {"rhs", rhs}, }); @@ -440,6 +478,9 @@ void AstToIrSourcePrinter::PrintClassToIr(const AstDef& ast, Action action, const ClassType& type, FieldKind kind, const Symbol& lhs, const std::string& rhs) { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); auto vars = WithVars({ {"ClassName", type.name().ToPascalCase()}, {"lhs", lhs.ToCcVarName()}, @@ -449,7 +490,7 @@ void AstToIrSourcePrinter::PrintClassToIr(const AstDef& ast, Action action, switch (action) { case Action::kDef: { auto vars = WithVars({ - {"cc_mlir_type", type.CcMlirBuilderType(kind)}, + {"cc_mlir_type", type.CcMlirBuilderType(ir_lang, kind)}, }); Print("$cc_mlir_type$ "); ABSL_FALLTHROUGH_INTENDED; @@ -508,6 +549,9 @@ void AstToIrSourcePrinter::PrintVariantToIr(const AstDef& ast, Action action, RefOrVal ref_or_val, FieldKind kind, const Symbol& lhs, const std::string& rhs) { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); auto vars = WithVars({ {"lhs", lhs.ToCcVarName()}, {"rhs", rhs}, @@ -517,7 +561,7 @@ void AstToIrSourcePrinter::PrintVariantToIr(const AstDef& ast, Action action, switch (action) { case Action::kDef: { auto vars = WithVars({ - {"cc_mlir_type", type.CcMlirBuilderType(kind)}, + {"cc_mlir_type", type.CcMlirBuilderType(ir_lang, kind)}, }); Println("$cc_mlir_type$ $lhs$;"); case_action = Action::kAssign; @@ -562,6 +606,9 @@ void AstToIrSourcePrinter::PrintListToIr(const AstDef& ast, Action action, const ListType& type, FieldKind kind, const Symbol& lhs, const std::string& rhs) { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); const auto lhs_element = Symbol("mlir_element"); const auto rhs_element = "element"; @@ -667,8 +714,7 @@ void AstToIrSourcePrinter::PrintListToIr(const AstDef& ast, Action action, Println("} else {"); { auto indent = WithIndent(); - auto none_op = - Symbol(absl::StrCat(ast.lang_name(), "ir")) + "NoneOp"; + auto none_op = Symbol(absl::StrCat(ir_lang, "ir")) + "NoneOp"; auto vars = WithVars({ {"NoneOp", none_op.ToPascalCase()}, }); @@ -730,6 +776,9 @@ void AstToIrSourcePrinter::PrintNullableToIr(const AstDef& ast, Action action, RefOrVal ref_or_val, FieldKind kind, const Symbol& lhs, const std::string& rhs) { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); auto vars = WithVars({ {"lhs", lhs.ToCcVarName()}, {"rhs", rhs}, @@ -747,7 +796,7 @@ void AstToIrSourcePrinter::PrintNullableToIr(const AstDef& ast, Action action, break; case Action::kDef: { auto vars = WithVars({ - {"mlir_type", type.CcMlirBuilderType(kind)}, + {"mlir_type", type.CcMlirBuilderType(ir_lang, kind)}, }); Println("$mlir_type$ $lhs$;"); non_null_action = Action::kAssign; @@ -774,11 +823,15 @@ void AstToIrSourcePrinter::PrintNullableToIr(const AstDef& ast, Action action, std::string PrintAstToIrSource(const AstDef& ast, absl::string_view cc_namespace, absl::string_view ast_path, - absl::string_view ir_path) { + absl::string_view ir_path, + absl::string_view ir_lang_name, + absl::string_view header_include_path, + absl::string_view class_name) { std::string str; { google::protobuf::io::StringOutputStream os(&str); - AstToIrSourcePrinter printer(&os); + AstToIrSourcePrinter printer(&os, ir_lang_name, header_include_path, + class_name); printer.PrintAst(ast, cc_namespace, ast_path, ir_path); } diff --git a/maldoca/astgen/ast_to_ir_source_printer.h b/maldoca/astgen/ast_to_ir_source_printer.h index d7ef817..1492d79 100644 --- a/maldoca/astgen/ast_to_ir_source_printer.h +++ b/maldoca/astgen/ast_to_ir_source_printer.h @@ -28,8 +28,14 @@ namespace maldoca { class AstToIrSourcePrinter : public CcPrinterBase { public: - explicit AstToIrSourcePrinter(google::protobuf::io::ZeroCopyOutputStream* os) - : CcPrinterBase(os) {} + explicit AstToIrSourcePrinter(google::protobuf::io::ZeroCopyOutputStream* os, + absl::string_view ir_lang_name = "", + absl::string_view header_include_path = "", + absl::string_view class_name = "") + : CcPrinterBase(os), + ir_lang_name_(ir_lang_name), + header_include_path_(header_include_path), + class_name_(class_name) {} // Action: What to do with the converted IR value/attribute. // @@ -169,6 +175,11 @@ class AstToIrSourcePrinter : public CcPrinterBase { // }); void PrintRegion(const AstDef& ast, const NodeDef& node, const FieldDef& field); + + private: + std::string ir_lang_name_; + std::string header_include_path_; + std::string class_name_; }; // Prints the "ast_toir.generated.cc" file. @@ -194,7 +205,10 @@ class AstToIrSourcePrinter : public CcPrinterBase { std::string PrintAstToIrSource(const AstDef& ast, absl::string_view cc_namespace, absl::string_view ast_path, - absl::string_view ir_path); + absl::string_view ir_path, + absl::string_view ir_lang_name = "", + absl::string_view header_include_path = "", + absl::string_view class_name = ""); } // namespace maldoca diff --git a/maldoca/astgen/ir_to_ast_source_printer.cc b/maldoca/astgen/ir_to_ast_source_printer.cc index 72f8457..29587a9 100644 --- a/maldoca/astgen/ir_to_ast_source_printer.cc +++ b/maldoca/astgen/ir_to_ast_source_printer.cc @@ -74,8 +74,15 @@ void IrToAstSourcePrinter::PrintAst(const AstDef& ast, Println("// clang-format off"); Println(); - PrintIncludeHeader( - absl::StrCat(ir_path, "/conversion/", ast.lang_name(), "ir_to_ast.h")); + if (!header_include_path_.empty()) { + PrintIncludeHeader(header_include_path_); + } else { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); + PrintIncludeHeader( + absl::StrCat(ir_path, "/conversion/", ir_lang, "ir_to_ast.h")); + } Println(); Println("#include "); @@ -117,7 +124,7 @@ void IrToAstSourcePrinter::PrintAst(const AstDef& ast, Println(); for (const auto* node : ast.topological_sorted_nodes()) { - if (!node->children().empty()) { + if (!node->children().empty() && node->should_generate_dispatch()) { for (FieldKind kind : node->aggregated_kinds()) { PrintNonLeafNode(ast, *node, kind); } @@ -143,7 +150,10 @@ void IrToAstSourcePrinter::PrintAst(const AstDef& ast, void IrToAstSourcePrinter::PrintNonLeafNode(const AstDef& ast, const NodeDef& node, FieldKind kind) { - auto ir_op_name = node.ir_op_name(ast.lang_name(), kind); + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); + auto ir_op_name = node.ir_op_name(ir_lang, kind); std::string input_type; if (ir_op_name.has_value()) { input_type = ir_op_name->ToPascalCase(); @@ -161,8 +171,11 @@ void IrToAstSourcePrinter::PrintNonLeafNode(const AstDef& ast, break; } } - auto ir_name = Symbol(absl::StrCat(ast.lang_name(), "ir")); + auto ir_name = Symbol(absl::StrCat(ir_lang, "ir")); auto visitor = GetVisitor(node, kind); + std::string class_name = class_name_.empty() + ? absl::StrCat(ir_name.ToPascalCase(), "ToAst") + : class_name_; auto vars = WithVars({ {"InputType", input_type}, @@ -170,12 +183,12 @@ void IrToAstSourcePrinter::PrintNonLeafNode(const AstDef& ast, kind == FIELD_KIND_ATTR ? "mlir::Attribute" : "mlir::Operation*"}, {"Name", (Symbol(ast.lang_name()) + node.name()).ToPascalCase()}, {"name", kind == FIELD_KIND_ATTR ? "attr" : "op"}, - {"IrName", ir_name.ToPascalCase()}, + {"ClassName", class_name}, {"Visitor", visitor.ToPascalCase()}, }); Println("absl::StatusOr>"); - Println("$IrName$ToAst::$Visitor$($InputType$ $name$) {"); + Println("$ClassName$::$Visitor$($InputType$ $name$) {"); { auto indent = WithIndent(); Println("using Ret = absl::StatusOr>;"); @@ -183,10 +196,34 @@ void IrToAstSourcePrinter::PrintNonLeafNode(const AstDef& ast, { auto indent = WithIndent(); for (const NodeDef* leaf : node.leaves()) { + if (node.dispatch_skip().contains(leaf->name())) { + continue; + } + std::string visitor_name; + std::string op_name; + auto it = node.dispatch_overrides().find(leaf->name()); + + if (it != node.dispatch_overrides().end() && + !it->second.visitor.empty()) { + visitor_name = it->second.visitor; + } else { + visitor_name = GetVisitor(*leaf, kind).ToPascalCase(); + } + + if (it != node.dispatch_overrides().end() && + it->second.ir_op_name.has_value()) { + op_name = *it->second.ir_op_name; + } else { + auto ir_op = leaf->ir_op_name(ir_lang, kind); + if (!ir_op.has_value()) { + LOG(FATAL) << "Leaf node " << leaf->name() + << " has no IR op name for " << ir_lang; + } + op_name = ir_op->ToPascalCase(); + } auto vars = WithVars({ - {"LeafOpName", - leaf->ir_op_name(ast.lang_name(), kind)->ToPascalCase()}, - {"LeafVisitor", GetVisitor(*leaf, kind).ToPascalCase()}, + {"LeafOpName", op_name}, + {"LeafVisitor", visitor_name}, }); Println(".Case([&]($LeafOpName$ $name$) {"); Println(" return $LeafVisitor$($name$);"); @@ -204,24 +241,31 @@ void IrToAstSourcePrinter::PrintNonLeafNode(const AstDef& ast, void IrToAstSourcePrinter::PrintLeafNode(const AstDef& ast, const NodeDef& node, FieldKind kind) { - auto ir_op_name = node.ir_op_name(ast.lang_name(), kind).value(); - auto ir_name = Symbol(absl::StrCat(ast.lang_name(), "ir")); + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); + auto ir_op_name = node.ir_op_name(ir_lang, kind).value(); + auto ir_name = Symbol(absl::StrCat(ir_lang, "ir")); auto visitor = Symbol("Visit") + node.name(); if (kind == FIELD_KIND_LVAL) { visitor += "Ref"; } + std::string class_name = class_name_.empty() + ? absl::StrCat(ir_name.ToPascalCase(), "ToAst") + : class_name_; + auto vars = WithVars({ {"OpName", ir_op_name.ToPascalCase()}, {"Name", (Symbol(ast.lang_name()) + node.name()).ToPascalCase()}, {"name", kind == FIELD_KIND_ATTR ? "attr" : "op"}, - {"IrName", ir_name.ToPascalCase()}, + {"ClassName", class_name}, {"Visitor", visitor.ToPascalCase()}, }); Println("absl::StatusOr>"); - Println("$IrName$ToAst::$Visitor$($OpName$ $name$) {"); + Println("$ClassName$::$Visitor$($OpName$ $name$) {"); { auto indent = WithIndent(); for (const auto* field : node.aggregated_fields()) { @@ -304,6 +348,9 @@ void IrToAstSourcePrinter::PrintField(const AstDef& ast, const NodeDef& node, void IrToAstSourcePrinter::PrintRegion(const AstDef& ast, const NodeDef& node, const FieldDef& field) { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); MaybeNull maybe_null = OptionalnessToMaybeNull(field.optionalness()); std::string converter_type = [&]() -> std::string { @@ -315,13 +362,15 @@ void IrToAstSourcePrinter::PrintRegion(const AstDef& ast, const NodeDef& node, case FIELD_KIND_RVAL: case FIELD_KIND_LVAL: { if (field.type().IsA()) { - auto end_op = - Symbol(absl::StrCat(ast.lang_name(), "ir")) + "ExprsRegionEndOp"; - return absl::StrCat("ExprsRegion<", end_op.ToPascalCase(), ">"); + std::string end_op = + absl::StrCat(Symbol(absl::StrCat(ir_lang, "ir")).ToPascalCase(), + "ExprsRegionEndOp"); + return absl::StrCat("ExprsRegion<", end_op, ">"); } else { - auto end_op = - Symbol(absl::StrCat(ast.lang_name(), "ir")) + "ExprRegionEndOp"; - return absl::StrCat("ExprRegion<", end_op.ToPascalCase(), ">"); + std::string end_op = + absl::StrCat(Symbol(absl::StrCat(ir_lang, "ir")).ToPascalCase(), + "ExprRegionEndOp"); + return absl::StrCat("ExprRegion<", end_op, ">"); } } case FIELD_KIND_STMT: { @@ -387,10 +436,14 @@ void IrToAstSourcePrinter::PrintConverter(const AstDef& ast, const Type& type, absl::string_view lang_name, FieldKind kind, MaybeNull maybe_null) { + absl::string_view ir_lang = ir_lang_name_.empty() + ? ast.lang_name() + : absl::string_view(ir_lang_name_); if (maybe_null == MaybeNull::kYes) { if (kind == FIELD_KIND_LVAL || kind == FIELD_KIND_RVAL) { - auto none_op = Symbol(absl::StrCat(ast.lang_name(), "ir")) + "NoneOp"; - Print(absl::StrCat("Nullable<", none_op.ToPascalCase(), ">(\n")); + std::string none_op = absl::StrCat( + Symbol(absl::StrCat(ir_lang, "ir")).ToPascalCase(), "NoneOp"); + Print(absl::StrCat("Nullable<", none_op, ">(\n")); } else { Print("Nullable(\n"); } @@ -526,11 +579,15 @@ void IrToAstSourcePrinter::PrintListConverter(const AstDef& ast, std::string PrintIrToAstSource(const AstDef& ast, absl::string_view cc_namespace, absl::string_view ast_path, - absl::string_view ir_path) { + absl::string_view ir_path, + absl::string_view ir_lang_name, + absl::string_view header_include_path, + absl::string_view class_name) { std::string str; { google::protobuf::io::StringOutputStream os(&str); - IrToAstSourcePrinter printer(&os); + IrToAstSourcePrinter printer(&os, ir_lang_name, header_include_path, + class_name); printer.PrintAst(ast, cc_namespace, ast_path, ir_path); } diff --git a/maldoca/astgen/ir_to_ast_source_printer.h b/maldoca/astgen/ir_to_ast_source_printer.h index 528177d..0d4c2a9 100644 --- a/maldoca/astgen/ir_to_ast_source_printer.h +++ b/maldoca/astgen/ir_to_ast_source_printer.h @@ -27,8 +27,14 @@ namespace maldoca { class IrToAstSourcePrinter : public CcPrinterBase { public: - explicit IrToAstSourcePrinter(google::protobuf::io::ZeroCopyOutputStream* os) - : CcPrinterBase(os) {} + explicit IrToAstSourcePrinter(google::protobuf::io::ZeroCopyOutputStream* os, + absl::string_view ir_lang_name = "", + absl::string_view header_include_path = "", + absl::string_view class_name = "") + : CcPrinterBase(os), + ir_lang_name_(ir_lang_name), + header_include_path_(header_include_path), + class_name_(class_name) {} void PrintAst(const AstDef& ast, absl::string_view cc_namespace, absl::string_view ast_path, absl::string_view ir_path); @@ -61,12 +67,20 @@ class IrToAstSourcePrinter : public CcPrinterBase { void PrintListConverter(const AstDef& ast, const ListType& list_type, absl::string_view lang_name, FieldKind kind); + + private: + std::string ir_lang_name_; + std::string header_include_path_; + std::string class_name_; }; std::string PrintIrToAstSource(const AstDef& ast, absl::string_view cc_namespace, absl::string_view ast_path, - absl::string_view ir_path); + absl::string_view ir_path, + absl::string_view ir_lang_name = "", + absl::string_view header_include_path = "", + absl::string_view class_name = ""); } // namespace maldoca diff --git a/maldoca/astgen/test/multiple_inheritance/ast.generated.cc b/maldoca/astgen/test/multiple_inheritance/ast.generated.cc index 2bbabc0..ccb602c 100644 --- a/maldoca/astgen/test/multiple_inheritance/ast.generated.cc +++ b/maldoca/astgen/test/multiple_inheritance/ast.generated.cc @@ -114,7 +114,7 @@ void MNode::set_loc(std::unique_ptr loc) { MFunction::MFunction( std::unique_ptr loc, std::string id) - : MNode(std::move(loc)), + : MNode(std::move(loc)) /* NOLINT */, id_(std::move(id)) {} absl::string_view MFunction::id() const { @@ -132,7 +132,7 @@ void MFunction::set_id(std::string id) { MObjectMember::MObjectMember( std::unique_ptr loc, bool computed) - : MNode(std::move(loc)), + : MNode(std::move(loc)) /* NOLINT */, computed_(std::move(computed)) {} bool MObjectMember::computed() const { @@ -151,9 +151,9 @@ MObjectMethod::MObjectMethod( std::unique_ptr loc, bool computed, std::string id) - : MNode(std::move(loc)), - MObjectMember(std::move(loc), std::move(computed)), - MFunction(std::move(loc), std::move(id)) {} + : MNode(std::move(loc)) /* NOLINT */, + MObjectMember(std::move(loc), std::move(computed)) /* NOLINT */, + MFunction(std::move(loc), std::move(id)) /* NOLINT */ {} // clang-format on // NOLINTEND(whitespace/line_length) diff --git a/maldoca/astgen/type.cc b/maldoca/astgen/type.cc index 5156810..940da66 100644 --- a/maldoca/astgen/type.cc +++ b/maldoca/astgen/type.cc @@ -389,7 +389,8 @@ std::string ClassType::CcGetterType(CcGetterKind getter_kind) const { // CcMlirBuilderType() / CcMlirGetterType() // ============================================================================= -std::string ListType::CcMlirBuilderType(FieldKind kind) const { +std::string ListType::CcMlirBuilderType(absl::string_view ir_lang_name, + FieldKind kind) const { switch (kind) { case FIELD_KIND_UNSPECIFIED: LOG(FATAL) << "Unspecified FieldKind."; @@ -403,7 +404,8 @@ std::string ListType::CcMlirBuilderType(FieldKind kind) const { } } -std::string ListType::CcMlirGetterType(FieldKind kind) const { +std::string ListType::CcMlirGetterType(absl::string_view ir_lang_name, + FieldKind kind) const { switch (kind) { case FIELD_KIND_UNSPECIFIED: LOG(FATAL) << "Unspecified FieldKind."; @@ -417,10 +419,11 @@ std::string ListType::CcMlirGetterType(FieldKind kind) const { } } -std::string VariantType::CcMlirType(FieldKind kind) const { +std::string VariantType::CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const { absl::flat_hash_set cc_mlir_types; for (const auto& type : types()) { - cc_mlir_types.insert(type->CcMlirType(kind)); + cc_mlir_types.insert(type->CcMlirType(ir_lang_name, kind)); } switch (kind) { @@ -442,7 +445,8 @@ std::string VariantType::CcMlirType(FieldKind kind) const { } } -std::string BuiltinType::CcMlirType(FieldKind kind) const { +std::string BuiltinType::CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const { switch (kind) { case FIELD_KIND_UNSPECIFIED: LOG(FATAL) << "Unspecified FieldKind."; @@ -466,7 +470,8 @@ std::string BuiltinType::CcMlirType(FieldKind kind) const { } } -std::string EnumType::CcMlirType(FieldKind kind) const { +std::string EnumType::CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const { switch (kind) { case FIELD_KIND_UNSPECIFIED: LOG(FATAL) << "Unspecified FieldKind."; @@ -481,19 +486,21 @@ std::string EnumType::CcMlirType(FieldKind kind) const { return "mlir::StringAttr"; } -std::string ClassType::CcMlirType(FieldKind kind) const { +std::string ClassType::CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const { + absl::string_view ir_lang = ir_lang_name.empty() ? lang_name_ : ir_lang_name; switch (kind) { case FIELD_KIND_UNSPECIFIED: LOG(FATAL) << "Unspecified FieldKind."; case FIELD_KIND_ATTR: { if (node_def_ != nullptr) { - auto ir_op_name = node_def_->ir_op_name(lang_name_, kind); + auto ir_op_name = node_def_->ir_op_name(ir_lang, kind); if (ir_op_name.has_value()) { return ir_op_name->ToPascalCase(); } } - auto ir_name = Symbol(absl::StrCat(lang_name_, "ir")); + auto ir_name = Symbol(absl::StrCat(ir_lang, "ir")); return (ir_name + name() + "Attr").ToPascalCase(); } case FIELD_KIND_LVAL: diff --git a/maldoca/astgen/type.h b/maldoca/astgen/type.h index 21c31a0..8487238 100644 --- a/maldoca/astgen/type.h +++ b/maldoca/astgen/type.h @@ -254,7 +254,8 @@ class Type { // // [Builtin] // => mlir::ArrayAttr - virtual std::string CcMlirBuilderType(FieldKind kind) const = 0; + virtual std::string CcMlirBuilderType(absl::string_view ir_lang_name, + FieldKind kind) const = 0; // Prints the C++ type for MLIR getters. // @@ -302,7 +303,8 @@ class Type { // // [Builtin] // => mlir::ArrayAttr - virtual std::string CcMlirGetterType(FieldKind kind) const = 0; + virtual std::string CcMlirGetterType(absl::string_view ir_lang_name, + FieldKind kind) const = 0; // Prints the MLIR TableGen type. // @@ -370,14 +372,17 @@ class NonListType : public Type { // For `NonListType`, `CcMlirGetterType` and `CcMlirBuilderType` are the same. // For the definitions of `CcMlirGetterType` and `CcMlirBuilderType`, see // comments for class `Type`. - virtual std::string CcMlirType(FieldKind kind) const = 0; + virtual std::string CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const = 0; - std::string CcMlirBuilderType(FieldKind kind) const final { - return CcMlirType(kind); + std::string CcMlirBuilderType(absl::string_view ir_lang_name, + FieldKind kind) const final { + return CcMlirType(ir_lang_name, kind); } - std::string CcMlirGetterType(FieldKind kind) const final { - return CcMlirType(kind); + std::string CcMlirGetterType(absl::string_view ir_lang_name, + FieldKind kind) const final { + return CcMlirType(ir_lang_name, kind); } protected: @@ -415,9 +420,11 @@ class ListType : public Type { std::string CcGetterType(CcGetterKind getter_kind) const override; - std::string CcMlirBuilderType(FieldKind kind) const override; + std::string CcMlirBuilderType(absl::string_view ir_lang_name, + FieldKind kind) const override; - std::string CcMlirGetterType(FieldKind kind) const override; + std::string CcMlirGetterType(absl::string_view ir_lang_name, + FieldKind kind) const override; std::string TdType(FieldKind kind) const override; @@ -467,7 +474,8 @@ class VariantType : public NonListType { std::string CcGetterType(CcGetterKind getter_kind) const override; - std::string CcMlirType(FieldKind kind) const final; + std::string CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const final; std::string TdType(FieldKind kind) const override; @@ -501,7 +509,8 @@ class BuiltinType : public ScalarType { std::string CcGetterType(CcGetterKind getter_kind) const override; - std::string CcMlirType(FieldKind kind) const final; + std::string CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const final; std::string TdType(FieldKind kind) const override; @@ -527,7 +536,8 @@ class EnumType : public ScalarType { std::string CcGetterType(CcGetterKind getter_kind) const override; - std::string CcMlirType(FieldKind kind) const final; + std::string CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const final; std::string TdType(FieldKind kind) const override; @@ -561,7 +571,8 @@ class ClassType : public ScalarType { std::string CcGetterType(CcGetterKind getter_kind) const override; - std::string CcMlirType(FieldKind kind) const final; + std::string CcMlirType(absl::string_view ir_lang_name, + FieldKind kind) const final; std::string TdType(FieldKind kind) const override; diff --git a/maldoca/astgen/type_test.cc b/maldoca/astgen/type_test.cc index a894385..702edab 100644 --- a/maldoca/astgen/type_test.cc +++ b/maldoca/astgen/type_test.cc @@ -64,6 +64,8 @@ void TestTypePbToTypeAndPrint(TypeTestCase type_test_case) { EXPECT_EQ(type->TdType(field_kind), td_type); } + absl::string_view ir_lang = + type_test_case.cc_lang_name != nullptr ? type_test_case.cc_lang_name : ""; for (const auto &pair : type_test_case.cc_mlir_builder_type) { // We don't allow C++17 in the codebase for compatibility reasons, so we // cannot use structured binding. @@ -71,7 +73,8 @@ void TestTypePbToTypeAndPrint(TypeTestCase type_test_case) { std::string cc_mlir_builder_type; std::tie(field_kind, cc_mlir_builder_type) = pair; - EXPECT_EQ(type->CcMlirBuilderType(field_kind), cc_mlir_builder_type); + EXPECT_EQ(type->CcMlirBuilderType(ir_lang, field_kind), + cc_mlir_builder_type); } for (const auto &pair : type_test_case.cc_mlir_getter_type) { // We don't allow C++17 in the codebase for compatibility reasons, so we @@ -81,7 +84,7 @@ void TestTypePbToTypeAndPrint(TypeTestCase type_test_case) { // std::tie(field_kind, cc_mlir_getter_type) = pair; auto [field_kind, cc_mlir_getter_type] = pair; - EXPECT_EQ(type->CcMlirGetterType(field_kind), cc_mlir_getter_type); + EXPECT_EQ(type->CcMlirGetterType(ir_lang, field_kind), cc_mlir_getter_type); } } diff --git a/maldoca/js/ast/ast.generated.cc b/maldoca/js/ast/ast.generated.cc index 1d6fb4c..9822465 100644 --- a/maldoca/js/ast/ast.generated.cc +++ b/maldoca/js/ast/ast.generated.cc @@ -449,7 +449,7 @@ JsCommentBlock::JsCommentBlock( std::string value, std::optional start, std::optional end) - : JsComment(std::move(loc), std::move(value), std::move(start), std::move(end)) {} + : JsComment(std::move(loc), std::move(value), std::move(start), std::move(end)) /* NOLINT */ {} // ============================================================================= // JsCommentLine @@ -460,7 +460,7 @@ JsCommentLine::JsCommentLine( std::string value, std::optional start, std::optional end) - : JsComment(std::move(loc), std::move(value), std::move(start), std::move(end)) {} + : JsComment(std::move(loc), std::move(value), std::move(start), std::move(end)) /* NOLINT */ {} // ============================================================================= // JsSymbolId @@ -958,7 +958,7 @@ JsInterpreterDirective::JsInterpreterDirective( std::optional> referenced_symbol, std::optional>> defined_symbols, std::string value) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, value_(std::move(value)) {} absl::string_view JsInterpreterDirective::value() const { @@ -983,7 +983,7 @@ JsProgramBodyElement::JsProgramBodyElement( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsDirectiveLiteralExtra @@ -1027,7 +1027,7 @@ JsDirectiveLiteral::JsDirectiveLiteral( std::optional>> defined_symbols, std::string value, std::optional> extra) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, value_(std::move(value)), extra_(std::move(extra)) {} @@ -1074,7 +1074,7 @@ JsDirective::JsDirective( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr value) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, value_(std::move(value)) {} JsDirectiveLiteral* JsDirective::value() { @@ -1107,7 +1107,7 @@ JsProgram::JsProgram( std::string source_type, std::vector> body, std::vector> directives) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, interpreter_(std::move(interpreter)), source_type_(std::move(source_type)), body_(std::move(body)), @@ -1181,7 +1181,7 @@ JsFile::JsFile( std::optional>> defined_symbols, std::unique_ptr program, std::optional>> comments) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, program_(std::move(program)), comments_(std::move(comments)) {} @@ -1231,7 +1231,7 @@ JsExpression::JsExpression( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsPattern @@ -1247,7 +1247,7 @@ JsPattern::JsPattern( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsLVal @@ -1263,7 +1263,7 @@ JsLVal::JsLVal( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsIdentifier @@ -1280,10 +1280,10 @@ JsIdentifier::JsIdentifier( std::optional> referenced_symbol, std::optional>> defined_symbols, std::string name) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, name_(std::move(name)) {} absl::string_view JsIdentifier::name() const { @@ -1309,7 +1309,7 @@ JsPrivateName::JsPrivateName( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr id) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, id_(std::move(id)) {} JsIdentifier* JsPrivateName::id() { @@ -1338,8 +1338,8 @@ JsLiteral::JsLiteral( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsRegExpLiteralExtra @@ -1374,9 +1374,9 @@ JsRegExpLiteral::JsRegExpLiteral( std::string pattern, std::string flags, std::optional> extra) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, pattern_(std::move(pattern)), flags_(std::move(flags)), extra_(std::move(extra)) {} @@ -1431,9 +1431,9 @@ JsNullLiteral::JsNullLiteral( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsStringLiteralExtra @@ -1477,9 +1477,9 @@ JsStringLiteral::JsStringLiteral( std::optional>> defined_symbols, std::string value, std::optional> extra) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, value_(std::move(value)), extra_(std::move(extra)) {} @@ -1526,9 +1526,9 @@ JsBooleanLiteral::JsBooleanLiteral( std::optional> referenced_symbol, std::optional>> defined_symbols, bool value) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, value_(std::move(value)) {} bool JsBooleanLiteral::value() const { @@ -1581,9 +1581,9 @@ JsNumericLiteral::JsNumericLiteral( std::optional>> defined_symbols, double value, std::optional> extra) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, value_(std::move(value)), extra_(std::move(extra)) {} @@ -1657,9 +1657,9 @@ JsBigIntLiteral::JsBigIntLiteral( std::optional>> defined_symbols, std::string value, std::optional> extra) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLiteral(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, value_(std::move(value)), extra_(std::move(extra)) {} @@ -1709,7 +1709,7 @@ JsFunction::JsFunction( std::vector> params, bool generator, bool async) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, id_(std::move(id)), params_(std::move(params)), generator_(std::move(generator)), @@ -1777,8 +1777,8 @@ JsStatement::JsStatement( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsBlockStatement @@ -1796,9 +1796,9 @@ JsBlockStatement::JsBlockStatement( std::optional>> defined_symbols, std::vector> body, std::vector> directives) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, body_(std::move(body)), directives_(std::move(directives)) {} @@ -1845,8 +1845,8 @@ JsBlockStatementFunction::JsBlockStatementFunction( bool generator, bool async, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)) /* NOLINT */, body_(std::move(body)) {} JsBlockStatement* JsBlockStatementFunction::body() { @@ -1876,9 +1876,9 @@ JsExpressionStatement::JsExpressionStatement( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr expression) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, expression_(std::move(expression)) {} JsExpression* JsExpressionStatement::expression() { @@ -1907,9 +1907,9 @@ JsEmptyStatement::JsEmptyStatement( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsDebuggerStatement @@ -1925,9 +1925,9 @@ JsDebuggerStatement::JsDebuggerStatement( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsWithStatement @@ -1945,9 +1945,9 @@ JsWithStatement::JsWithStatement( std::optional>> defined_symbols, std::unique_ptr object, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, object_(std::move(object)), body_(std::move(body)) {} @@ -1990,9 +1990,9 @@ JsReturnStatement::JsReturnStatement( std::optional> referenced_symbol, std::optional>> defined_symbols, std::optional> argument) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, argument_(std::move(argument)) {} std::optional JsReturnStatement::argument() { @@ -2031,9 +2031,9 @@ JsLabeledStatement::JsLabeledStatement( std::optional>> defined_symbols, std::unique_ptr label, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, label_(std::move(label)), body_(std::move(body)) {} @@ -2076,9 +2076,9 @@ JsBreakStatement::JsBreakStatement( std::optional> referenced_symbol, std::optional>> defined_symbols, std::optional> label) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, label_(std::move(label)) {} std::optional JsBreakStatement::label() { @@ -2116,9 +2116,9 @@ JsContinueStatement::JsContinueStatement( std::optional> referenced_symbol, std::optional>> defined_symbols, std::optional> label) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, label_(std::move(label)) {} std::optional JsContinueStatement::label() { @@ -2158,9 +2158,9 @@ JsIfStatement::JsIfStatement( std::unique_ptr test, std::unique_ptr consequent, std::optional> alternate) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, test_(std::move(test)), consequent_(std::move(consequent)), alternate_(std::move(alternate)) {} @@ -2225,7 +2225,7 @@ JsSwitchCase::JsSwitchCase( std::optional>> defined_symbols, std::optional> test, std::vector> consequent) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, test_(std::move(test)), consequent_(std::move(consequent)) {} @@ -2277,9 +2277,9 @@ JsSwitchStatement::JsSwitchStatement( std::optional>> defined_symbols, std::unique_ptr discriminant, std::vector> cases) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, discriminant_(std::move(discriminant)), cases_(std::move(cases)) {} @@ -2322,9 +2322,9 @@ JsThrowStatement::JsThrowStatement( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr argument) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, argument_(std::move(argument)) {} JsExpression* JsThrowStatement::argument() { @@ -2355,7 +2355,7 @@ JsCatchClause::JsCatchClause( std::optional>> defined_symbols, std::optional> param, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, param_(std::move(param)), body_(std::move(body)) {} @@ -2408,9 +2408,9 @@ JsTryStatement::JsTryStatement( std::unique_ptr block, std::optional> handler, std::optional> finalizer) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, block_(std::move(block)), handler_(std::move(handler)), finalizer_(std::move(finalizer)) {} @@ -2483,9 +2483,9 @@ JsWhileStatement::JsWhileStatement( std::optional>> defined_symbols, std::unique_ptr test, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, test_(std::move(test)), body_(std::move(body)) {} @@ -2529,9 +2529,9 @@ JsDoWhileStatement::JsDoWhileStatement( std::optional>> defined_symbols, std::unique_ptr body, std::unique_ptr test) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, body_(std::move(body)), test_(std::move(test)) {} @@ -2573,9 +2573,9 @@ JsDeclaration::JsDeclaration( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsVariableDeclarator @@ -2593,7 +2593,7 @@ JsVariableDeclarator::JsVariableDeclarator( std::optional>> defined_symbols, std::unique_ptr id, std::optional> init) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, id_(std::move(id)), init_(std::move(init)) {} @@ -2645,10 +2645,10 @@ JsVariableDeclaration::JsVariableDeclaration( std::optional>> defined_symbols, std::vector> declarations, std::string kind) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, declarations_(std::move(declarations)), kind_(std::move(kind)) {} @@ -2690,9 +2690,9 @@ JsForStatement::JsForStatement( std::optional> test, std::optional> update, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, init_(std::move(init)), test_(std::move(test)), update_(std::move(update)), @@ -2805,9 +2805,9 @@ JsForInStatement::JsForInStatement( std::variant, std::unique_ptr> left, std::unique_ptr right, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, left_(std::move(left)), right_(std::move(right)), body_(std::move(body)) {} @@ -2884,9 +2884,9 @@ JsForOfStatement::JsForOfStatement( std::unique_ptr right, std::unique_ptr body, bool await) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, left_(std::move(left)), right_(std::move(right)), body_(std::move(body)), @@ -2973,12 +2973,12 @@ JsFunctionDeclaration::JsFunctionDeclaration( bool generator, bool async, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)), - JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)) /* NOLINT */, + JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsSuper @@ -2994,7 +2994,7 @@ JsSuper::JsSuper( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsImport @@ -3010,7 +3010,7 @@ JsImport::JsImport( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsThisExpression @@ -3026,8 +3026,8 @@ JsThisExpression::JsThisExpression( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsArrowFunctionExpression @@ -3048,9 +3048,9 @@ JsArrowFunctionExpression::JsArrowFunctionExpression( bool generator, bool async, std::variant, std::unique_ptr> body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, body_(std::move(body)) {} std::variant JsArrowFunctionExpression::body() { @@ -3099,8 +3099,8 @@ JsYieldExpression::JsYieldExpression( std::optional>> defined_symbols, std::optional> argument, bool delegate) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, argument_(std::move(argument)), delegate_(std::move(delegate)) {} @@ -3147,8 +3147,8 @@ JsAwaitExpression::JsAwaitExpression( std::optional> referenced_symbol, std::optional>> defined_symbols, std::optional> argument) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, argument_(std::move(argument)) {} std::optional JsAwaitExpression::argument() { @@ -3186,7 +3186,7 @@ JsSpreadElement::JsSpreadElement( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr argument) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, argument_(std::move(argument)) {} JsExpression* JsSpreadElement::argument() { @@ -3216,8 +3216,8 @@ JsArrayExpression::JsArrayExpression( std::optional> referenced_symbol, std::optional>> defined_symbols, std::vector, std::unique_ptr>>> elements) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, elements_(std::move(elements)) {} std::vector, std::unique_ptr>>>* JsArrayExpression::elements() { @@ -3248,7 +3248,7 @@ JsObjectMember::JsObjectMember( std::optional>> defined_symbols, std::unique_ptr key, bool computed) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, key_(std::move(key)), computed_(std::move(computed)) {} @@ -3290,8 +3290,8 @@ JsObjectProperty::JsObjectProperty( bool computed, bool shorthand, std::variant, std::unique_ptr> value) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsObjectMember(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(key), std::move(computed)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsObjectMember(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(key), std::move(computed)) /* NOLINT */, shorthand_(std::move(shorthand)), value_(std::move(value)) {} @@ -3355,10 +3355,10 @@ JsObjectMethod::JsObjectMethod( bool async, std::unique_ptr body, std::string kind) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsObjectMember(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(key), std::move(computed)), - JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)), - JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsObjectMember(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(key), std::move(computed)) /* NOLINT */, + JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)) /* NOLINT */, + JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)) /* NOLINT */, kind_(std::move(kind)) {} absl::string_view JsObjectMethod::kind() const { @@ -3384,8 +3384,8 @@ JsObjectExpression::JsObjectExpression( std::optional> referenced_symbol, std::optional>> defined_symbols, std::vector, std::unique_ptr, std::unique_ptr>> properties_) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, properties__(std::move(properties_)) {} std::vector, std::unique_ptr, std::unique_ptr>>* JsObjectExpression::properties_() { @@ -3419,10 +3419,10 @@ JsFunctionExpression::JsFunctionExpression( bool generator, bool async, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)), - JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)) /* NOLINT */, + JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsUnaryExpression @@ -3441,8 +3441,8 @@ JsUnaryExpression::JsUnaryExpression( JsUnaryOperator operator_, bool prefix, std::unique_ptr argument) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, operator__(std::move(operator_)), prefix_(std::move(prefix)), argument_(std::move(argument)) {} @@ -3492,8 +3492,8 @@ JsUpdateExpression::JsUpdateExpression( JsUpdateOperator operator_, std::unique_ptr argument, bool prefix) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, operator__(std::move(operator_)), argument_(std::move(argument)), prefix_(std::move(prefix)) {} @@ -3543,8 +3543,8 @@ JsBinaryExpression::JsBinaryExpression( JsBinaryOperator operator_, std::variant, std::unique_ptr> left, std::unique_ptr right) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, operator__(std::move(operator_)), left_(std::move(left)), right_(std::move(right)) {} @@ -3616,8 +3616,8 @@ JsAssignmentExpression::JsAssignmentExpression( JsAssignmentOperator operator_, std::unique_ptr left, std::unique_ptr right) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, operator__(std::move(operator_)), left_(std::move(left)), right_(std::move(right)) {} @@ -3671,8 +3671,8 @@ JsLogicalExpression::JsLogicalExpression( JsLogicalOperator operator_, std::unique_ptr left, std::unique_ptr right) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, operator__(std::move(operator_)), left_(std::move(left)), right_(std::move(right)) {} @@ -3726,10 +3726,10 @@ JsMemberExpression::JsMemberExpression( std::variant, std::unique_ptr> object, std::variant, std::unique_ptr> property, bool computed) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, object_(std::move(object)), property_(std::move(property)), computed_(std::move(computed)) {} @@ -3820,8 +3820,8 @@ JsOptionalMemberExpression::JsOptionalMemberExpression( std::variant, std::unique_ptr> property, bool computed, bool optional) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, object_(std::move(object)), property_(std::move(property)), computed_(std::move(computed)), @@ -3902,8 +3902,8 @@ JsConditionalExpression::JsConditionalExpression( std::unique_ptr test, std::unique_ptr alternate, std::unique_ptr consequent) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, test_(std::move(test)), alternate_(std::move(alternate)), consequent_(std::move(consequent)) {} @@ -3960,8 +3960,8 @@ JsCallExpression::JsCallExpression( std::optional>> defined_symbols, std::variant, std::unique_ptr, std::unique_ptr> callee, std::vector, std::unique_ptr>> arguments) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, callee_(std::move(callee)), arguments_(std::move(arguments)) {} @@ -4030,8 +4030,8 @@ JsOptionalCallExpression::JsOptionalCallExpression( std::unique_ptr callee, std::vector, std::unique_ptr>> arguments, bool optional) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, callee_(std::move(callee)), arguments_(std::move(arguments)), optional_(std::move(optional)) {} @@ -4084,8 +4084,8 @@ JsNewExpression::JsNewExpression( std::optional>> defined_symbols, std::variant, std::unique_ptr, std::unique_ptr> callee, std::vector, std::unique_ptr>> arguments) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, callee_(std::move(callee)), arguments_(std::move(arguments)) {} @@ -4152,8 +4152,8 @@ JsSequenceExpression::JsSequenceExpression( std::optional> referenced_symbol, std::optional>> defined_symbols, std::vector> expressions) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, expressions_(std::move(expressions)) {} std::vector>* JsSequenceExpression::expressions() { @@ -4183,10 +4183,10 @@ JsParenthesizedExpression::JsParenthesizedExpression( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr expression) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, expression_(std::move(expression)) {} JsExpression* JsParenthesizedExpression::expression() { @@ -4247,7 +4247,7 @@ JsTemplateElement::JsTemplateElement( std::optional>> defined_symbols, bool tail, std::unique_ptr value) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, tail_(std::move(tail)), value_(std::move(value)) {} @@ -4287,8 +4287,8 @@ JsTemplateLiteral::JsTemplateLiteral( std::optional>> defined_symbols, std::vector> quasis, std::vector> expressions) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, quasis_(std::move(quasis)), expressions_(std::move(expressions)) {} @@ -4332,8 +4332,8 @@ JsTaggedTemplateExpression::JsTaggedTemplateExpression( std::optional>> defined_symbols, std::unique_ptr tag, std::unique_ptr quasi) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, tag_(std::move(tag)), quasi_(std::move(quasi)) {} @@ -4376,9 +4376,9 @@ JsRestElement::JsRestElement( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr argument) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, argument_(std::move(argument)) {} JsLVal* JsRestElement::argument() { @@ -4408,9 +4408,9 @@ JsObjectPattern::JsObjectPattern( std::optional> referenced_symbol, std::optional>> defined_symbols, std::vector, std::unique_ptr>> properties_) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, properties__(std::move(properties_)) {} std::vector, std::unique_ptr>>* JsObjectPattern::properties_() { @@ -4440,9 +4440,9 @@ JsArrayPattern::JsArrayPattern( std::optional> referenced_symbol, std::optional>> defined_symbols, std::vector>> elements) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, elements_(std::move(elements)) {} std::vector>>* JsArrayPattern::elements() { @@ -4473,9 +4473,9 @@ JsAssignmentPattern::JsAssignmentPattern( std::optional>> defined_symbols, std::unique_ptr left, std::unique_ptr right) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsPattern(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsLVal(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, left_(std::move(left)), right_(std::move(right)) {} @@ -4526,9 +4526,9 @@ JsClassMethod::JsClassMethod( std::string kind, bool computed, bool static_) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)), - JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)) /* NOLINT */, + JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)) /* NOLINT */, key_(std::move(key)), kind_(std::move(kind)), computed_(std::move(computed)), @@ -4593,9 +4593,9 @@ JsClassPrivateMethod::JsClassPrivateMethod( std::string kind, bool static_, std::optional computed) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)), - JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async)) /* NOLINT */, + JsBlockStatementFunction(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(id), std::move(params), std::move(generator), std::move(async), std::move(body)) /* NOLINT */, key_(std::move(key)), kind_(std::move(kind)), static__(std::move(static_)), @@ -4659,7 +4659,7 @@ JsClassProperty::JsClassProperty( std::optional> value, bool static_, bool computed) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, key_(std::move(key)), value_(std::move(value)), static__(std::move(static_)), @@ -4730,7 +4730,7 @@ JsClassPrivateProperty::JsClassPrivateProperty( std::unique_ptr key, std::optional> value, bool static_) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, key_(std::move(key)), value_(std::move(value)), static__(std::move(static_)) {} @@ -4790,7 +4790,7 @@ JsClassBody::JsClassBody( std::optional> referenced_symbol, std::optional>> defined_symbols, std::vector, std::unique_ptr, std::unique_ptr, std::unique_ptr>> body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, body_(std::move(body)) {} std::vector, std::unique_ptr, std::unique_ptr, std::unique_ptr>>* JsClassBody::body() { @@ -4821,7 +4821,7 @@ JsClass::JsClass( std::optional>> defined_symbols, std::optional> super_class, std::unique_ptr body) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, super_class_(std::move(super_class)), body_(std::move(body)) {} @@ -4874,11 +4874,11 @@ JsClassDeclaration::JsClassDeclaration( std::optional> super_class, std::unique_ptr body, std::optional> id) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsClass(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(super_class), std::move(body)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsClass(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(super_class), std::move(body)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsStatement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, id_(std::move(id)) {} std::optional JsClassDeclaration::id() { @@ -4918,9 +4918,9 @@ JsClassExpression::JsClassExpression( std::optional> super_class, std::unique_ptr body, std::optional> id) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsClass(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(super_class), std::move(body)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsClass(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols), std::move(super_class), std::move(body)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, id_(std::move(id)) {} std::optional JsClassExpression::id() { @@ -4959,8 +4959,8 @@ JsMetaProperty::JsMetaProperty( std::optional>> defined_symbols, std::unique_ptr meta, std::unique_ptr property) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsExpression(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, meta_(std::move(meta)), property_(std::move(property)) {} @@ -5002,8 +5002,8 @@ JsModuleDeclaration::JsModuleDeclaration( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsModuleSpecifier @@ -5019,7 +5019,7 @@ JsModuleSpecifier::JsModuleSpecifier( std::optional scope_uid, std::optional> referenced_symbol, std::optional>> defined_symbols) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) {} + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */ {} // ============================================================================= // JsImportSpecifier @@ -5037,8 +5037,8 @@ JsImportSpecifier::JsImportSpecifier( std::optional>> defined_symbols, std::variant, std::unique_ptr> imported, std::unique_ptr local) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, imported_(std::move(imported)), local_(std::move(local)) {} @@ -5099,8 +5099,8 @@ JsImportDefaultSpecifier::JsImportDefaultSpecifier( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr local) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, local_(std::move(local)) {} JsIdentifier* JsImportDefaultSpecifier::local() { @@ -5130,8 +5130,8 @@ JsImportNamespaceSpecifier::JsImportNamespaceSpecifier( std::optional> referenced_symbol, std::optional>> defined_symbols, std::unique_ptr local) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, local_(std::move(local)) {} JsIdentifier* JsImportNamespaceSpecifier::local() { @@ -5162,7 +5162,7 @@ JsImportAttribute::JsImportAttribute( std::optional>> defined_symbols, std::unique_ptr key, std::unique_ptr value) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, key_(std::move(key)), value_(std::move(value)) {} @@ -5207,9 +5207,9 @@ JsImportDeclaration::JsImportDeclaration( std::vector, std::unique_ptr, std::unique_ptr>> specifiers, std::unique_ptr source, std::optional> assertions) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, specifiers_(std::move(specifiers)), source_(std::move(source)), assertions_(std::move(assertions)) {} @@ -5274,8 +5274,8 @@ JsExportSpecifier::JsExportSpecifier( std::optional>> defined_symbols, std::variant, std::unique_ptr> exported, std::optional, std::unique_ptr>> local) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleSpecifier(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, exported_(std::move(exported)), local_(std::move(local)) {} @@ -5365,9 +5365,9 @@ JsExportNamedDeclaration::JsExportNamedDeclaration( std::vector> specifiers, std::optional> source, std::optional>> assertions) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, declaration_(std::move(declaration)), specifiers_(std::move(specifiers)), source_(std::move(source)), @@ -5460,9 +5460,9 @@ JsExportDefaultDeclaration::JsExportDefaultDeclaration( std::optional> referenced_symbol, std::optional>> defined_symbols, std::variant, std::unique_ptr, std::unique_ptr> declaration) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, declaration_(std::move(declaration)) {} std::variant JsExportDefaultDeclaration::declaration() { @@ -5517,9 +5517,9 @@ JsExportAllDeclaration::JsExportAllDeclaration( std::optional>> defined_symbols, std::unique_ptr source, std::optional>> assertions) - : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), - JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)), + : JsNode(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsProgramBodyElement(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, + JsModuleDeclaration(std::move(loc), std::move(start), std::move(end), std::move(leading_comment_uids), std::move(trailing_comment_uids), std::move(inner_comment_uids), std::move(scope_uid), std::move(referenced_symbol), std::move(defined_symbols)) /* NOLINT */, source_(std::move(source)), assertions_(std::move(assertions)) {}