My Google Summer of Code 2021 project focused on improving developer tooling for the Swift programming language, including contributions to SourceKit-LSP, a language server for Swift, and to the Swift compiler itself.
Diagnostic tags let editors stylize warnings about unused or deprecated editors, e.g. using strikethrough or in a different color:
- On the SourceKit-LSP side:
- On the compiler side:
Inlay hints let editors display inferred types next to variables and closure parameters that lack an explicit type annotation:
- On the SourceKit-LSP side:
- On the compiler side:
Semantic tokens let editors colorize source code not just based on its syntactic structure, but also based on semantic information, e.g. differently depending on whether an identifier references a variable, function or type:
- On the SourceKit-LSP side: