Skip to content

Commit 290167e

Browse files
committed
Ruby: re-generated dbscheme/library
1 parent 3a887d1 commit 290167e

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

ruby/ql/lib/codeql/ruby/ast/internal/TreeSitter.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -875,10 +875,10 @@ module Ruby {
875875
final override string getAPrimaryQlClass() { result = "HashSplatArgument" }
876876

877877
/** Gets the child of this node. */
878-
final UnderscoreArg getChild() { ruby_hash_splat_argument_def(this, result) }
878+
final UnderscoreArg getChild() { ruby_hash_splat_argument_child(this, result) }
879879

880880
/** Gets a field or child node of this node. */
881-
final override AstNode getAFieldOrChild() { ruby_hash_splat_argument_def(this, result) }
881+
final override AstNode getAFieldOrChild() { ruby_hash_splat_argument_child(this, result) }
882882
}
883883

884884
/** A class representing `hash_splat_nil` tokens. */
@@ -1572,10 +1572,10 @@ module Ruby {
15721572
final override string getAPrimaryQlClass() { result = "SplatArgument" }
15731573

15741574
/** Gets the child of this node. */
1575-
final UnderscoreArg getChild() { ruby_splat_argument_def(this, result) }
1575+
final UnderscoreArg getChild() { ruby_splat_argument_child(this, result) }
15761576

15771577
/** Gets a field or child node of this node. */
1578-
final override AstNode getAFieldOrChild() { ruby_splat_argument_def(this, result) }
1578+
final override AstNode getAFieldOrChild() { ruby_splat_argument_child(this, result) }
15791579
}
15801580

15811581
/** A class representing `splat_parameter` nodes. */

ruby/ql/lib/ruby.dbscheme

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,13 @@ ruby_hash_pattern_def(
661661
unique int id: @ruby_hash_pattern
662662
);
663663

664+
ruby_hash_splat_argument_child(
665+
unique int ruby_hash_splat_argument: @ruby_hash_splat_argument ref,
666+
unique int child: @ruby_underscore_arg ref
667+
);
668+
664669
ruby_hash_splat_argument_def(
665-
unique int id: @ruby_hash_splat_argument,
666-
int child: @ruby_underscore_arg ref
670+
unique int id: @ruby_hash_splat_argument
667671
);
668672

669673
ruby_hash_splat_parameter_name(
@@ -1112,9 +1116,13 @@ ruby_singleton_method_def(
11121116
int object: @ruby_singleton_method_object_type ref
11131117
);
11141118

1119+
ruby_splat_argument_child(
1120+
unique int ruby_splat_argument: @ruby_splat_argument ref,
1121+
unique int child: @ruby_underscore_arg ref
1122+
);
1123+
11151124
ruby_splat_argument_def(
1116-
unique int id: @ruby_splat_argument,
1117-
int child: @ruby_underscore_arg ref
1125+
unique int id: @ruby_splat_argument
11181126
);
11191127

11201128
ruby_splat_parameter_name(

0 commit comments

Comments
 (0)