| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 closureMapping.ClosureTask closureToClassMapper; | 148 closureMapping.ClosureTask closureToClassMapper; |
| 149 TypeCheckerTask checker; | 149 TypeCheckerTask checker; |
| 150 ti.TypesTask typesTask; | 150 ti.TypesTask typesTask; |
| 151 Backend backend; | 151 Backend backend; |
| 152 ConstantHandler constantHandler; | 152 ConstantHandler constantHandler; |
| 153 EnqueueTask enqueuer; | 153 EnqueueTask enqueuer; |
| 154 | 154 |
| 155 static const SourceString MAIN = const SourceString('main'); | 155 static const SourceString MAIN = const SourceString('main'); |
| 156 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); | 156 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); |
| 157 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); | 157 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); |
| 158 static const SourceString NO_SUCH_METHOD_EXCEPTION = | |
| 159 const SourceString('NoSuchMethodException'); | |
| 160 static const SourceString START_ROOT_ISOLATE = | 158 static const SourceString START_ROOT_ISOLATE = |
| 161 const SourceString('startRootIsolate'); | 159 const SourceString('startRootIsolate'); |
| 162 bool enabledNoSuchMethod = false; | 160 bool enabledNoSuchMethod = false; |
| 163 | 161 |
| 164 Stopwatch progress; | 162 Stopwatch progress; |
| 165 | 163 |
| 166 static const int PHASE_SCANNING = 0; | 164 static const int PHASE_SCANNING = 0; |
| 167 static const int PHASE_RESOLVING = 1; | 165 static const int PHASE_RESOLVING = 1; |
| 168 static const int PHASE_COMPILING = 2; | 166 static const int PHASE_COMPILING = 2; |
| 169 static const int PHASE_RECOMPILING = 3; | 167 static const int PHASE_RECOMPILING = 3; |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 final endOffset = end.charOffset + end.slowCharCount; | 920 final endOffset = end.charOffset + end.slowCharCount; |
| 923 | 921 |
| 924 // [begin] and [end] might be the same for the same empty token. This | 922 // [begin] and [end] might be the same for the same empty token. This |
| 925 // happens for instance when scanning '$$'. | 923 // happens for instance when scanning '$$'. |
| 926 assert(endOffset >= beginOffset); | 924 assert(endOffset >= beginOffset); |
| 927 return f(beginOffset, endOffset); | 925 return f(beginOffset, endOffset); |
| 928 } | 926 } |
| 929 | 927 |
| 930 String toString() => 'SourceSpan($uri, $begin, $end)'; | 928 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 931 } | 929 } |
| OLD | NEW |