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

Unified Diff: pkg/compiler/lib/src/resolution/tree_elements.dart

Issue 2603263002: Prefix resolution_types with Resolution. (Closed)
Patch Set: Rebased Created 3 years, 11 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/compiler/lib/src/resolution/signatures.dart ('k') | pkg/compiler/lib/src/resolution/type_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/tree_elements.dart
diff --git a/pkg/compiler/lib/src/resolution/tree_elements.dart b/pkg/compiler/lib/src/resolution/tree_elements.dart
index 7aee77320846bec7615bdf8b7753006136349b00..df32daae87c6af4a3987d238adde8314b7c796db 100644
--- a/pkg/compiler/lib/src/resolution/tree_elements.dart
+++ b/pkg/compiler/lib/src/resolution/tree_elements.dart
@@ -22,7 +22,7 @@ abstract class TreeElements {
void forEachConstantNode(f(Node n, ConstantExpression c));
Element operator [](Node node);
- Map<Node, DartType> get typesCache;
+ Map<Node, ResolutionDartType> get typesCache;
/// Returns the [SendStructure] that describes the semantics of [node].
SendStructure getSendStructure(Send node);
@@ -34,7 +34,7 @@ abstract class TreeElements {
Selector getSelector(Node node);
Selector getGetterSelectorInComplexSendSet(SendSet node);
Selector getOperatorSelectorInComplexSendSet(SendSet node);
- DartType getType(Node node);
+ ResolutionDartType getType(Node node);
/// Returns the for-in loop variable for [node].
Element getForInVariable(ForIn node);
@@ -57,7 +57,7 @@ abstract class TreeElements {
bool isTypeLiteral(Send node);
/// Returns the type that the type literal [node] refers to.
- DartType getTypeLiteralType(Send node);
+ ResolutionDartType getTypeLiteralType(Send node);
/// Returns a list of nodes that potentially mutate [element] anywhere in its
/// scope.
@@ -94,10 +94,11 @@ abstract class TreeElements {
class TreeElementMapping extends TreeElements {
final AnalyzableElement analyzedElement;
Map<Spannable, Selector> _selectors;
- Map<Node, DartType> _types;
+ Map<Node, ResolutionDartType> _types;
- Map<Node, DartType> _typesCache;
- Map<Node, DartType> get typesCache => _typesCache ??= <Node, DartType>{};
+ Map<Node, ResolutionDartType> _typesCache;
+ Map<Node, ResolutionDartType> get typesCache =>
+ _typesCache ??= <Node, ResolutionDartType>{};
Setlet<SourceSpan> _superUses;
Map<Node, ConstantExpression> _constants;
@@ -176,15 +177,15 @@ class TreeElementMapping extends TreeElements {
_newStructureMap[node] = newStructure;
}
- void setType(Node node, DartType type) {
+ void setType(Node node, ResolutionDartType type) {
if (_types == null) {
- _types = new Maplet<Node, DartType>();
+ _types = new Maplet<Node, ResolutionDartType>();
}
_types[node] = type;
}
@override
- DartType getType(Node node) => _types != null ? _types[node] : null;
+ ResolutionDartType getType(Node node) => _types != null ? _types[node] : null;
@override
Iterable<SourceSpan> get superUses {
@@ -260,7 +261,7 @@ class TreeElementMapping extends TreeElements {
}
@override
- DartType getTypeLiteralType(Send node) {
+ ResolutionDartType getTypeLiteralType(Send node) {
return getType(node);
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/signatures.dart ('k') | pkg/compiler/lib/src/resolution/type_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698