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

Side by Side Diff: pkg/compiler/lib/src/resolution/resolution.dart

Issue 2582393002: Merge WorldImpl with ResolutionWorldBuilderImpl (Closed)
Patch Set: Updated cf. comment Created 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/universe/world_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.resolution; 5 library dart2js.resolution;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show Identifiers; 10 import '../common/names.dart' show Identifiers;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 String get name => 'Resolver'; 71 String get name => 'Resolver';
72 72
73 DiagnosticReporter get reporter => resolution.reporter; 73 DiagnosticReporter get reporter => resolution.reporter;
74 Target get target => resolution.target; 74 Target get target => resolution.target;
75 CoreTypes get coreTypes => resolution.coreTypes; 75 CoreTypes get coreTypes => resolution.coreTypes;
76 CoreClasses get coreClasses => resolution.coreClasses; 76 CoreClasses get coreClasses => resolution.coreClasses;
77 CommonElements get commonElements => resolution.commonElements; 77 CommonElements get commonElements => resolution.commonElements;
78 ParsingContext get parsingContext => resolution.parsingContext; 78 ParsingContext get parsingContext => resolution.parsingContext;
79 CompilerOptions get options => resolution.options; 79 CompilerOptions get options => resolution.options;
80 ResolutionEnqueuer get enqueuer => resolution.enqueuer; 80 ResolutionEnqueuer get enqueuer => resolution.enqueuer;
81 OpenWorld get world => enqueuer.universe.openWorld; 81 OpenWorld get world => enqueuer.universe;
82 82
83 ResolutionImpact resolve(Element element) { 83 ResolutionImpact resolve(Element element) {
84 return measure(() { 84 return measure(() {
85 if (Elements.isMalformed(element)) { 85 if (Elements.isMalformed(element)) {
86 // TODO(johnniwinther): Add a predicate for this. 86 // TODO(johnniwinther): Add a predicate for this.
87 assert(invariant(element, element is! ErroneousElement, 87 assert(invariant(element, element is! ErroneousElement,
88 message: "Element $element expected to have parse errors.")); 88 message: "Element $element expected to have parse errors."));
89 _ensureTreeElements(element); 89 _ensureTreeElements(element);
90 return const ResolutionImpact(); 90 return const ResolutionImpact();
91 } 91 }
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 TreeElements get treeElements { 1135 TreeElements get treeElements {
1136 assert(invariant(this, _treeElements != null, 1136 assert(invariant(this, _treeElements != null,
1137 message: "TreeElements have not been computed for $this.")); 1137 message: "TreeElements have not been computed for $this."));
1138 return _treeElements; 1138 return _treeElements;
1139 } 1139 }
1140 1140
1141 void reuseElement() { 1141 void reuseElement() {
1142 _treeElements = null; 1142 _treeElements = null;
1143 } 1143 }
1144 } 1144 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/universe/world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698