Index: pkg/analyzer/lib/src/dart/element/element.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart |
index 51796a70eafba26855c716cd83fe811e4c351ac2..7d4560dece302380fe8755325c87d264552e06a8 100644 |
--- a/pkg/analyzer/lib/src/dart/element/element.dart |
+++ b/pkg/analyzer/lib/src/dart/element/element.dart |
@@ -1915,13 +1915,6 @@ class ConstLocalVariableElementImpl extends LocalVariableElementImpl |
* Initialize a newly created local variable element to have the given [name]. |
*/ |
ConstLocalVariableElementImpl.forNode(Identifier name) : super.forNode(name); |
- |
- /** |
- * Initialize using the given serialized information. |
- */ |
- ConstLocalVariableElementImpl.forSerialized(UnlinkedVariable unlinkedVariable, |
- ExecutableElementImpl enclosingExecutable) |
- : super.forSerialized(unlinkedVariable, enclosingExecutable); |
} |
/** |
@@ -6392,29 +6385,6 @@ class LocalVariableElementImpl extends NonParameterVariableElementImpl |
*/ |
LocalVariableElementImpl.forNode(Identifier name) : super.forNode(name); |
- /** |
- * Initialize using the given serialized information. |
- */ |
- LocalVariableElementImpl.forSerialized(UnlinkedVariable unlinkedVariable, |
- ExecutableElementImpl enclosingExecutable) |
- : super.forSerialized(unlinkedVariable, enclosingExecutable); |
- |
- /** |
- * Initialize using the given serialized information. |
- */ |
- factory LocalVariableElementImpl.forSerializedFactory( |
- UnlinkedVariable unlinkedVariable, |
- ExecutableElementImpl enclosingExecutable) { |
- if (unlinkedVariable.isConst && |
- unlinkedVariable.initializer?.bodyExpr != null) { |
- return new ConstLocalVariableElementImpl.forSerialized( |
- unlinkedVariable, enclosingExecutable); |
- } else { |
- return new LocalVariableElementImpl.forSerialized( |
- unlinkedVariable, enclosingExecutable); |
- } |
- } |
- |
@override |
String get identifier { |
return '$name$nameOffset'; |