Skip to content

Dartdoc fails with new function type syntax #1483

Closed
@greglittlefield-wf

Description

@greglittlefield-wf

Input (lib/test_dartdoc.dart):

String Function(int, bool) compute;

Output

$ pub run dartdoc
Generating documentation for 'test_dartdoc' into /Users/greglittlefield/Development/test_dartdoc/doc/api/

parsing lib/test_dartdoc.dart...
parsed 1 file in 2.0 seconds

Generation failed: Unknown type GenericFunctionTypeElementImpl
package:dartdoc/src/model.dart 1991                                             new ModelElement.from
package:dartdoc/src/model.dart 4076                                             new TopLevelVariable
package:dartdoc/src/model.dart 1979                                             new ModelElement.from
package:dartdoc/src/model.dart 1602                                             Library._getVariables.<fn>
dart:core                                                                       Iterable.toList
package:dartdoc/src/model.dart 1603                                             Library._getVariables
package:dartdoc/src/model.dart 1338                                             Library.constants
package:dartdoc/src/model.dart 1640                                             Library.modelElementsMap
package:dartdoc/src/model.dart 1666                                             Library.allModelElements
package:dartdoc/src/model.dart 3838                                             Package.allModelElements.<fn>
dart:core                                                                       List.forEach
package:dartdoc/src/model.dart 3837                                             Package.allModelElements
package:dartdoc/src/model.dart 3847                                             Package.allCanonicalModelElements
package:dartdoc/dartdoc.dart 181                                                DartDoc.generateDocs
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.13.0+1/bin/dartdoc.dart 200  main.<fn>
package:stack_trace                                                             Chain.capture
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.13.0+1/bin/dartdoc.dart 199  main
===== asynchronous gap ===========================
dart:async                                                                      _Completer.completeError
package:dartdoc/dartdoc.dart 216                                                DartDoc.generateDocs
===== asynchronous gap ===========================
dart:async                                                                      new Future.microtask
package:dartdoc/dartdoc.dart 128                                                DartDoc.generateDocs
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.13.0+1/bin/dartdoc.dart 200  main.<fn>
===== asynchronous gap ===========================
dart:async                                                                      new Future.microtask
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.13.0+1/bin/dartdoc.dart 199  main.<fn>
package:stack_trace                                                             Chain.capture
../../.pub-cache/hosted/pub.dartlang.org/dartdoc-0.13.0+1/bin/dartdoc.dart 199  main

Versions:

  • Dart SDK 1.24.2
  • dartdoc 0.13.0+1
  • analyzer 0.30.0+2

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failurestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions