Overview
Explore the implementation of syntax trees in rust-analyzer through this comprehensive 57-minute video presentation. Dive into the public API, including enum API, expression API, and various node types. Learn about incremental updates, parsing techniques, and memory efficiency. Discover how to build Rust from the tree and understand token mapping. Gain valuable insights into the inner workings of rust-analyzer's syntax tree implementation, presented by @matklad in this recorded session from February 26, 2019.
Syllabus
rust analyzer
public API
enum API
expression API
index node
cast node
subscribe node
curator node
textrange
subtree
cache
type
index
green node
identity
lazy
arc
route
Incremental updates
Incremental parsing
parsley
event rule
skip errors
Lowering process
Memory efficiency
No incremental tree
Code example
Building rust from the tree
Token mapping
Taught by
Rust