dillon1000/react

Commit

Distinguish internal invariant passes from user code validation

Distinguishes between two types of "validation" passes: 

- Passes which assert the validity of the HIR. These remain in HIR/ but are 
renamed "assertFoo". 

- Passes which validate that the user code is correct. These move to 
Validation/.
Browse files
Changed paths10 files
First-parent comparison
M compiler/forget/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts ModifiedR compiler/forget/packages/babel-plugin-react-forget/src/HIR/ValidateConsistentIdentifiers.ts →compiler/forget/packages/babel-plugin-react-forget/src/HIR/AssertConsistentIdentifiers.ts RenamedR compiler/forget/packages/babel-plugin-react-forget/src/HIR/ValidateTerminalSuccessors.ts →compiler/forget/packages/babel-plugin-react-forget/src/HIR/AssertTerminalSuccessorsExist.ts RenamedM compiler/forget/packages/babel-plugin-react-forget/src/HIR/index.ts ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/Optimization/ConstantPropagation.ts ModifiedR compiler/forget/packages/babel-plugin-react-forget/src/HIR/ValidateFrozenLambdas.ts →compiler/forget/packages/babel-plugin-react-forget/src/Validation/ValidateFrozenLambdas.ts RenamedR compiler/forget/packages/babel-plugin-react-forget/src/HIR/ValidateHooksUsage.ts →compiler/forget/packages/babel-plugin-react-forget/src/Validation/ValidateHooksUsage.ts RenamedR compiler/forget/packages/babel-plugin-react-forget/src/HIR/ValidateNoRefAccesInRender.ts →compiler/forget/packages/babel-plugin-react-forget/src/Validation/ValidateNoRefAccesInRender.ts RenamedR compiler/forget/packages/babel-plugin-react-forget/src/HIR/ValidateUnconditionalHooks.ts →compiler/forget/packages/babel-plugin-react-forget/src/Validation/ValidateUnconditionalHooks.ts RenamedA compiler/forget/packages/babel-plugin-react-forget/src/Validation/index.ts Added
Patch

Files changed

Rendering syntax-highlighted changes…