Scopes: Add section that establishes relationship between Mappings and Scopes#245
Scopes: Add section that establishes relationship between Mappings and Scopes#245szuend wants to merge 1 commit into
Conversation
|
I think we should require a bit more: Imagine you have nested generated ranges G1 and G2 and nested original scopes O1 and O2 with the definition of G1 being O1 and that of G2 being O2 and a mapping that points from a generated position in G1 but outside G2 to an original position in O2. This mapping would be allowed by this algorithm but it should be flagged as inconsistent in my opinion. |
|
I can think of 2 solutions (although I'm not 100% sure if these are correct, I'd have to think about it some more):
|
8176c16 to
e6a63eb
Compare
|
Presented this PR (with slides in the TG4 meeting. Re holgers comment: As seen in the slide we can't be that strict due to upwards code motion. Some key points from the meeting:
|
Preview
This is an outline how we could spec mappings <-> scopes relationship. The current proposal is that it's fine if either mappings or scopes (or both) don't map a position. But if they do, the mapping needs to point into the scope that corresponds to the generated range.