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

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

Issue 2015963002: Resynthesize ParameterElementImpl.parameterKind lazily. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 1630e4d2c808532a542a86173de4c07594768a9e..dd30325388506569a1844872062f2fd03667214c 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -2367,17 +2367,6 @@ class _UnitResynthesizer {
parameterTypeElement.type = parameterElement.type;
}
buildVariableInitializer(parameterElement, serializedParameter.initializer);
- switch (serializedParameter.kind) {
- case UnlinkedParamKind.named:
- parameterElement.parameterKind = ParameterKind.NAMED;
- break;
- case UnlinkedParamKind.positional:
- parameterElement.parameterKind = ParameterKind.POSITIONAL;
- break;
- case UnlinkedParamKind.required:
- parameterElement.parameterKind = ParameterKind.REQUIRED;
- break;
- }
return parameterElement;
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698