-
Notifications
You must be signed in to change notification settings - Fork 62
Cleanup: Make all ASTs lazy (no _AbstractCodeBuilder) #12
Conversation
|
This also makes the package |
| yet implemented that make it unsuitable for all forms of code | ||
| generation. | ||
|
|
||
| **Contributions are [welcome][welcome]!** |
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.
Should the second "welcome" be inside round parens: (welcome)?
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.
[foo][bar] means that [bar] is defined lower in the markdown document, i.e:
[bar]: http://some-long-link-that-is-awkward-inline.com
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.
Does this mean that there's an error in the [analyzer](analyzer) link above?
lib/src/builders/class_builder.dart
Outdated
|
|
||
| /// Builds a [ClassDeclaration] AST. | ||
| /// | ||
| /// |
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.
I'm on the edge of my seat in suspense, waiting for docs to appear ;)
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.
Reverted
lib/src/builders/file_builder.dart
Outdated
| } | ||
| return new ImportBuilder._(astNode); | ||
| } | ||
| const factory ImportBuilder(String uri, {String as}) = ImportBuilder._; |
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.
as is a Dart keyword. How about withPrefix or just prefix? That's what the language spec calls them I think.
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. Changed to prefix
|
Assuming travis passes (does locally) I'll squash and merge. Thanks! |
…ode_builder#12) * Make all builders lazy, remove AST cloning. * Fix breakages due to bad refactor of FileBuilder * Small pubspec increment * Update pubspec to allow pub publish. * Add headers, upstream analyzer patch API * Address comments. * Fix outstanding lints.
Closes dart-lang/tools#946