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

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

Issue 2027043003: Replace buildVariableInitializer() with explicit initializer function creation. (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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | 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 a10840fbfe7b32c7d8379f409fd3d052260b4d52..b0c72b6c735f4655e25d3b0156c48e0a701f807c 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1535,13 +1535,6 @@ class _ResynthesizerContext implements ResynthesizerContext {
}
@override
- FunctionElementImpl buildVariableInitializer(
- VariableElementImpl variable, UnlinkedExecutable serializedInitializer) {
- return _unitResynthesizer.buildVariableInitializer(
- variable, serializedInitializer);
- }
-
- @override
DartType resolveLinkedType(
int slot, TypeParameterizedElementMixin typeParameterContext) {
return _unitResynthesizer.buildLinkedType(slot, typeParameterContext);
@@ -1799,27 +1792,6 @@ class _UnitResynthesizer {
}
/**
- * Resynthesize a [NamespaceCombinator].
- */
- NamespaceCombinator buildCombinator(UnlinkedCombinator serializedCombinator) {
- if (serializedCombinator.shows.isNotEmpty) {
- ShowElementCombinatorImpl combinator = new ShowElementCombinatorImpl();
- // Note: we call toList() so that we don't retain a reference to the
- // deserialized data structure.
- combinator.shownNames = serializedCombinator.shows.toList();
- combinator.offset = serializedCombinator.offset;
- combinator.end = serializedCombinator.end;
- return combinator;
- } else {
- HideElementCombinatorImpl combinator = new HideElementCombinatorImpl();
- // Note: we call toList() so that we don't retain a reference to the
- // deserialized data structure.
- combinator.hiddenNames = serializedCombinator.hides.toList();
- return combinator;
- }
- }
-
- /**
* Resynthesize a [ConstructorElement] and place it in the given [holder].
* [classElement] is the element of the class for which this element is a
* constructor.
@@ -2273,21 +2245,6 @@ class _UnitResynthesizer {
}
/**
- * If the given [serializedInitializer] is not `null`, return the
- * corresponding [FunctionElementImpl], otherwise return `null`.
- */
- FunctionElementImpl buildVariableInitializer(
- VariableElementImpl variable, UnlinkedExecutable serializedInitializer) {
- if (serializedInitializer == null) {
- return null;
- }
- FunctionElementImpl initializerElement =
- new FunctionElementImpl.forSerialized(serializedInitializer, variable);
- initializerElement.synthetic = true;
- return initializerElement;
- }
-
- /**
* Return [_ReferenceInfo] with the given [index], lazily resolving it.
*/
_ReferenceInfo getReferenceInfo(int index) {
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698