denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
146 stars 45 forks source link

feat: ability to add scope analysis to a `ParsedSource` #198

Closed dsherret closed 8 months ago

dsherret commented 8 months ago

With fast remote type checking I need the ability to do scope analysis for only certain specifiers. This started getting really complicated and I think it's easier to just do this on demand. The catch is that there can only be one reference to the underlying data in the ParsedSource or else a whole clone happens, but this is generally how things work for us anyway.