Skip to content

Commit b942e85

Browse files
authored
[Python] Big Python restructure (#4168)
* Big Python restructure * Updates for standalone
1 parent bf07e16 commit b942e85

13 files changed

+5106
-4933
lines changed

src/Fable.Cli/Pipeline.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ module Python =
329329
let python =
330330
FSharp2Fable.Compiler.transformFile com
331331
|> FableTransforms.transformFile com
332-
|> Fable2Python.Compiler.transformFile com
332+
|> Python.Compiler.transformFile com
333333

334334
if not (isSilent || PythonPrinter.isEmpty python) then
335335
let writer = new PythonFileWriter(com, cliArgs, pathResolver, outPath)

src/Fable.Transforms/Fable.Transforms.fsproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@
3232
<Compile Include="Fable2Babel.fs" />
3333
<Compile Include="Printer.fs" />
3434
<Compile Include="BabelPrinter.fs" />
35-
<Compile Include="Python/Python.fs" />
36-
<Compile Include="Python/Fable2Python.fs" />
35+
<Compile Include="Python/Python.AST.fs" />
36+
<Compile Include="Python/Fable2Python.Types.fs" />
37+
<Compile Include="Python/Fable2Python.Util.fs" />
38+
<Compile Include="Python/Fable2Python.Annotation.fs" />
39+
<Compile Include="Python/Fable2Python.Reflection.fs" />
40+
<Compile Include="Python/Fable2Python.Transforms.fs" />
3741
<Compile Include="Python/PythonPrinter.fs" />
42+
<Compile Include="Python/PythonCompiler.fs" />
3843
<Compile Include="Php/Php.fs" />
3944
<Compile Include="Php/Fable2Php.fs" />
4045
<Compile Include="Php/PhpPrinter.fs" />

src/Fable.Transforms/Python/Fable2Python.Annotation.fs

Lines changed: 485 additions & 0 deletions
Large diffs are not rendered by default.

src/Fable.Transforms/Python/Fable2Python.Reflection.fs

Lines changed: 380 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)