Skip to content

Commit 4310354

Browse files
[interop] Add Support for JSDoc Documentation (#435)
* wip: docs * completed doc integration * made fields final and added const for performance * resolved issues * refactored `generateFromDocumentation` and redundant annotation transform refactored `generateFromDocumentation` for nullable docs and removed unnecessary add for annotations in `transformer.dart`
1 parent 72cdd84 commit 4310354

File tree

16 files changed

+1132
-111
lines changed

16 files changed

+1132
-111
lines changed

web_generator/lib/src/ast/base.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import 'package:code_builder/code_builder.dart';
66

77
import '../interop_gen/namer.dart';
8+
import 'documentation.dart';
89
import 'types.dart';
910

1011
class GlobalOptions {
@@ -65,6 +66,8 @@ abstract class NamedDeclaration extends Declaration {
6566
@override
6667
abstract String name;
6768

69+
abstract Documentation? documentation;
70+
6871
ReferredType asReferredType([List<Type>? typeArgs, String? url]) =>
6972
ReferredType(
7073
name: name, declaration: this, typeParams: typeArgs ?? [], url: url);

0 commit comments

Comments
 (0)