Skip to content

Commit

Permalink
feat(dynamite): add @Nodoc comment to avoid doc comments on interface…
Browse files Browse the repository at this point in the history
… classes

Signed-off-by: Nikolas Rimikis <[email protected]>
  • Loading branch information
Leptopoda committed Dec 29, 2023
1 parent 23646f3 commit bf19244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Iterable<Spec> generateSchemas(
if (result is TypeResultBase || result.isTypeDef) {
yield TypeDef(
(final b) => b
// TODO: handle typeDefs.
..docs.add('/// @nodoc')
..name = identifier
..definition = refer(result.dartType.name),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Spec buildInterface(

return Class((final b) {
b
..docs.add('/// @nodoc')
..abstract = true
..modifier = ClassModifier.interface
..name = className
Expand Down

0 comments on commit bf19244

Please sign in to comment.