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

Unified Diff: lib/compiler/implementation/native_handler.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/native_handler.dart
diff --git a/lib/compiler/implementation/native_handler.dart b/lib/compiler/implementation/native_handler.dart
index 318d46cdf7b3dfa4152049c59bb340ded9444c38..65500cb0ba13582f4f4793f1d2031f4dba73ce52 100644
--- a/lib/compiler/implementation/native_handler.dart
+++ b/lib/compiler/implementation/native_handler.dart
@@ -22,7 +22,7 @@ void processNativeClasses(Enqueuer world,
void addSubtypes(ClassElement cls,
NativeEmitter emitter) {
- for (Type type in cls.allSupertypes) {
+ for (DartType type in cls.allSupertypes) {
List<Element> subtypes = emitter.subtypes.putIfAbsent(
type.element,
() => <ClassElement>[]);
@@ -238,7 +238,7 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
inputs.add(builder.localsHandler.readThis());
}
parameters.forEachParameter((Element parameter) {
- Type type = parameter.computeType(compiler).unalias(compiler);
+ DartType type = parameter.computeType(compiler).unalias(compiler);
HInstruction input = builder.localsHandler.readLocal(parameter);
if (type is FunctionType) {
// The parameter type is a function type either directly or through
@@ -274,7 +274,7 @@ void handleSsaNative(SsaBuilder builder, Expression nativeBody) {
// mangling problem will go away once we switch these libraries
// to use Leg's 'JS' function.
parameters.forEachParameter((Element parameter) {
- Type type = parameter.computeType(compiler).unalias(compiler);
+ DartType type = parameter.computeType(compiler).unalias(compiler);
if (type is FunctionType) {
// The parameter type is a function type either directly or through
// typedef(s).

Powered by Google App Engine
This is Rietveld 408576698