New features
- #413: Add
Range#same_line?,Range#begins_its_line?,Node#any_descendant?, andNode#first_part_of_call_chain, previously private helpers in RuboCop'sCop::Util. (@bbatsov)
Bug fixes
- #417: Fix
ProcessedSourceraising parser internal errors (e.g.RegexpErrorfor/\c\xFF/ =~ '') instead of recording them asparser_error. (@koic)
Changes
- #416: Make
IfNodebranch accessors (condition,if_branch,else_branch,unless?) allocation-free. (@bbatsov) - #415: Reduce allocations in
ProcessedSource#sorted_tokensto almost none. (@bbatsov) - #414: Allow lazy compilation of patterns with
def_node_matcher/def_node_search, significantly reducing load time for rubocop;NodePattern.lazy_compilation = trueenables it. (@bbatsov) - #420: Support Prism 2.0. (@koic)