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

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

Issue 1713763003: Resynthesize parameter visible ranges. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | 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 a5f1345d1795e675aa5575251fc8494b9c97600f..1d27fc29747cbf2390352e8ebc4c7699b7f3c63d 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1711,6 +1711,10 @@ class _LibraryResynthesizer {
parameterElement.parameterKind = ParameterKind.REQUIRED;
break;
}
+ if (serializedParameter.visibleOffset != 0) {
+ parameterElement.setVisibleRange(
+ serializedParameter.visibleOffset, serializedParameter.visibleLength);
+ }
return parameterElement;
}
« 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