| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 } | 333 } |
| 334 objectClass = lookupSpecialClass(const SourceString('Object')); | 334 objectClass = lookupSpecialClass(const SourceString('Object')); |
| 335 boolClass = lookupSpecialClass(const SourceString('bool')); | 335 boolClass = lookupSpecialClass(const SourceString('bool')); |
| 336 numClass = lookupSpecialClass(const SourceString('num')); | 336 numClass = lookupSpecialClass(const SourceString('num')); |
| 337 intClass = lookupSpecialClass(const SourceString('int')); | 337 intClass = lookupSpecialClass(const SourceString('int')); |
| 338 doubleClass = lookupSpecialClass(const SourceString('double')); | 338 doubleClass = lookupSpecialClass(const SourceString('double')); |
| 339 stringClass = lookupSpecialClass(const SourceString('String')); | 339 stringClass = lookupSpecialClass(const SourceString('String')); |
| 340 functionClass = lookupSpecialClass(const SourceString('Function')); | 340 functionClass = lookupSpecialClass(const SourceString('Function')); |
| 341 listClass = lookupSpecialClass(const SourceString('List')); | 341 listClass = lookupSpecialClass(const SourceString('List')); |
| 342 closureClass = lookupSpecialClass(const SourceString('Closure')); | 342 closureClass = lookupSpecialClass(const SourceString('Closure')); |
| 343 dynamicClass = lookupSpecialClass(const SourceString('Dynamic')); | 343 dynamicClass = lookupSpecialClass(const SourceString('Dynamic_')); |
| 344 nullClass = lookupSpecialClass(const SourceString('Null')); | 344 nullClass = lookupSpecialClass(const SourceString('Null')); |
| 345 types = new Types(this, dynamicClass); | 345 types = new Types(this, dynamicClass); |
| 346 if (!coreLibValid) { | 346 if (!coreLibValid) { |
| 347 cancel('core library does not contain required classes'); | 347 cancel('core library does not contain required classes'); |
| 348 } | 348 } |
| 349 } | 349 } |
| 350 | 350 |
| 351 void scanBuiltinLibraries() { | 351 void scanBuiltinLibraries() { |
| 352 coreImplLibrary = scanBuiltinLibrary('coreimpl'); | 352 coreImplLibrary = scanBuiltinLibrary('coreimpl'); |
| 353 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); | 353 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 final endOffset = end.charOffset + end.slowCharCount; | 922 final endOffset = end.charOffset + end.slowCharCount; |
| 923 | 923 |
| 924 // [begin] and [end] might be the same for the same empty token. This | 924 // [begin] and [end] might be the same for the same empty token. This |
| 925 // happens for instance when scanning '$$'. | 925 // happens for instance when scanning '$$'. |
| 926 assert(endOffset >= beginOffset); | 926 assert(endOffset >= beginOffset); |
| 927 return f(beginOffset, endOffset); | 927 return f(beginOffset, endOffset); |
| 928 } | 928 } |
| 929 | 929 |
| 930 String toString() => 'SourceSpan($uri, $begin, $end)'; | 930 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 931 } | 931 } |
| OLD | NEW |