-
Notifications
You must be signed in to change notification settings - Fork 63
Beta release fixes and feature. #149
Conversation
Ping @yjbanov plz 🗡 |
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
|
||
@override | ||
R accept<R>(SpecVisitor<R> visitor, [R context]) { | ||
return generate().accept(visitor, context); |
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 not only generates lazily, but also generates every time it's visited. Is it intentional?
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.
Yeah. We could cache it, but we wouldn't know if the function is stateless or not.
|
||
@override | ||
R accept<R>(CodeVisitor<R> visitor, [R context]) { | ||
return generate(visitor).accept(visitor, context); |
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.
same here
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.
Ditto.
|
||
@override | ||
R accept<R>(CodeVisitor<R> visitor, [R context]) { | ||
return generate().accept(visitor, context); |
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.
ditto
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.
Ditto.
* Beta release fixes and feature. * Dartfmt.
Closes dart-lang/tools#844.
Closes dart-lang/tools#845.
Closes dart-lang/tools#846.