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

Unified Diff: pkg/analyzer/lib/src/summary/resynthesize.dart

Issue 1949693002: Implement 'assignToRef' resynthesizing. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Just generate a non-const marker. Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 749812e8812768d25825b1d6ba2808f4da24a5f5..a9505b7ce8331c37cb9bdaa4ceb27bfffd0bbb66 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -459,7 +459,8 @@ class _ConstExprBuilder {
case UnlinkedConstOperation.typeCast:
case UnlinkedConstOperation.typeCheck:
case UnlinkedConstOperation.throwException:
- throw new UnimplementedError('$operation');
+ _push(AstFactory.identifier3(r'$notConst$'));
Paul Berry 2016/05/03 19:33:41 This seems dangerous to me, since it breaks the tr
scheglov 2016/05/03 20:02:44 Done.
+ break;
}
}
return stack.single;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698