This document details how to run the transpiler. It is currently a work in progress.
In the AST folder is analyzer.dart
, which uses the Dart Analyzer to create a Semantic Model of the Flutter SDK.
-
The Flutter SDK isn't included in this project. Install it and make sure that its
bin
directory is in PATH. -
Run
download-flutter.ps1
script in flutter sub directory (make sure that PATH from previous step is applied, or if it wasn't, runflutter packages get
manually). -
Install Dart SDK on your computer.
-
Make sure there is a DART_SDK environment variable pointing to
dart_sdk
directory. Optionally add its bin directory to PATH (if not already). -
In a terminal window or command prompt, run
dart analyzer
.
This will run through the Flutter SDK and create an equivalent *.cs files.
To generate the *.cs files, the Dart Analyzer creates a Semantic Model that is used by the writer.
The writer, will take the Semantic Model and output the transpiled C# files into the FlutterSDK project.