Serializers serializers =
(
_$serializers
.toBuilder()
..addPlugin(new StandardJsonPlugin())
).build();
Serializers serializers =
_$serializers
.toBuilder()
..addPlugin(new StandardJsonPlugin())
.build();
Serializers serializers = _$serializers.toBuilder();serializers.addPlugin(new StandardJsonPlugin());serializers.build();
Serializers serializers = _$serializers.toBuilder();serializers.addPlugin(new StandardJsonPlugin()).build();
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
It's because of the relative precedence of the '.' and '..' constructs.
On Sun, 12 Feb 2017 at 17:06 'Brian Wilkerson' via Dart Misc <mi...@dartlang.org> wrote:It's because of the relative precedence of the '.' and '..' constructs.Gotcha! Can we change them around?
cascadeSection:‘..’ (cascadeSelector arguments*) (assignableSelector arguments*)*(assignmentOperator expressionWithoutCascade)?
expression:conditionalExpression cascadeSection* | ...
postfixExpression: ... | primary selector*
J/k; I'm sure it makes more sense this way, I just hadn't noticed it before. Thanks! :-)With the parentheses, you get what you're really trying to express:Serializers serializers = _$serializers.toBuilder();serializers.addPlugin(new StandardJsonPlugin());serializers.build();But without the parentheses, the code is equivalent toSerializers serializers = _$serializers.toBuilder();serializers.addPlugin(new StandardJsonPlugin()).build();
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.