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

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

Issue 2026123003: Remove buildTopLevelFunctions() and resynthesize top-level functions directly. (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..e5d0be7c5c6dbbfbcd372567ead3838ca3d7d94b 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1525,11 +1525,6 @@ class _ResynthesizerContext implements ResynthesizerContext {
}
@override
- List<FunctionElementImpl> buildTopLevelFunctions() {
- return _unitResynthesizer.buildTopLevelFunctions();
- }
-
- @override
UnitExplicitTopLevelVariables buildTopLevelVariables() {
return _unitResynthesizer.buildUnitExplicitTopLevelVariables();
}
@@ -2120,19 +2115,6 @@ class _UnitResynthesizer {
return buildType(type, typeParameterContext);
}
- List<FunctionElementImpl> buildTopLevelFunctions() {
- List<FunctionElementImpl> functions = <FunctionElementImpl>[];
- List<UnlinkedExecutable> executables = unlinkedUnit.executables;
- for (UnlinkedExecutable unlinkedExecutable in executables) {
- if (unlinkedExecutable.kind == UnlinkedExecutableKind.functionOrMethod) {
- FunctionElementImpl function =
- new FunctionElementImpl.forSerialized(unlinkedExecutable, unit);
- functions.add(function);
- }
- }
- return functions;
- }
-
/**
* Build a [DartType] object based on a [EntityRef]. This [DartType]
* may refer to elements in other libraries than the library being
« 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