Add charpred to RubyFile class

This commit is contained in:
Arthur Baars
2021-07-29 09:32:58 +02:00
parent fcf2d4cbd2
commit cc1bdf1fc3

View File

@@ -106,7 +106,10 @@ class AstNode extends TAstNode {
final AstNode getDesugared() { result = getSynthChild(this, -1) }
}
/** A Ruby source file */
class RubyFile extends File {
RubyFile() { ruby_ast_node_parent(_, this, _) }
/** Gets a token in this file. */
private Ruby::Token getAToken() { result.getLocation().getFile() = this }