#430: Add MethodDispatchNode#command_call?, for calls with arguments and no parentheses around them. (@bbatsov)
#433: Add ProcessedSource.default_parser_engine, which returns the engine that :default stands for with a Ruby version, and ProcessedSource.parser_gem_available?. (@bbatsov)
Bug fixes
#422: Fix the prism parser engine accepting an invalid regexp whose interpolations are all string literals, like /#{"["}/. (@bbatsov)
Changes
#422: Make prism the default parser engine for Ruby 3.3+ when Prism 2.0 or later is installed; parser_prism stays the default with an older Prism. (@bbatsov)
1.53.0 (2026-11-19)
New features
#429: Add NodePattern::Checker, which finds the parts of a node pattern that can never match. (@bbatsov)
1.52.0 (2026-11-17)
New features
#422: Add an experimental prism parser engine that builds the AST, the tokens, the comments and the diagnostics directly from the Prism result, without Prism::Translation::Parser and the parser gem's builder; it needs Prism 2.0 or later. (@bbatsov)
#424: Ship a copy of the source layer of parser, so that the prism parser engine works when the parser gem is not installed. (@bbatsov)
Changes
#422: Load the parsers and the builders of parser and of Prism::Translation::Parser only when a parser engine needs them. (@bbatsov)
1.51.0 (2026-11-09)
New features
#413: Add Range#same_line?, Range#begins_its_line?, Node#any_descendant?, and Node#first_part_of_call_chain, previously private helpers in RuboCop's Cop::Util. (@bbatsov)
Bug fixes
#417: Fix ProcessedSource raising parser internal errors (e.g. RegexpError for /\c\xFF/ =~ '') instead of recording them as parser_error. (@koic)
#415: Reduce allocations in ProcessedSource#sorted_tokens to 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 = true enables it. (@bbatsov)
#412: Fix Node#argument? returning true for receivers that are structurally equal to an argument (e.g. the receiver in foo.bar(foo)). (@bbatsov)
#401: Avoid intermediate array allocations in HashNode#each_key/each_value. (@bbatsov)
#409: Fix Node#chained? and MethodDispatchNode#block_literal? returning true for nodes that are merely structurally equal to the receiver or send node (e.g. the argument in foo.bar(foo)). (@bbatsov)
#407: Fix the blockless form of the deprecated each_when, each_in_pattern, each_condition, and each_branch methods, which returned an unusable Enumerator. (@bbatsov)
#401: Fix force_encoding being a no-op for frozen string inputs. (@bbatsov)
#408: Fix ProcessedSource#preceding_line returning the last line of the file for tokens on the first line. (@bbatsov)
Changes
#411: Speed up filtered node traversals (each_descendant(:send) etc.) by not allocating an array per visited node, and add the non-splatting Node#type_in? predicate. (@bbatsov)
#404: Improve parser_prism performance by building tokens only when they are first accessed. (@bbatsov)
#408: Memoize ProcessedSource#checksum and skip the token sort when the tokens are already in order. (@bbatsov)
#410: Reduce allocations in keyword? and the method-name predicates (predicate_method?, bang_method?, etc.). (@bbatsov)
#405: Use Prism by default when analyzing Ruby 3.3 code. (@bbatsov)
1.49.1 (2026-03-11)
Bug fixes
#399: Fix unification variables not persisting in any-order nodes. (@marcandre)
#360: Fix an error when the Array core class contains a writer method before rubocop-ast loaded. (@earlopain)
1.38.0 (2025-01-27)
New features
#346: Add Node#loc? to determine if a node has a given location. (@dvandersluis)
#356: Added :any_block as an alias for :block and :numblock, use it with Node#any_block_type?. Also available in node patterns: {block numblock} can become any_block. (@earlopain)
Bug fixes
#323: Fix node captures inside of ?, +, and * repetition. (@earlopain)
Changes
#357: Support node groups in Node#each_descendant and similar traversal methods. (@earlopain)
1.37.0 (2024-12-13)
New features
#341: Make RuboCop::AST::IfNode support then?. (@koic)
#345: Add Node#loc_is? for easier test of locations. (@marcandre)
Changes
#343: Add StrNode#single_quoted?, StrNode#double_quoted? and StrNode#percent_literal? to simplify checking for string delimiters. (@dvandersluis)
#339: Do not emit a deprecation warning for EnsureNode#body to give RuboCop a chance to update its usage. EnsureNode#body will still be changed in the next major version of rubocop-ast. (@earlopain)
1.36.0 (2024-11-13)
Changes
#337: Deprecate EnsureNode#body in favour of EnsureNode#branch. EnsureNode#body will be redefined in the next major version of rubocop-ast. (@dvandersluis)
#154: Add BlockNode#argument_list and BlockNode#argument_names. (@dvandersluis)
#147: def_node_pattern and def_node_search now return the method name. (@marcandre)
1.1.1 (2020-11-04)
Bug fixes
#146: Fix IfNode#branches to return both branches when called on ternary conditional. (@fatkodima)
1.1.0 (2020-10-26)
New features
#144: NodePattern: allow method calls on constants. (@marcandre)
1.0.1 (2020-10-23)
Bug fixes
#141: Make SendNode#macro? and RuboCop::AST::Node#class_constructor? aware of struct constructor and RuboCop::AST::Node#struct_constructor? is deprecated. (@koic)
#142: Only traverse send nodes in MethodDispatchNode#def_modifier?. (@eugeneius)
1.0.0 (2020-10-21)
Changes
None since 0.8; official 1.0 release coinciding with RuboCop 1.0 and API considered stable. (@marcandre)
#120: (Potentially breaking) Fix false positives and negatives for SendNode#macro?. This impacts {non_}bare_access_modifier? and special_access_modifier?. (@marcandre)