-
Notifications
You must be signed in to change notification settings - Fork 62
Resolve a number of open issues #86
Conversation
|
|
||
| /// Lazily builds a [PartDirective] AST when built. | ||
| class PartBuilder extends Object | ||
| with HasAnnotationsMixin |
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.
[optional] could be class PartBuilder extends HasAnnotationsMixin
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.
Acknowledged. I like keeping it like this to ensure it stays mixin compatible.
lib/src/builders/reference.dart
Outdated
| ReferenceBuilder._(this._name, [this._importFrom]); | ||
|
|
||
| /// Name of the reference. | ||
| String get name => _name; |
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.
Make the field public instead, it is already final
lib/src/builders/method.dart
Outdated
| _RedirectingConstructorBuilder( | ||
| this.name, | ||
| this.redirectToClass, { | ||
| this.asConst, |
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.
This should probably have a default value, it's read without a null check.
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.
Done.
* Add new features. * More changes. * Dartfmt. * Yegors issue. * Address feedback and merge. * Oops.
1.0.0-beta+4
PartBuildertoPartOfBuilder.PartBuilder, to representpart '...dart'directives.HasAnnotationsinterface to all library/part/directive builders.asFactoryandasConsttoConstructorBuilder.ConstructorBuilder.redirectTofor a redirecting factory constructor.namegetter toReferenceBuilder.'') is equivalent tonull(default).Closes dart-lang/tools#912
Closes dart-lang/tools#910
Closes dart-lang/tools#907
Partially addresses dart-lang/tools#966