-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support dartdoc generation #138
Conversation
@@ -29,7 +29,7 @@ String generateColors( | |||
buffer.writeln("import 'package:flutter/material.dart';"); | |||
buffer.writeln(); | |||
buffer.writeln('class ColorName {'); | |||
buffer.writeln(' ColorName._();'); | |||
buffer.writeln('ColorName._();'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unnecessary because of using DartFormatter.
@@ -21,11 +21,12 @@ String generateFonts( | |||
buffer.writeln(header); | |||
buffer.writeln(ignoreAnalysis); | |||
buffer.writeln('class FontFamily {'); | |||
buffer.writeln(' FontFamily._();'); | |||
buffer.writeln('FontFamily._();'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unnecessary because of using DartFormatter.
} | ||
|
||
String _assetsClassDefinition(List<_Statement> statements) { | ||
final statementsBlock = statements | ||
.map((statement) => ' ${statement.toStaticFieldString()}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unnecessary because of using DartFormatter.
@@ -313,7 +335,11 @@ String _directoryClassGenDefinition( | |||
List<_Statement> statements, | |||
) { | |||
final statementsBlock = statements | |||
.map((statement) => ' ${statement.toGetterString()}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unnecessary because of using DartFormatter.
Codecov Report
@@ Coverage Diff @@
## main #138 +/- ##
==========================================
+ Coverage 98.86% 98.91% +0.04%
==========================================
Files 17 17
Lines 529 551 +22
==========================================
+ Hits 523 545 +22
Misses 6 6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Mao Yufeng <lcdsmao@gmail.com>
What does this change?
before
after