dillon1000/react
Commit
Browse files [hir] Handle OptionalMemberExpression syntax
(Implemented as per discussions with @gsathya ) Handle OptionalMemberExpression by adding an 'optional' flag to `PropertyLoad` instruction, which is set during `BuildHIR` and read during `CodegenReactiveFunction`.
Changed paths5 files
First-parent comparisoncompiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/optional-member-expression.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/optional-member-expression.js AddedPatch
Files changed
Rendering syntax-highlighted changes…