Skip to content

Commit 0b8656e

Browse files
authored
Rename Application to Instantiation
1 parent a08be0d commit 0b8656e

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

ql/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ql/extractor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
flate2 = "1.0"
1111
node-types = { path = "../node-types" }
1212
tree-sitter = "0.19"
13-
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "4239ed505a53e9f5340e03725de76911d17387b1" }
13+
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "7928a971a9a408f7ad59876c2ecda4a5329a6795" }
1414
clap = "2.33"
1515
tracing = "0.1"
1616
tracing-subscriber = { version = "0.3.3", features = ["env-filter"] }

ql/generator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ clap = "2.33"
1111
node-types = { path = "../node-types" }
1212
tracing = "0.1"
1313
tracing-subscriber = { version = "0.3.3", features = ["env-filter"] }
14-
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "4239ed505a53e9f5340e03725de76911d17387b1" }
14+
tree-sitter-ql = { git = "https://github.com/tausbn/tree-sitter-ql.git", rev = "7928a971a9a408f7ad59876c2ecda4a5329a6795" }

ql/ql/src/codeql_ql/ast/internal/TreeSitter.qll

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -977,18 +977,6 @@ module QL {
977977
final override AstNode getAFieldOrChild() { ql_module_alias_body_def(this, result) }
978978
}
979979

980-
/** A class representing `moduleApplication` nodes. */
981-
class ModuleApplication extends @ql_module_application, AstNode {
982-
/** Gets the name of the primary QL class for this element. */
983-
final override string getAPrimaryQlClass() { result = "ModuleApplication" }
984-
985-
/** Gets the `i`th child of this node. */
986-
final SignatureExpr getChild(int i) { ql_module_application_child(this, i, result) }
987-
988-
/** Gets a field or child node of this node. */
989-
final override AstNode getAFieldOrChild() { ql_module_application_child(this, _, result) }
990-
}
991-
992980
/** A class representing `moduleExpr` nodes. */
993981
class ModuleExpr extends @ql_module_expr, AstNode {
994982
/** Gets the name of the primary QL class for this element. */
@@ -1006,6 +994,18 @@ module QL {
1006994
}
1007995
}
1008996

997+
/** A class representing `moduleInstantiation` nodes. */
998+
class ModuleInstantiation extends @ql_module_instantiation, AstNode {
999+
/** Gets the name of the primary QL class for this element. */
1000+
final override string getAPrimaryQlClass() { result = "ModuleInstantiation" }
1001+
1002+
/** Gets the `i`th child of this node. */
1003+
final SignatureExpr getChild(int i) { ql_module_instantiation_child(this, i, result) }
1004+
1005+
/** Gets a field or child node of this node. */
1006+
final override AstNode getAFieldOrChild() { ql_module_instantiation_child(this, _, result) }
1007+
}
1008+
10091009
/** A class representing `moduleMember` nodes. */
10101010
class ModuleMember extends @ql_module_member, AstNode {
10111011
/** Gets the name of the primary QL class for this element. */

ql/ql/src/ql.dbscheme

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -638,29 +638,29 @@ ql_module_alias_body_def(
638638
int child: @ql_module_expr ref
639639
);
640640

641-
#keyset[ql_module_application, index]
642-
ql_module_application_child(
643-
int ql_module_application: @ql_module_application ref,
644-
int index: int ref,
645-
unique int child: @ql_signature_expr ref
646-
);
647-
648-
ql_module_application_def(
649-
unique int id: @ql_module_application
650-
);
651-
652641
ql_module_expr_name(
653642
unique int ql_module_expr: @ql_module_expr ref,
654643
unique int name: @ql_token_simple_id ref
655644
);
656645

657-
@ql_moduleExpr_child_type = @ql_module_application | @ql_module_expr | @ql_token_simple_id
646+
@ql_moduleExpr_child_type = @ql_module_expr | @ql_module_instantiation | @ql_token_simple_id
658647

659648
ql_module_expr_def(
660649
unique int id: @ql_module_expr,
661650
int child: @ql_moduleExpr_child_type ref
662651
);
663652

653+
#keyset[ql_module_instantiation, index]
654+
ql_module_instantiation_child(
655+
int ql_module_instantiation: @ql_module_instantiation ref,
656+
int index: int ref,
657+
unique int child: @ql_signature_expr ref
658+
);
659+
660+
ql_module_instantiation_def(
661+
unique int id: @ql_module_instantiation
662+
);
663+
664664
@ql_moduleMember_child_type = @ql_annotation | @ql_classless_predicate | @ql_dataclass | @ql_datatype | @ql_import_directive | @ql_module | @ql_select | @ql_token_qldoc
665665

666666
#keyset[ql_module_member, index]
@@ -1113,7 +1113,7 @@ case @ql_token.kind of
11131113
;
11141114

11151115

1116-
@ql_ast_node = @ql_add_expr | @ql_aggregate | @ql_annot_arg | @ql_annotation | @ql_arityless_predicate_expr | @ql_as_expr | @ql_as_exprs | @ql_body | @ql_bool | @ql_call_body | @ql_call_or_unqual_agg_expr | @ql_charpred | @ql_class_member | @ql_classless_predicate | @ql_comp_term | @ql_conjunction | @ql_dataclass | @ql_datatype | @ql_datatype_branch | @ql_datatype_branches | @ql_db_annotation | @ql_db_args_annotation | @ql_db_branch | @ql_db_case_decl | @ql_db_col_type | @ql_db_column | @ql_db_entry | @ql_db_repr_type | @ql_db_table | @ql_db_table_name | @ql_db_union_decl | @ql_disjunction | @ql_expr_aggregate_body | @ql_expr_annotation | @ql_field | @ql_full_aggregate_body | @ql_higher_order_term | @ql_if_term | @ql_implication | @ql_import_directive | @ql_import_module_expr | @ql_in_expr | @ql_instance_of | @ql_literal | @ql_member_predicate | @ql_module | @ql_module_alias_body | @ql_module_application | @ql_module_expr | @ql_module_member | @ql_module_name | @ql_module_param | @ql_mul_expr | @ql_negation | @ql_order_by | @ql_order_bys | @ql_par_expr | @ql_predicate_alias_body | @ql_predicate_expr | @ql_prefix_cast | @ql_ql | @ql_qual_module_expr | @ql_qualified_expr | @ql_qualified_rhs | @ql_quantified | @ql_range | @ql_select | @ql_set_literal | @ql_signature_expr | @ql_special_call | @ql_super_ref | @ql_token | @ql_type_alias_body | @ql_type_expr | @ql_type_union_body | @ql_unary_expr | @ql_unqual_agg_body | @ql_var_decl | @ql_var_name | @ql_variable | @ql_yaml_comment | @ql_yaml_entry | @ql_yaml_key | @ql_yaml_keyvaluepair | @ql_yaml_listitem
1116+
@ql_ast_node = @ql_add_expr | @ql_aggregate | @ql_annot_arg | @ql_annotation | @ql_arityless_predicate_expr | @ql_as_expr | @ql_as_exprs | @ql_body | @ql_bool | @ql_call_body | @ql_call_or_unqual_agg_expr | @ql_charpred | @ql_class_member | @ql_classless_predicate | @ql_comp_term | @ql_conjunction | @ql_dataclass | @ql_datatype | @ql_datatype_branch | @ql_datatype_branches | @ql_db_annotation | @ql_db_args_annotation | @ql_db_branch | @ql_db_case_decl | @ql_db_col_type | @ql_db_column | @ql_db_entry | @ql_db_repr_type | @ql_db_table | @ql_db_table_name | @ql_db_union_decl | @ql_disjunction | @ql_expr_aggregate_body | @ql_expr_annotation | @ql_field | @ql_full_aggregate_body | @ql_higher_order_term | @ql_if_term | @ql_implication | @ql_import_directive | @ql_import_module_expr | @ql_in_expr | @ql_instance_of | @ql_literal | @ql_member_predicate | @ql_module | @ql_module_alias_body | @ql_module_expr | @ql_module_instantiation | @ql_module_member | @ql_module_name | @ql_module_param | @ql_mul_expr | @ql_negation | @ql_order_by | @ql_order_bys | @ql_par_expr | @ql_predicate_alias_body | @ql_predicate_expr | @ql_prefix_cast | @ql_ql | @ql_qual_module_expr | @ql_qualified_expr | @ql_qualified_rhs | @ql_quantified | @ql_range | @ql_select | @ql_set_literal | @ql_signature_expr | @ql_special_call | @ql_super_ref | @ql_token | @ql_type_alias_body | @ql_type_expr | @ql_type_union_body | @ql_unary_expr | @ql_unqual_agg_body | @ql_var_decl | @ql_var_name | @ql_variable | @ql_yaml_comment | @ql_yaml_entry | @ql_yaml_key | @ql_yaml_keyvaluepair | @ql_yaml_listitem
11171117

11181118
@ql_ast_node_parent = @file | @ql_ast_node
11191119

0 commit comments

Comments
 (0)