Module

Code.Fragment

Changes by version

Elixir 1.19.0

· 3 changes

Enhancement Tool: Elixir

Preserve more block content around cursor in container_cursor_to_quoted

Enhancement Tool: Elixir

Add :block_keyword_or_binary_operator to Code.Fragment for more precise suggestions after operators and closing terminators

Enhancement Tool: Elixir

Add Code.Fragment.lines/1

Elixir 1.18.2

· 1 change

Enhancement Tool: Elixir

Provide more AST context when invoking container_cursor_to_quoted with trailing fragments

Elixir 1.18.1

· 1 change

Bugfix Tool: Elixir

Ensure Code.Fragment.container_cursor_to_quoted/2 with :trailing_fragment parses expressions that were supported in previous versions

Elixir 1.18.0

· 2 changes

Enhancement Tool: Elixir

Have :capture_arg as its own entry in Code.Fragment.surround_context/2

Bugfix Tool: Elixir

Properly handle keyword keys as their own entry

Elixir 1.16.0

· 2 changes

Enhancement Tool: Elixir

Handle anonymous calls in fragments

Bugfix Tool: Elixir

Fix crash in Code.Fragment.surround_context/2 when matching on ->

Elixir 1.15.5

· 1 change

Bugfix Tool: Elixir

Fix Code.Fragment.surround_context/2 for aliases and submodules of non-aliases

Elixir 1.15.0

· 2 changes

Enhancement Tool: Elixir

Support nested expressions in Code.Fragment.cursor_context/1

Enhancement Tool: Elixir

Keep operators and no paren calls in Code.Fragment.container_cursor_to_quoted/1

Elixir 1.14.0

· 2 changes

Enhancement Tool: Elixir

Add support for __MODULE__ in several functions

Enhancement Tool: Elixir

Support surround and context suggestions across multiple lines