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 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 codegenWorld.addGeneratedCode(work, codeBuffer); | 913 codegenWorld.addGeneratedCode(work, codeBuffer); |
914 return codeBuffer.toString(); | 914 return codeBuffer.toString(); |
915 } | 915 } |
916 } | 916 } |
917 | 917 |
918 void registerInstantiatedClass(ClassElement cls) { | 918 void registerInstantiatedClass(ClassElement cls) { |
919 enqueuer.resolution.registerInstantiatedClass(cls); | 919 enqueuer.resolution.registerInstantiatedClass(cls); |
920 enqueuer.codegen.registerInstantiatedClass(cls); | 920 enqueuer.codegen.registerInstantiatedClass(cls); |
921 } | 921 } |
922 | 922 |
923 void resolveClass(ClassElement element) { | |
924 withCurrentElement(element, () => resolver.resolveClass(element)); | |
925 } | |
926 | |
927 Type resolveTypeAnnotation(Element element, TypeAnnotation annotation) { | 923 Type resolveTypeAnnotation(Element element, TypeAnnotation annotation) { |
928 return resolver.resolveTypeAnnotation(element, annotation); | 924 return resolver.resolveTypeAnnotation(element, annotation); |
929 } | 925 } |
930 | 926 |
931 FunctionSignature resolveSignature(FunctionElement element) { | 927 FunctionSignature resolveSignature(FunctionElement element) { |
932 return withCurrentElement(element, | 928 return withCurrentElement(element, |
933 () => resolver.resolveSignature(element)); | 929 () => resolver.resolveSignature(element)); |
934 } | 930 } |
935 | 931 |
936 FunctionSignature resolveFunctionExpression(Element element, | 932 FunctionSignature resolveFunctionExpression(Element element, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 final endOffset = end.charOffset + end.slowCharCount; | 1099 final endOffset = end.charOffset + end.slowCharCount; |
1104 | 1100 |
1105 // [begin] and [end] might be the same for the same empty token. This | 1101 // [begin] and [end] might be the same for the same empty token. This |
1106 // happens for instance when scanning '$$'. | 1102 // happens for instance when scanning '$$'. |
1107 assert(endOffset >= beginOffset); | 1103 assert(endOffset >= beginOffset); |
1108 return f(beginOffset, endOffset); | 1104 return f(beginOffset, endOffset); |
1109 } | 1105 } |
1110 | 1106 |
1111 String toString() => 'SourceSpan($uri, $begin, $end)'; | 1107 String toString() => 'SourceSpan($uri, $begin, $end)'; |
1112 } | 1108 } |
OLD | NEW |