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

Unified Diff: pkg/analyzer2dart/lib/src/closed_world.dart

Issue 2037123002: Cleanup: remove package "analyzer2dart". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/analyzer2dart/bin/analyzer2dart.dart ('k') | pkg/analyzer2dart/lib/src/converted_world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/lib/src/closed_world.dart
diff --git a/pkg/analyzer2dart/lib/src/closed_world.dart b/pkg/analyzer2dart/lib/src/closed_world.dart
deleted file mode 100644
index 8f91658f1d98c7ae7a88bfb83872f5a1416db2ea..0000000000000000000000000000000000000000
--- a/pkg/analyzer2dart/lib/src/closed_world.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library analyzer2dart.closedWorld;
-
-import 'dart:collection';
-
-import 'package:analyzer/analyzer.dart';
-import 'package:analyzer/src/generated/element.dart';
-import 'package:analyzer/src/generated/resolver.dart';
-
-/**
- * Container for the elements and AST nodes which have been determined by
- * tree shaking to be reachable by the program being compiled.
- */
-class ClosedWorld {
- /// The core types of this world.
- final TypeProvider typeProvider;
-
- /// Returns the main function of this closed world compilation.
- final FunctionElement mainFunction;
-
- // TODO(paulberry): is it a problem to hold on to all the AST's for the
- // duration of tree shaking & CPS generation?
-
- /**
- * Methods, toplevel functions, etc. that are reachable.
- */
- Map<ExecutableElement, Declaration> executableElements =
- new HashMap<ExecutableElement, Declaration>();
-
- /**
- * Fields that are reachable.
- */
- Map<FieldElement, VariableDeclaration> fields =
- new HashMap<FieldElement, VariableDeclaration>();
-
- /**
- * Top-level variables that are reachable.
- */
- // TODO(johnniwinther): Is there value in splitting fields and top-level
- // variables?
- Map<TopLevelVariableElement, VariableDeclaration> variables =
- new HashMap<TopLevelVariableElement, VariableDeclaration>();
-
- /**
- * Classes that are instantiated from reachable code.
- *
- * TODO(paulberry): Also keep track of classes that are reachable but not
- * instantiated (because they are extended or mixed in)
- */
- Map<ClassElement, ClassDeclaration> instantiatedClasses =
- new HashMap<ClassElement, ClassDeclaration>();
-
- ClosedWorld(this.typeProvider, this.mainFunction);
-}
« no previous file with comments | « pkg/analyzer2dart/bin/analyzer2dart.dart ('k') | pkg/analyzer2dart/lib/src/converted_world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698