Skip to main content

Swift extractor

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:
Running differens old.swift new.swift:

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.