| OLD | NEW |
| 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 if (phase == PHASE_COMPILING) { | 726 if (phase == PHASE_COMPILING) { |
| 727 log('Compiled ${codegenWorld.generatedCode.length} methods.'); | 727 log('Compiled ${codegenWorld.generatedCode.length} methods.'); |
| 728 } else { | 728 } else { |
| 729 log('Recompiled ${world.recompilationCandidates.processed} methods.'); | 729 log('Recompiled ${world.recompilationCandidates.processed} methods.'); |
| 730 } | 730 } |
| 731 progress.reset(); | 731 progress.reset(); |
| 732 } | 732 } |
| 733 backend.codegen(work); | 733 backend.codegen(work); |
| 734 } | 734 } |
| 735 | 735 |
| 736 DartType resolveTypeAnnotation(Element element, TypeAnnotation annotation) { | 736 DartType resolveTypeAnnotation(Element element, |
| 737 TypeAnnotation annotation) { |
| 737 return resolver.resolveTypeAnnotation(element, annotation); | 738 return resolver.resolveTypeAnnotation(element, annotation); |
| 738 } | 739 } |
| 739 | 740 |
| 741 DartType resolveReturnType(Element element, |
| 742 TypeAnnotation annotation) { |
| 743 return resolver.resolveReturnType(element, annotation); |
| 744 } |
| 745 |
| 740 FunctionSignature resolveSignature(FunctionElement element) { | 746 FunctionSignature resolveSignature(FunctionElement element) { |
| 741 return withCurrentElement(element, | 747 return withCurrentElement(element, |
| 742 () => resolver.resolveSignature(element)); | 748 () => resolver.resolveSignature(element)); |
| 743 } | 749 } |
| 744 | 750 |
| 745 FunctionSignature resolveFunctionExpression(Element element, | 751 FunctionSignature resolveFunctionExpression(Element element, |
| 746 FunctionExpression node) { | 752 FunctionExpression node) { |
| 747 return withCurrentElement(element, | 753 return withCurrentElement(element, |
| 748 () => resolver.resolveFunctionExpression(element, node)); | 754 () => resolver.resolveFunctionExpression(element, node)); |
| 749 } | 755 } |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 final endOffset = end.charOffset + end.slowCharCount; | 944 final endOffset = end.charOffset + end.slowCharCount; |
| 939 | 945 |
| 940 // [begin] and [end] might be the same for the same empty token. This | 946 // [begin] and [end] might be the same for the same empty token. This |
| 941 // happens for instance when scanning '$$'. | 947 // happens for instance when scanning '$$'. |
| 942 assert(endOffset >= beginOffset); | 948 assert(endOffset >= beginOffset); |
| 943 return f(beginOffset, endOffset); | 949 return f(beginOffset, endOffset); |
| 944 } | 950 } |
| 945 | 951 |
| 946 String toString() => 'SourceSpan($uri, $begin, $end)'; | 952 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 947 } | 953 } |
| OLD | NEW |