Skip to main content
The Swift extractor maps tree-sitter Swift CST nodes to canonical concepts. Class, protocol, and function names come from the standard name field; property names come from the binding pattern.

Detected concepts

Example

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

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

  • Property observers (didSet, willSet) are bodies; their edits report as body changes on the property.
  • Computed property getters and setters are not labeled as accessor kinds; they diff as blocks inside the property.