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

Conversation

matanlurey
Copy link
Contributor

Requires #140.

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

if (spec.extend != null) {
output.write(' extends ');
visitType(spec.extend.toType(), output);
visitType(spec.extend.type, output);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not aware how the visitor pattern is implemented here, but I'd not expect visit* methods call other visit* methods, and instead call accept on child nodes. E.g. here it would be spec.extend.type.accept(this, output).

return new BinaryExpression._(expression, other, '&&');
}

/// This expression preceding by `await`.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: preceded

R accept<R>(covariant ExpressionVisitor<R> visitor, [R context]);

/// Returns the expression as a valid [Code] block.
/// The expression as a valid [Code] block.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "This expression as..."?

@matanlurey matanlurey merged commit 9f922c9 into dart-archive:master Oct 16, 2017
@matanlurey matanlurey deleted the next-update branch October 16, 2017 17:50
mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
* Fix a number of issues.

* OK, add some tests.

* Add closures, some getters.

* Another refactor.

* Added FunctionType.

* Updated README.

* Dartfmt.

* Fix CHANGELOG.
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.

3 participants