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

Unified Diff: lib/compiler/implementation/world.dart

Issue 10911007: Rename Type to DartType to avoid conflicts with the class Type in the core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
Index: lib/compiler/implementation/world.dart
diff --git a/lib/compiler/implementation/world.dart b/lib/compiler/implementation/world.dart
index 1d87875dbb61eb73fcc357163dd50700e96c979e..fa58e451139abc385ad0445282c2de90ba1f7c84 100644
--- a/lib/compiler/implementation/world.dart
+++ b/lib/compiler/implementation/world.dart
@@ -14,7 +14,7 @@ class World {
compiler.internalErrorOnElement(
cls, 'Class "${cls.name.slowToString()}" is not resolved.');
}
- for (Type type in cls.allSupertypes) {
+ for (DartType type in cls.allSupertypes) {
Set<Element> subtypesOfCls =
subtypes.putIfAbsent(type.element, () => new Set<ClassElement>());
subtypesOfCls.add(cls);
@@ -33,7 +33,7 @@ class World {
* [selector] on a receiver with the given [type]. This includes all sub
* types.
*/
- MemberSet _memberSetFor(Type type, Selector selector) {
+ MemberSet _memberSetFor(DartType type, Selector selector) {
assert(compiler !== null);
ClassElement cls = type.element;
SourceString name = selector.name;
@@ -60,7 +60,7 @@ class World {
* If no such field exists, or a subclass overrides the field
* returns [:null:].
*/
- VariableElement locateSingleField(Type type, Selector selector) {
+ VariableElement locateSingleField(DartType type, Selector selector) {
MemberSet memberSet = _memberSetFor(type, selector);
ClassElement cls = type.element;
Element result = cls.lookupSelector(selector);
@@ -73,7 +73,7 @@ class World {
return result;
}
- Set<ClassElement> findNoSuchMethodHolders(Type type) {
+ Set<ClassElement> findNoSuchMethodHolders(DartType type) {
Set<ClassElement> result = new Set<ClassElement>();
Selector noSuchMethodSelector = new Selector.noSuchMethod();
MemberSet memberSet = _memberSetFor(type, noSuchMethodSelector);

Powered by Google App Engine
This is Rietveld 408576698