| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 abstract void enqueueHelpers(Enqueuer world); | 54 abstract void enqueueHelpers(Enqueuer world); |
| 55 abstract void codegen(WorkItem work); | 55 abstract void codegen(WorkItem work); |
| 56 abstract void processNativeClasses(Enqueuer world, | 56 abstract void processNativeClasses(Enqueuer world, |
| 57 Collection<LibraryElement> libraries); | 57 Collection<LibraryElement> libraries); |
| 58 abstract void assembleProgram(); | 58 abstract void assembleProgram(); |
| 59 abstract List<CompilerTask> get tasks; | 59 abstract List<CompilerTask> get tasks; |
| 60 | 60 |
| 61 ItemCompilationContext createItemCompilationContext() { | 61 ItemCompilationContext createItemCompilationContext() { |
| 62 return new ItemCompilationContext(); | 62 return new ItemCompilationContext(); |
| 63 } | 63 } |
| 64 |
| 65 SourceString getCheckedModeHelper(Type type) => null; |
| 64 } | 66 } |
| 65 | 67 |
| 66 class Compiler implements DiagnosticListener { | 68 class Compiler implements DiagnosticListener { |
| 67 final Map<String, LibraryElement> libraries; | 69 final Map<String, LibraryElement> libraries; |
| 68 int nextFreeClassId = 0; | 70 int nextFreeClassId = 0; |
| 69 World world; | 71 World world; |
| 70 String assembledCode; | 72 String assembledCode; |
| 71 Namer namer; | 73 Namer namer; |
| 72 Types types; | 74 Types types; |
| 73 | 75 |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 final endOffset = end.charOffset + end.slowCharCount; | 898 final endOffset = end.charOffset + end.slowCharCount; |
| 897 | 899 |
| 898 // [begin] and [end] might be the same for the same empty token. This | 900 // [begin] and [end] might be the same for the same empty token. This |
| 899 // happens for instance when scanning '$$'. | 901 // happens for instance when scanning '$$'. |
| 900 assert(endOffset >= beginOffset); | 902 assert(endOffset >= beginOffset); |
| 901 return f(beginOffset, endOffset); | 903 return f(beginOffset, endOffset); |
| 902 } | 904 } |
| 903 | 905 |
| 904 String toString() => 'SourceSpan($uri, $begin, $end)'; | 906 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 905 } | 907 } |
| OLD | NEW |