dillon1000/react

Commit

[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`.
Browse files
Changed paths5 files
First-parent comparison
M compiler/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 Added
Patch

Files changed

Rendering syntax-highlighted changes…