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

Side by Side Diff: dart/frog/leg/typechecker.dart

Issue 9447100: Return null from stringValue and call slowToString() instead of toString(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: changes Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « dart/frog/leg/tree/nodes.dart ('k') | dart/frog/leg/universe.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 class TypeCheckerTask extends CompilerTask { 5 class TypeCheckerTask extends CompilerTask {
6 TypeCheckerTask(Compiler compiler) : super(compiler); 6 TypeCheckerTask(Compiler compiler) : super(compiler);
7 String get name() => "Type checker"; 7 String get name() => "Type checker";
8 8
9 static final bool LOG_FAILURES = false; 9 static final bool LOG_FAILURES = false;
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 String toString() => stringName; 52 String toString() => stringName;
53 } 53 }
54 54
55 class SimpleType implements Type { 55 class SimpleType implements Type {
56 final SourceString name; 56 final SourceString name;
57 final Element element; 57 final Element element;
58 58
59 const SimpleType(SourceString this.name, Element this.element); 59 const SimpleType(SourceString this.name, Element this.element);
60 60
61 String toString() => name.toString(); 61 String toString() => name.slowToString();
62 } 62 }
63 63
64 class FunctionType implements Type { 64 class FunctionType implements Type {
65 final Element element; 65 final Element element;
66 final Type returnType; 66 final Type returnType;
67 final Link<Type> parameterTypes; 67 final Link<Type> parameterTypes;
68 68
69 const FunctionType(Type this.returnType, Link<Type> this.parameterTypes, 69 const FunctionType(Type this.returnType, Link<Type> this.parameterTypes,
70 Element this.element); 70 Element this.element);
71 71
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 } 666 }
667 667
668 visitCatchBlock(CatchBlock node) { 668 visitCatchBlock(CatchBlock node) {
669 compiler.unimplemented('visitCatchBlock', node: node); 669 compiler.unimplemented('visitCatchBlock', node: node);
670 } 670 }
671 671
672 visitTypedef(Typedef node) { 672 visitTypedef(Typedef node) {
673 compiler.unimplemented('visitTypedef', node: node); 673 compiler.unimplemented('visitTypedef', node: node);
674 } 674 }
675 } 675 }
OLDNEW
« no previous file with comments | « dart/frog/leg/tree/nodes.dart ('k') | dart/frog/leg/universe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698