| 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 final bool REPORT_EXCESS_RESOLUTION = false; | 10 final bool REPORT_EXCESS_RESOLUTION = false; |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 | 914 |
| 915 Type resolveTypeAnnotation(Element element, TypeAnnotation annotation) { | 915 Type resolveTypeAnnotation(Element element, TypeAnnotation annotation) { |
| 916 return resolver.resolveTypeAnnotation(element, annotation); | 916 return resolver.resolveTypeAnnotation(element, annotation); |
| 917 } | 917 } |
| 918 | 918 |
| 919 FunctionSignature resolveSignature(FunctionElement element) { | 919 FunctionSignature resolveSignature(FunctionElement element) { |
| 920 return withCurrentElement(element, | 920 return withCurrentElement(element, |
| 921 () => resolver.resolveSignature(element)); | 921 () => resolver.resolveSignature(element)); |
| 922 } | 922 } |
| 923 | 923 |
| 924 FunctionSignature resolveFunctionExpression(Element element, |
| 925 FunctionExpression node) { |
| 926 return withCurrentElement(element, |
| 927 () => resolver.resolveFunctionExpression(element, node)); |
| 928 } |
| 929 |
| 924 FunctionSignature resolveTypedef(TypedefElement element) { | 930 FunctionSignature resolveTypedef(TypedefElement element) { |
| 925 return withCurrentElement(element, | 931 return withCurrentElement(element, |
| 926 () => resolver.resolveTypedef(element)); | 932 () => resolver.resolveTypedef(element)); |
| 927 } | 933 } |
| 928 | 934 |
| 929 FunctionType computeFunctionType(Element element, | 935 FunctionType computeFunctionType(Element element, |
| 930 FunctionSignature signature) { | 936 FunctionSignature signature) { |
| 931 return withCurrentElement(element, | 937 return withCurrentElement(element, |
| 932 () => resolver.computeFunctionType(element, signature)); | 938 () => resolver.computeFunctionType(element, signature)); |
| 933 } | 939 } |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 final endOffset = end.charOffset + end.slowCharCount; | 1091 final endOffset = end.charOffset + end.slowCharCount; |
| 1086 | 1092 |
| 1087 // [begin] and [end] might be the same for the same empty token. This | 1093 // [begin] and [end] might be the same for the same empty token. This |
| 1088 // happens for instance when scanning '$$'. | 1094 // happens for instance when scanning '$$'. |
| 1089 assert(endOffset >= beginOffset); | 1095 assert(endOffset >= beginOffset); |
| 1090 return f(beginOffset, endOffset); | 1096 return f(beginOffset, endOffset); |
| 1091 } | 1097 } |
| 1092 | 1098 |
| 1093 String toString() => 'SourceSpan($uri, $begin, $end)'; | 1099 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 1094 } | 1100 } |
| OLD | NEW |