tame/tamer/src/asg
Mike Gerwitz fcd25d581c tamer: asg::air::expr: Do not cache (globally) identifiers created with StoreDangling
I'm not happy with this implementation.  The linear search is undesirable,
but not too bad (and maybe wouldn't even be worth caching, if this were the
whole story), but we _also_ need to prevent duplicate identifiers.  We are
not going to want to perform a linear search of a linked list (effectively)
every time we add an identifier to check for uniqueness, so I think the
caching is going to have to be generalized very shortly anyway.

As it stands now, a duplicate identifier would cause an error at expansion
time.  That's not what we want, but it's not terrible, because you can have
that same problem in normal circumstances without local conflicts.

But this'll be used for metavariables as well, where we absolutely _do_ want
to fail at template definition time.

DEV-13708
2023-03-29 12:58:35 -04:00
..
air tamer: asg::air::expr: Do not cache (globally) identifiers created with StoreDangling 2023-03-29 12:58:35 -04:00
graph tamer: asg::air::expr: Do not cache (globally) identifiers created with StoreDangling 2023-03-29 12:58:35 -04:00
.gitignore tamer: Embed ASG ontology visualization in rustdoc-generated docs 2023-03-10 14:28:00 -05:00
air.rs tamer: asg::graph: *lookup{=>_global}* 2023-03-29 12:58:35 -04:00
error.rs tamer: Very basic support for template application NIR -> xmli 2023-03-29 12:58:32 -04:00
graph.rs tamer: asg::air::expr: Do not cache (globally) identifiers created with StoreDangling 2023-03-29 12:58:35 -04:00
mod.rs tamer: asg::graph: *lookup{=>_global}* 2023-03-29 12:58:35 -04:00