DonIsaac / zlint

A linter for the Zig programming language
MIT License
24 stars 1 forks source link

feat(semantic): record bound symbols in scope tree #57

Closed DonIsaac closed 1 week ago

DonIsaac commented 1 week ago

This data was already available in the symbol table (symbol -> scope). Now the reverse is also recorded (scope -> its symbols).

I also refactored declareSymbol et al to use named parameters. Makes setting defaults much easier.