glesica / dcdg.dart

Dart Class Diagram Generator
https://pub.dartlang.org/packages/dcdg
Apache License 2.0
157 stars 31 forks source link

Methods not generated properly #65

Open WizMe-M opened 1 year ago

WizMe-M commented 1 year ago

Hi! When I called dart pub global run dcdg it incorrectly read method's return type and didin't read parameters.

Reproduce:

class Foo {
  Future<void> bar(int a) async {
  }
}

Results:

class "project::foo.dart::Foo" {
  +dynamic bar()
}
haoyuant commented 1 year ago

I'm having the same issue, Future is not recognised. And also, the dart 3 new feature, Records(tuples) are also not handled properly.