Index: pkg/analyzer/lib/src/dart/ast/ast.dart |
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart |
index 656b1c2edf45728f52417a3e76b25d498819e789..e6467df20dd6d881b5e41801f0419b6d1bb16b5a 100644 |
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart |
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart |
@@ -518,6 +518,15 @@ class AsExpressionImpl extends ExpressionImpl implements AsExpression { |
} |
@override |
+ get length { |
Brian Wilkerson
2017/04/11 19:07:51
I think this is the wrong approach to fixing the p
Alan Knight
2017/04/11 20:32:06
Per Jennifer, it doesn't seem like mapping these i
|
+ if (endToken.isSynthetic) { |
+ return _expression.length; |
+ } else { |
+ return super.length; |
+ } |
+ } |
+ |
+ @override |
Token get beginToken => _expression.beginToken; |
@override |