dillon1000/react

Commit

Enforce terminal has a .loc (and .id)

This PR ensures (via a static assertion function) that all terminal variants 
have a SourceLocation, and adds locations to the variants which didn't have it 
before. This also adds a static assertion that terminals have an InstructionId, 
though we already relied on that so it was checked via usage.
Browse files
Changed paths5 files
First-parent comparison
M compiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/HIR/HIRBuilder.ts ModifiedM compiler/forget/src/HIR/visitors.ts ModifiedM compiler/forget/src/Optimization/ConstantPropagation.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…