dillon1000/react
Commit
Browse files Use shorthand where possible for ObjectExpression properties
During codegen, emit object properties as shorthand where possible (`{x}`
instead of `{x: x}`)Changed paths44 files
First-parent comparisoncompiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/_bug.capturing-reference-changes-type.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/alias-computed-load.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/bug_object-pattern.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capture-func-passed-to-jsx.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capture-indirect-mutate-alias.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capture_mutate-across-fns.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-arrow-function-1.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-fun-alias-captured-mutate-2.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-fun-alias-captured-mutate-arr-2.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-captured-mutate-arr.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-captured-mutate.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-computed-mutate.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-mutate.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-receiver-computed-mutate.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-receiver-mutate.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-mutate-2.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-mutate-3.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-mutate-nested.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-mutate.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-func-simple-alias.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-function-1.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-function-within-block.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-member-expr.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-nested-member-call.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-nested-member-expr-in-nested-func.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-nested-member-expr.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-variable-in-nested-block.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/capturing-variable-in-nested-function.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/computed-store-alias.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/destructure-capture-global.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/destructuring-assignment.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/independently-memoize-object-property.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/issue852.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/logical-expression-object.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/mutable-lifetime-with-aliasing.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/obj-literal-cached-in-if-else.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/obj-literal-mutated-after-if-else.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/object-pattern-params.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/prop-capturing-function-1.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-objectexpression-phi.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-property-call.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/unary-expr.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/update-expression.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…