dillon1000/react

Commit

[be] Split files into directories

Moves _some_ files from HIR into new top-level directories. To not make 
@gsathya's life a pain I left the files he's touching alone, but I moved some 
others. My intent is to have something like this: 

* Babel/ - code for the Babel plugin, though ideally this actually gets split 
into a separate package and the compiler itself is AST in, AST out w no Babel 
dep. 

* HIR/ - the core HIRFunction, HIR and related data types, plus the HIR 
construction and printing, HIR visitors. 

* Inference/ - the core inference passes that operate on the HIR, including type 
inference, reference effects, alias analysis, mutable range analysis, etc. I'll 
let @gsathya  move these files when at a good stopping point. 

* ReactiveScopes/ - inference relating to reactive scopes, 
constructing/printing/codegenning ReactiveFunction 

* SSA/ - enter/leave SSA and eliminate redundant phis 

* Utils/ - every project needs a place to put stuff that doesn't fit into the 
other categories, this is ours. 

This leaves just index.ts at the top level, and overall feels pretty tidy. Not 
too tedious to figure out where anything goes, hopefully.
Browse files
Changed paths37 files
First-parent comparison
R compiler/forget/src/BabelPlugin.ts →compiler/forget/src/Babel/BabelPlugin.ts RenamedR compiler/forget/src/plugin-syntax-jsx.d.ts →compiler/forget/src/Babel/plugin-syntax-jsx.d.ts RenamedD compiler/forget/src/Common/Dumper.ts DeletedD compiler/forget/src/Common/PathUnion.ts DeletedM compiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/Codegen.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/HIR/HIRBuilder.ts ModifiedM compiler/forget/src/HIR/HIRTreeVisitor.ts ModifiedM compiler/forget/src/HIR/InferAlias.ts ModifiedM compiler/forget/src/HIR/InferAliasForFields.ts ModifiedM compiler/forget/src/HIR/InferMutableLifetimes.ts ModifiedM compiler/forget/src/HIR/InferMutableRangesForAlias.ts ModifiedM compiler/forget/src/HIR/InferReferenceEffects.ts ModifiedM compiler/forget/src/HIR/Pipeline.ts ModifiedM compiler/forget/src/HIR/PrintHIR.ts ModifiedD compiler/forget/src/HIR/PrintHIRTree.ts DeletedM compiler/forget/src/HIR/visitors.ts ModifiedR compiler/forget/src/HIR/BuildReactiveFunction.ts →compiler/forget/src/ReactiveScopes/BuildReactiveFunction.ts RenamedR compiler/forget/src/HIR/CodegenReactiveFunction.ts →compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts RenamedR compiler/forget/src/HIR/FlattenReactiveLoops.ts →compiler/forget/src/ReactiveScopes/FlattenReactiveLoops.ts RenamedR compiler/forget/src/HIR/InferReactiveScopeVariables.ts →compiler/forget/src/ReactiveScopes/InferReactiveScopeVariables.ts RenamedR compiler/forget/src/HIR/InferReactiveScopes.ts →compiler/forget/src/ReactiveScopes/InferReactiveScopes.ts RenamedR compiler/forget/src/HIR/PrintReactiveFunction.ts →compiler/forget/src/ReactiveScopes/PrintReactiveFunction.ts RenamedR compiler/forget/src/HIR/PropagateScopeDependencies.ts →compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts RenamedR compiler/forget/src/HIR/PruneUnusedLabels.ts →compiler/forget/src/ReactiveScopes/PruneUnusedLabels.ts RenamedR compiler/forget/src/HIR/EliminateRedundantPhi.ts →compiler/forget/src/SSA/EliminateRedundantPhi.ts RenamedR compiler/forget/src/HIR/EnterSSA.ts →compiler/forget/src/SSA/EnterSSA.ts RenamedR compiler/forget/src/HIR/LeaveSSA.ts →compiler/forget/src/SSA/LeaveSSA.ts RenamedR compiler/forget/src/CompilerError.ts →compiler/forget/src/Utils/CompilerError.ts RenamedR compiler/forget/src/HIR/DisjointSet.ts →compiler/forget/src/Utils/DisjointSet.ts RenamedR compiler/forget/src/HIR/VisualizeHIRMermaid.ts →compiler/forget/src/Utils/VisualizeHIRMermaid.ts RenamedR compiler/forget/src/HIR/logger.ts →compiler/forget/src/Utils/logger.ts RenamedR compiler/forget/src/HIR/todo.ts →compiler/forget/src/Utils/todo.ts RenamedR compiler/forget/src/Common/utils.ts →compiler/forget/src/Utils/utils.ts RenamedM compiler/forget/src/__tests__/hir-test.ts ModifiedM compiler/forget/src/index.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…