dillon1000/react

Commit

Partial support for update expressions

Adds limited support for UpdateExpressions (`x++`). We now support the postfix 
form (`x++` ok, `++x` is a todo) and only when the argument is an identifier. We 
can relax these restrictions with more work, but this PR should be sufficient 
for the examples we've seen so far.
Browse files
Changed paths7 files
First-parent comparison
M compiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/error.todo-kitchensink.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/error.todo-kitchensink.js ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-for.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-for.js ModifiedA compiler/forget/src/__tests__/fixtures/hir/update-expression.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/update-expression.js Added
Patch

Files changed

Rendering syntax-highlighted changes…