Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc1bdf1

Browse files
committed
Add charpred to RubyFile class
1 parent fcf2d4c commit cc1bdf1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ql/src/codeql_ruby/AST.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ class AstNode extends TAstNode {
106106
final AstNode getDesugared() { result = getSynthChild(this, -1) }
107107
}
108108

109+
/** A Ruby source file */
109110
class RubyFile extends File {
111+
RubyFile() { ruby_ast_node_parent(_, this, _) }
112+
110113
/** Gets a token in this file. */
111114
private Ruby::Token getAToken() { result.getLocation().getFile() = this }
112115

0 commit comments

Comments
 (0)