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; |
} |