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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/typechecker.dart

Issue 11348294: Follow-up to https://chromiumcodereview.appspot.com/11416144/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed dart2dart malformed type handling in visitNewExpression(). Fixed comments. Created 8 years 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 class TypeCheckerTask extends CompilerTask { 7 class TypeCheckerTask extends CompilerTask {
8 TypeCheckerTask(Compiler compiler) : super(compiler); 8 TypeCheckerTask(Compiler compiler) : super(compiler);
9 String get name => "Type checker"; 9 String get name => "Type checker";
10 10
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 const MalformedType(this.element); 254 const MalformedType(this.element);
255 255
256 TypeKind get kind => TypeKind.MALFORMED_TYPE; 256 TypeKind get kind => TypeKind.MALFORMED_TYPE;
257 257
258 SourceString get name => element.name; 258 SourceString get name => element.name;
259 259
260 final MalformedTypeElement element; 260 final MalformedTypeElement element;
261 261
262 DartType unalias(Compiler compiler) => this; 262 DartType unalias(Compiler compiler) => this;
263 263
264 int get hashCode => 1733; 264 int get hashCode => 1733 + 19 * element.hashCode;
265 265
266 bool operator ==(other) => other is MalformedType; 266 bool operator ==(other) {
267 if (other is !MalformedType) return false;
268 if (!identical(element, other.element)) return false;
269 return true;
270 }
267 271
268 String toString() => name.slowToString(); 272 String toString() => name.slowToString();
269 } 273 }
270 274
271 class InterfaceType extends DartType { 275 class InterfaceType extends DartType {
272 final ClassElement element; 276 final ClassElement element;
273 final Link<DartType> typeArguments; 277 final Link<DartType> typeArguments;
274 278
275 InterfaceType(this.element, 279 InterfaceType(this.element,
276 [this.typeArguments = const Link<DartType>()]) { 280 [this.typeArguments = const Link<DartType>()]) {
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 } 1232 }
1229 1233
1230 DartType visitStringNode(StringNode node) { 1234 DartType visitStringNode(StringNode node) {
1231 compiler.unimplemented('visitNode', node: node); 1235 compiler.unimplemented('visitNode', node: node);
1232 } 1236 }
1233 1237
1234 DartType visitLibraryDependency(LibraryDependency node) { 1238 DartType visitLibraryDependency(LibraryDependency node) {
1235 compiler.unimplemented('visitNode', node: node); 1239 compiler.unimplemented('visitNode', node: node);
1236 } 1240 }
1237 } 1241 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | sdk/lib/_internal/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698