Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gems/rubocop-ast/1.46/rubocop-ast.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module RuboCop
def raw_source: () -> String
def buffer: () -> Parser::Source::Buffer
def comments: () -> Array[Parser::Source::Comment]
def []: (Integer index) -> String?
| (Integer start, Integer length) -> Array[String]?
| (Range[Integer] range) -> Array[String]?
end

class NodePattern
Expand Down
1 change: 1 addition & 0 deletions gems/rubocop/1.57/rubocop.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ module RuboCop
def line: ((RuboCop::AST::Node | Parser::Source::Range) node_or_range) -> Integer
def same_line?: ((RuboCop::AST::Node | Parser::Source::Range) node1, (RuboCop::AST::Node | Parser::Source::Range) node2) -> bool
def indent: (RuboCop::AST::Node node, ?offset: Integer) -> String
def comment_line?: (String line_source) -> bool
end
end

Expand Down
Loading