~/talk

Fundamentals for Building Convenience with SwiftSyntax

TalkinJapaneseat try! Swift Tokyo 2019 · 2019-03-21..03-22· [swift]

Shows how to use SwiftSyntax to parse Swift source into a syntax tree, traverse into an if-condition to find an optional-binding variable pattern, and rename a misnamed identifier by subclassing SyntaxRewriter and creating a new identifier with SyntaxFactory. The demo walks through code that locates a variable named "this", renames it to "self", runs the rewriter and prints the transformed source, and notes a formatting issue where spacing around "=" can be lost.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.