---
title: "syntax_tree 6.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each syntax_tree release removed, renamed or changed: 39 breaking changes in 6 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/syntax_tree
last_updated: 2026-12-04
---

# syntax_tree breaking changes

syntax_tree 6.0.0 (February 10, 2023) is its newest release with breaking changes, 11 of them. The first: Removed with_current_environment. Every breaking API change we have recorded in syntax_tree on RubyGems: 39 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.3.0`. [Source repository](https://github.com/kddnewton/syntax%5Ftree)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 11 breaking changes in 1 version.
- From [1.0.0](#v-1-0-0) to [6.0.0](#v-6-0-0): 37 breaking changes in 5 versions.

## syntax_tree 6.0.0 breaking changes

syntax_tree 6.0.0, released February 10, 2023: 11 breaking changes.

- **Removed** `with_current_environment`  

The with_current_environment method has been removed with no replacement listed. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Renamed** `current_environment`  

The current_environment method has been renamed to current_scope. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Renamed** `SyntaxTree.Visitor.FieldVisitor`  

FieldVisitor is now under SyntaxTree directly. Update references. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Renamed** `SyntaxTree.Visitor.JSONVisitor`  

JSONVisitor is now under SyntaxTree directly. Update references. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Renamed** `SyntaxTree.Visitor.MatchVisitor`  

MatchVisitor is now under SyntaxTree directly. Update references. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Renamed** `SyntaxTree.Visitor.MutationVisitor`  

MutationVisitor is now under SyntaxTree directly. Update references. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Renamed** `SyntaxTree.Visitor.PrettyPrintVisitor`  

PrettyPrintVisitor is now under SyntaxTree directly. Update references. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Renamed** `WithEnvironment`  

The WithEnvironment module has been renamed to WithScope. Update references to the new name. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Behavior changed**  

Many constants are autoloaded rather than required up front, which matters for forking environments that preload constants. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Behavior changed** `a`  

Scopes can now see variables from the enclosing tree, so a variable in a nested def no longer reads as a separate variable. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)
- **Signature changed** `SyntaxTree.Statements.initialize`  

Statements#initialize no longer accepts a parser as its first argument; it now takes children and location. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v6.0.0/CHANGELOG.md)

## syntax_tree 5.0.0 breaking changes

syntax_tree 5.0.0, released November 9, 2022: 21 breaking changes.

- **Removed** `ArgsForward.value`  

These nodes no longer have a value field holding the keyword string. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `IfMod`  

IfMod is gone; use IfNode, which has a modifier? method to detect the modifier form. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `MethodAddBlock`  

Command and CommandCall nodes now carry a block attribute instead of wrapping in MethodAddBlock. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `SyntaxTree.Formatter.OPTIONS`  

The global mutable options hash is gone; create an Options object with Options.new and modify that instead. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `VarAlias`  

VarAlias is no longer a node; use AliasNode and its var_alias? method. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `visit_brace_block`  

Use visit_block instead of visit_brace_block. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `visit_def_endless`  

The visitor no longer has visit_def_endless; endless definitions are visited through DefNode. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `visit_defs`  

The visitor no longer has visit_defs; singleton method definitions are visited through DefNode. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `visit_do_block`  

Use visit_block instead of visit_do_block. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)
- **Removed** `visit_dot2`  

Use visit_range instead of visit_dot2. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v5.0.0/CHANGELOG.md)

And 11 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## syntax_tree 4.0.0 breaking changes

syntax_tree 4.0.0, released October 17, 2022: 1 breaking change.

- **Configuration changed**  

The gem now needs at least version 1.0.0 of prettier_print. Projects pinning an older prettier_print must upgrade it. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v4.0.0/CHANGELOG.md)

## syntax_tree 3.0.0 breaking changes

syntax_tree 3.0.0, released July 5, 2022: 1 breaking change.

- **Removed**  

The release removed the legacy inlay hints code. Editor integrations that relied on it will no longer get those hints. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v3.0.0/CHANGELOG.md)

## syntax_tree 2.0.0 breaking changes

syntax_tree 2.0.0, released March 31, 2022: 3 breaking changes.

- **Removed** `disassembly code action`  

The disassembly code action has been removed to limit the scope of the project. Code relying on it must be changed. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v2.0.0/CHANGELOG.md)
- **Renamed** `Implicits`  

The Implicits class was renamed to InlayHints to match the new LSP spec. Update references to use InlayHints. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed** `SyntaxTree`  

SyntaxTree is now a module rather than a class; parser functionality moved into SyntaxTree::Parser. Code that instantiates or subclasses SyntaxTree must switch to SyntaxTree::Parser. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v2.0.0/CHANGELOG.md)

## syntax_tree 1.0.0 breaking changes

syntax_tree 1.0.0, released December 8, 2021: 2 breaking changes.

- **Removed** `AccessCtrl`  

The AccessCtrl node is gone; formatting now handles access control correctly when a Statements node is reached, so code relying on this node must change. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v1.0.0/CHANGELOG.md)
- **Removed** `MethodAddArg`  

The MethodAddArg node is removed; method call arguments are now an optional arguments field on Call and FCall nodes. [github.com](https://github.com/kddnewton/syntax%5Ftree/blob/v1.0.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
