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

Side by Side Diff: lib/compiler/implementation/compiler.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, 3 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
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 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 const bool REPORT_EXCESS_RESOLUTION = false; 10 const bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 } else { 710 } else {
711 backend.codegen(work); 711 backend.codegen(work);
712 } 712 }
713 } 713 }
714 714
715 void registerInstantiatedClass(ClassElement cls) { 715 void registerInstantiatedClass(ClassElement cls) {
716 enqueuer.resolution.registerInstantiatedClass(cls); 716 enqueuer.resolution.registerInstantiatedClass(cls);
717 enqueuer.codegen.registerInstantiatedClass(cls); 717 enqueuer.codegen.registerInstantiatedClass(cls);
718 } 718 }
719 719
720 Type resolveTypeAnnotation(Element element, TypeAnnotation annotation) { 720 DartType resolveTypeAnnotation(Element element, TypeAnnotation annotation) {
721 return resolver.resolveTypeAnnotation(element, annotation); 721 return resolver.resolveTypeAnnotation(element, annotation);
722 } 722 }
723 723
724 FunctionSignature resolveSignature(FunctionElement element) { 724 FunctionSignature resolveSignature(FunctionElement element) {
725 return withCurrentElement(element, 725 return withCurrentElement(element,
726 () => resolver.resolveSignature(element)); 726 () => resolver.resolveSignature(element));
727 } 727 }
728 728
729 FunctionSignature resolveFunctionExpression(Element element, 729 FunctionSignature resolveFunctionExpression(Element element,
730 FunctionExpression node) { 730 FunctionExpression node) {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 final endOffset = end.charOffset + end.slowCharCount; 896 final endOffset = end.charOffset + end.slowCharCount;
897 897
898 // [begin] and [end] might be the same for the same empty token. This 898 // [begin] and [end] might be the same for the same empty token. This
899 // happens for instance when scanning '$$'. 899 // happens for instance when scanning '$$'.
900 assert(endOffset >= beginOffset); 900 assert(endOffset >= beginOffset);
901 return f(beginOffset, endOffset); 901 return f(beginOffset, endOffset);
902 } 902 }
903 903
904 String toString() => 'SourceSpan($uri, $begin, $end)'; 904 String toString() => 'SourceSpan($uri, $begin, $end)';
905 } 905 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698