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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2968203002: Remove resynthesizing constructors for LocalVariableElementImpl. (Closed)
Patch Set: Created 3 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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';
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698