Address review comments

This commit is contained in:
Tom Hvitved
2022-09-14 15:30:51 +02:00
parent 5472210a92
commit 7ecfe8daba
2 changed files with 5 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
---
category: breaking
---
* `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`.
* `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`.

View File

@@ -1,9 +1,7 @@
/**
* Kept for backwards compatibility with e.g. quick-queries.
*
* Instead, import the relevant abstraction layer:
* - `codeql.ruby.DataFlow` for data-flow queries.
* - `codeql.ruby.CFG` for control-flow queries.
* - `codeql.ruby.AST` for syntactic queries.
* Provides classes for working with Ruby programs.
*/
import codeql.ruby.AST as Ast
import codeql.ruby.CFG as Cfg
import codeql.ruby.DataFlow // already defines its own wrapper module