Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Beta release fixes and feature. #149

Merged
merged 2 commits into from
Oct 24, 2017

Conversation

matanlurey
Copy link
Contributor

@matanlurey
Copy link
Contributor Author

Ping @yjbanov plz 🗡

Copy link
Contributor

@yjbanov yjbanov left a 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);
Copy link
Contributor

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?

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@matanlurey matanlurey merged commit 5e13264 into dart-archive:master Oct 24, 2017
@matanlurey matanlurey deleted the beta-release branch October 24, 2017 17:35
mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
* Beta release fixes and feature.

* Dartfmt.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Print the resulting Dart source for equalsDart Top-level lambda methods emit invalid code Add Code.lazy, for custom structures
3 participants