| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 */ | 113 */ |
| 114 | 114 |
| 115 library dart2js.patchparser; | 115 library dart2js.patchparser; |
| 116 | 116 |
| 117 import 'dart:async'; | 117 import 'dart:async'; |
| 118 | 118 |
| 119 import 'common/tasks.dart' show CompilerTask; | 119 import 'common/tasks.dart' show CompilerTask; |
| 120 import 'common.dart'; | 120 import 'common.dart'; |
| 121 import 'compiler.dart' show Compiler; | 121 import 'compiler.dart' show Compiler; |
| 122 import 'constants/values.dart' show ConstantValue; | 122 import 'constants/values.dart' show ConstantValue; |
| 123 import 'dart_types.dart' show DartType; | 123 import 'elements/resolution_types.dart' show DartType; |
| 124 import 'elements/elements.dart'; | 124 import 'elements/elements.dart'; |
| 125 import 'elements/modelx.dart' | 125 import 'elements/modelx.dart' |
| 126 show | 126 show |
| 127 BaseFunctionElementX, | 127 BaseFunctionElementX, |
| 128 ClassElementX, | 128 ClassElementX, |
| 129 GetterElementX, | 129 GetterElementX, |
| 130 LibraryElementX, | 130 LibraryElementX, |
| 131 MetadataAnnotationX, | 131 MetadataAnnotationX, |
| 132 SetterElementX; | 132 SetterElementX; |
| 133 import 'id_generator.dart'; | 133 import 'id_generator.dart'; |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 | 615 |
| 616 class PatchVersion { | 616 class PatchVersion { |
| 617 final String tag; | 617 final String tag; |
| 618 | 618 |
| 619 const PatchVersion(this.tag); | 619 const PatchVersion(this.tag); |
| 620 | 620 |
| 621 bool isActive(String patchTag) => tag == null || tag == patchTag; | 621 bool isActive(String patchTag) => tag == null || tag == patchTag; |
| 622 | 622 |
| 623 String toString() => 'PatchVersion($tag)'; | 623 String toString() => 'PatchVersion($tag)'; |
| 624 } | 624 } |
| OLD | NEW |