salsa-rs / salsa

A generic framework for on-demand, incrementalized computation. Inspired by adapton, glimmer, and rustc's query system.
https://salsa-rs.netlify.app/
Apache License 2.0
2.09k stars 142 forks source link

How to associate additional data with inputs/tracked/interned objects #479

Open gavrilikhin-d opened 5 months ago

gavrilikhin-d commented 5 months ago

I want to store location information separately from AST for better incremental compilation support. So now I need some way to associate AST nodes with their locations. How to do it?