-
Notifications
You must be signed in to change notification settings - Fork 64
Next update: closer to a final release. #141
Conversation
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
if (spec.extend != null) { | ||
output.write(' extends '); | ||
visitType(spec.extend.toType(), output); | ||
visitType(spec.extend.type, output); |
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 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)
.
lib/src/specs/expression.dart
Outdated
return new BinaryExpression._(expression, other, '&&'); | ||
} | ||
|
||
/// This expression preceding by `await`. |
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.
nit: preceded
@@ -26,28 +32,102 @@ abstract class Expression implements Spec { | |||
@override | |||
R accept<R>(covariant ExpressionVisitor<R> visitor, [R context]); | |||
|
|||
/// Returns the expression as a valid [Code] block. | |||
/// The expression as a valid [Code] block. |
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.
nit: "This expression as..."?
* Fix a number of issues. * OK, add some tests. * Add closures, some getters. * Another refactor. * Added FunctionType. * Updated README. * Dartfmt. * Fix CHANGELOG.
Requires #140.