@@ -2,6 +2,7 @@ private import codeql.ruby.AST
2
2
private import codeql.ruby.controlflow.ControlFlowGraph
3
3
private import internal.AST
4
4
private import internal.TreeSitter
5
+ private import internal.Method
5
6
6
7
/** A callable. */
7
8
class Callable extends StmtSequence , Expr , Scope , TCallable {
@@ -182,6 +183,8 @@ class Block extends Callable, StmtSequence, Scope, TBlock {
182
183
or
183
184
result = StmtSequence .super .getAChild ( pred )
184
185
}
186
+
187
+ override string getAPrimaryQlClass ( ) { result = "Block" }
185
188
}
186
189
187
190
/** A block enclosed within `do` and `end`. */
@@ -226,22 +229,3 @@ class BraceBlock extends Block, TBraceBlock {
226
229
227
230
final override string getAPrimaryQlClass ( ) { result = "BraceBlock" }
228
231
}
229
-
230
- /**
231
- * A synthesized block, such as the block synthesized from the body of
232
- * a `for` loop.
233
- */
234
- class SynthBlock extends Block , TBlockSynth {
235
- SynthBlock ( ) { this = TBlockSynth ( _, _) }
236
-
237
- final override Parameter getParameter ( int n ) { synthChild ( this , n , result ) }
238
-
239
- final override Stmt getStmt ( int i ) {
240
- i >= 0 and
241
- synthChild ( this , i + this .getNumberOfParameters ( ) , result )
242
- }
243
-
244
- final override string toString ( ) { result = "{ ... }" }
245
-
246
- final override string getAPrimaryQlClass ( ) { result = "SynthBlock" }
247
- }
0 commit comments