dillon1000/react

Commit

Pass `init` to E0007 diagnostic

I'm not sure why exactly but previously this diagnostic message was 

unusually slow to typecheck. Lifting the getter for init outside of the 

diagnostic to the callsite seems to fix the hotspot. Probably some 

interaction with string interpolation, or something else. 

Test case: ran `yarn ts:analyze-trace`, hotspot for Diagnostic.ts no 

longer present
Browse files
Changed paths2 files
First-parent comparison
M compiler/forget/src/Diagnostic.ts ModifiedM compiler/forget/src/IR/Hook.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…