Skip to content

Commit 7ecfe8d

Browse files
committed
Address review comments
1 parent 5472210 commit 7ecfe8d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
category: breaking
33
---
4-
* `import ruby` no longer brings the standard Ruby AST libarary into scope (it brings nothing into scope, so should no longer be used). Instead, import the AST library via `import codeql.ruby.AST`.
4+
* `import ruby` no longer brings the standard Ruby AST libarary into scope; it instead brings a module `Ast` into scope, which must be imported. Alternatively, it is also possible to import `codeql.ruby.AST`.

ruby/ql/lib/ruby.qll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/**
2-
* Kept for backwards compatibility with e.g. quick-queries.
3-
*
4-
* Instead, import the relevant abstraction layer:
5-
* - `codeql.ruby.DataFlow` for data-flow queries.
6-
* - `codeql.ruby.CFG` for control-flow queries.
7-
* - `codeql.ruby.AST` for syntactic queries.
2+
* Provides classes for working with Ruby programs.
83
*/
94

5+
import codeql.ruby.AST as Ast
6+
import codeql.ruby.CFG as Cfg
7+
import codeql.ruby.DataFlow // already defines its own wrapper module

0 commit comments

Comments
 (0)