Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: pkg/analyzer/lib/src/dart/ast/ast.dart

Issue 2815443003: Better DDC sourcemap generation for lambdas (Closed)
Patch Set: Merged and formatted Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698