| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 final Map<String, LibraryElement> libraries; | 83 final Map<String, LibraryElement> libraries; |
| 84 int nextFreeClassId = 0; | 84 int nextFreeClassId = 0; |
| 85 World world; | 85 World world; |
| 86 String assembledCode; | 86 String assembledCode; |
| 87 Types types; | 87 Types types; |
| 88 | 88 |
| 89 final bool enableMinification; | 89 final bool enableMinification; |
| 90 final bool enableTypeAssertions; | 90 final bool enableTypeAssertions; |
| 91 final bool enableUserAssertions; | 91 final bool enableUserAssertions; |
| 92 | 92 |
| 93 // TODO(5074): Remove this field once we don't accept the |
| 94 // deprecated parameter specification. |
| 95 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = false; |
| 96 |
| 93 final Tracer tracer; | 97 final Tracer tracer; |
| 94 | 98 |
| 95 CompilerTask measuredTask; | 99 CompilerTask measuredTask; |
| 96 Element _currentElement; | 100 Element _currentElement; |
| 97 LibraryElement coreLibrary; | 101 LibraryElement coreLibrary; |
| 98 LibraryElement coreImplLibrary; | 102 LibraryElement coreImplLibrary; |
| 99 LibraryElement isolateLibrary; | 103 LibraryElement isolateLibrary; |
| 100 LibraryElement jsHelperLibrary; | 104 LibraryElement jsHelperLibrary; |
| 101 LibraryElement interceptorsLibrary; | 105 LibraryElement interceptorsLibrary; |
| 102 LibraryElement mainApp; | 106 LibraryElement mainApp; |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 final endOffset = end.charOffset + end.slowCharCount; | 924 final endOffset = end.charOffset + end.slowCharCount; |
| 921 | 925 |
| 922 // [begin] and [end] might be the same for the same empty token. This | 926 // [begin] and [end] might be the same for the same empty token. This |
| 923 // happens for instance when scanning '$$'. | 927 // happens for instance when scanning '$$'. |
| 924 assert(endOffset >= beginOffset); | 928 assert(endOffset >= beginOffset); |
| 925 return f(beginOffset, endOffset); | 929 return f(beginOffset, endOffset); |
| 926 } | 930 } |
| 927 | 931 |
| 928 String toString() => 'SourceSpan($uri, $begin, $end)'; | 932 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 929 } | 933 } |
| OLD | NEW |