| 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 * This library contains the infrastructure to parse and integrate patch files. | 6 * This library contains the infrastructure to parse and integrate patch files. |
| 7 * | 7 * |
| 8 * Three types of elements can be patched: [LibraryElement], [ClassElement], | 8 * Three types of elements can be patched: [LibraryElement], [ClassElement], |
| 9 * [FunctionElement]. Patches are introduced in patch libraries which are loaded | 9 * [FunctionElement]. Patches are introduced in patch libraries which are loaded |
| 10 * together with the corresponding origin library. Which libraries that are | 10 * together with the corresponding origin library. Which libraries that are |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 CompilerTask, | 122 CompilerTask, |
| 123 DiagnosticListener, | 123 DiagnosticListener, |
| 124 MessageKind, | 124 MessageKind, |
| 125 Script; | 125 Script; |
| 126 import 'elements/elements.dart'; | 126 import 'elements/elements.dart'; |
| 127 import 'elements/modelx.dart' | 127 import 'elements/modelx.dart' |
| 128 show LibraryElementX, | 128 show LibraryElementX, |
| 129 MetadataAnnotationX, | 129 MetadataAnnotationX, |
| 130 ClassElementX, | 130 ClassElementX, |
| 131 BaseFunctionElementX; | 131 BaseFunctionElementX; |
| 132 import 'helpers/helpers.dart'; // Included for debug helpers. | |
| 133 import 'library_loader.dart' show LibraryLoader; | 132 import 'library_loader.dart' show LibraryLoader; |
| 134 import 'scanner/scannerlib.dart'; // Scanner, Parsers, Listeners | 133 import 'scanner/scannerlib.dart'; // Scanner, Parsers, Listeners |
| 135 import 'util/util.dart'; | 134 import 'util/util.dart'; |
| 136 | 135 |
| 137 class PatchParserTask extends CompilerTask { | 136 class PatchParserTask extends CompilerTask { |
| 138 final String name = "Patching Parser"; | 137 final String name = "Patching Parser"; |
| 139 | 138 |
| 140 PatchParserTask(Compiler compiler): super(compiler); | 139 PatchParserTask(Compiler compiler): super(compiler); |
| 141 | 140 |
| 142 /** | 141 /** |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 | 564 |
| 566 class PatchVersion { | 565 class PatchVersion { |
| 567 final String tag; | 566 final String tag; |
| 568 | 567 |
| 569 const PatchVersion(this.tag); | 568 const PatchVersion(this.tag); |
| 570 | 569 |
| 571 bool isActive(String patchTag) => tag == null || tag == patchTag; | 570 bool isActive(String patchTag) => tag == null || tag == patchTag; |
| 572 | 571 |
| 573 String toString() => 'PatchVersion($tag)'; | 572 String toString() => 'PatchVersion($tag)'; |
| 574 } | 573 } |
| OLD | NEW |