bung87 / dart2ts

UNMAINTAINED, UNCOMPLETED
Other
1 stars 1 forks source link

Need help? #1

Open bryanrideshark opened 4 years ago

bryanrideshark commented 4 years ago

I would be very interested in being able to use Dart in our companies project.

We have a product which needs web support, but also, native mobile apps.

Writing business logic in Dart, which could be shared between web (for our legacy products, IE, mobile web etc.) and Flutter (sweet sweet native code!) is the goal.

I'd love to help you get this project working for Dart 2.0. How do I start?

bung87 commented 4 years ago

hi ,glad to hear you're interested in , let me introducing this project background.

this repo is a fork of https://github.com/polymer-dart/dart2ts

I try to do as much as can to make the editor less reporting error. but there may hidden wrong logic.

here's basic knowledge you should know. dart-lang/build analyzer

there's overrides package logic: dart:core, dart:async will point to online npm package since no need trans same package multiple times.

problem I faced:

  1. contexts.dart:219 visitForStatement the new api call on both foreach and for loop, that old code may not work.
  2. code_generator.dart:53 run, the project provide using dart build system and cli way to trans a project. but the cli way run is sync method. most analyzer api are async, and you'll see ast visitor are also sync methods. and I dont know how to simulate a build step from command.