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

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

Issue 1530363002: Fix summary resynthesis for operators ending in '='. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Konstantin's suggestion Created 5 years 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 | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | 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 7dfcbeea1384515363ccf50a2704c7137d7dc995..45fd9b17024efbfd699999b616390d98fa9be62d 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -385,11 +385,12 @@ class _LibraryResynthesizer {
if (holder == null) {
holder = unitHolder;
}
+ UnlinkedExecutableKind kind = serializedExecutable.kind;
String name = serializedExecutable.name;
- if (name.endsWith('=') && name != '[]=') {
+ if (kind == UnlinkedExecutableKind.setter) {
+ assert(name.endsWith('='));
name = name.substring(0, name.length - 1);
}
- UnlinkedExecutableKind kind = serializedExecutable.kind;
switch (kind) {
case UnlinkedExecutableKind.functionOrMethod:
if (isTopLevel) {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698