Skip to main content
The Lua extractor maps tree-sitter Lua CST nodes to canonical concepts. Function names come from the standard name field; local variable names come from the variable list under the declaration.

Detected concepts

Example

Renaming a function:
old.lua
new.lua
Running differens old.lua new.lua:

Example: change the body

Keep the declaration name and change what it does:
The report groups the value edit under its containing declaration. Use --format=json to inspect the underlying action and context, or --format=llm for a compact report with source locations.

Known limitations

  • Lua has no int/float split; every number literal reports as number_literal.
  • Metatable calls (obj:method()) report as method calls only when written as method-index syntax.