dillon1000/react

Commit

Support TypeCastExpression

Support TypeCastExpressions — `(x: TypeAnnotation)`. This is pretty 
straightforward, it's semantically identical to a raw identifier. 

One catch is that our prettier config is hard-coded to use the babel-ts parser, 
i wasn't sure how to make that dynamic based on the file extension so for now i 
just ignored .flow.js files in our pretter config.
Browse files
Changed paths12 files
First-parent comparison
M compiler/forget/.prettierignore ModifiedM compiler/forget/src/Babel/RunReactForgetBabelPlugin.ts ModifiedM compiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/HIR/PrintHIR.ts ModifiedM compiler/forget/src/HIR/visitors.ts ModifiedM compiler/forget/src/Inference/InferAlias.ts ModifiedM compiler/forget/src/Inference/InferReferenceEffects.ts ModifiedM compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedM compiler/forget/src/ReactiveScopes/InferReactiveScopeVariables.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/type-cast-expression.flow.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/type-cast-expression.flow.js Added
Patch

Files changed

Rendering syntax-highlighted changes…