Skip to content

Commit 966b8be

Browse files
committed
Ruby: add downgrade scripts
1 parent e5eb01c commit 966b8be

File tree

6 files changed

+3020
-0
lines changed

6 files changed

+3020
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class AstNode extends @ruby_ast_node {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location {
6+
string toString() { none() }
7+
}
8+
9+
from AstNode ruby_block_argument, AstNode child, Location location
10+
where
11+
ruby_block_argument_def(ruby_block_argument, location) and
12+
ruby_block_argument_child(ruby_block_argument, child)
13+
select ruby_block_argument, child, location
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class AstNode extends @ruby_ast_node {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location {
6+
string toString() { none() }
7+
}
8+
9+
from AstNode ruby_block_parameter, AstNode name, Location location
10+
where
11+
ruby_block_parameter_def(ruby_block_parameter, location) and
12+
ruby_block_parameter_name(ruby_block_parameter, name)
13+
select ruby_block_parameter, name, location

0 commit comments

Comments
 (0)