dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…