| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 final Map<String, LibraryElement> libraries; | 88 final Map<String, LibraryElement> libraries; |
| 89 int nextFreeClassId = 0; | 89 int nextFreeClassId = 0; |
| 90 World world; | 90 World world; |
| 91 String assembledCode; | 91 String assembledCode; |
| 92 Types types; | 92 Types types; |
| 93 | 93 |
| 94 final bool enableMinification; | 94 final bool enableMinification; |
| 95 final bool enableTypeAssertions; | 95 final bool enableTypeAssertions; |
| 96 final bool enableUserAssertions; | 96 final bool enableUserAssertions; |
| 97 | 97 |
| 98 bool disableInlining = false; |
| 99 |
| 98 // TODO(5074): Remove this field once we don't accept the | 100 // TODO(5074): Remove this field once we don't accept the |
| 99 // deprecated parameter specification. | 101 // deprecated parameter specification. |
| 100 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = false; | 102 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = false; |
| 101 | 103 |
| 102 final Tracer tracer; | 104 final Tracer tracer; |
| 103 | 105 |
| 104 CompilerTask measuredTask; | 106 CompilerTask measuredTask; |
| 105 Element _currentElement; | 107 Element _currentElement; |
| 106 LibraryElement coreLibrary; | 108 LibraryElement coreLibrary; |
| 107 LibraryElement coreImplLibrary; | 109 LibraryElement coreImplLibrary; |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 final endOffset = end.charOffset + end.slowCharCount; | 945 final endOffset = end.charOffset + end.slowCharCount; |
| 944 | 946 |
| 945 // [begin] and [end] might be the same for the same empty token. This | 947 // [begin] and [end] might be the same for the same empty token. This |
| 946 // happens for instance when scanning '$$'. | 948 // happens for instance when scanning '$$'. |
| 947 assert(endOffset >= beginOffset); | 949 assert(endOffset >= beginOffset); |
| 948 return f(beginOffset, endOffset); | 950 return f(beginOffset, endOffset); |
| 949 } | 951 } |
| 950 | 952 |
| 951 String toString() => 'SourceSpan($uri, $begin, $end)'; | 953 String toString() => 'SourceSpan($uri, $begin, $end)'; |
| 952 } | 954 } |
| OLD | NEW |