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