| 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 #library("patchparser"); | 5 #library("patchparser"); |
| 6 #import("dart:uri"); | 6 #import("dart:uri"); |
| 7 | 7 |
| 8 #import("tree/tree.dart", prefix: "tree"); | 8 #import("tree/tree.dart", prefix: "tree"); |
| 9 #import("leg.dart", prefix: 'leg'); // CompilerTask, Compiler. | 9 #import("leg.dart", prefix: 'leg'); // CompilerTask, Compiler. |
| 10 #import("apiimpl.dart"); | 10 #import("apiimpl.dart"); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 void addMember(Element element) { | 291 void addMember(Element element) { |
| 292 if (isMemberPatch || (isClassPatch && element is ClassElement)) { | 292 if (isMemberPatch || (isClassPatch && element is ClassElement)) { |
| 293 element.addMetadata(popMetadata()); | 293 element.addMetadata(popMetadata()); |
| 294 } | 294 } |
| 295 super.addMember(element); | 295 super.addMember(element); |
| 296 } | 296 } |
| 297 } | 297 } |
| 298 | 298 |
| 299 // TODO(ahe): Get rid of this class. | 299 // TODO(ahe): Get rid of this class. |
| 300 // Note: we never set [annotatedElement] for this class. |
| 300 class PatchMetadataAnnotation extends MetadataAnnotation { | 301 class PatchMetadataAnnotation extends MetadataAnnotation { |
| 301 final Constant value = null; | 302 final Constant value = null; |
| 303 |
| 304 PatchMetadataAnnotation() : super(ClassElement.STATE_DONE); |
| 302 } | 305 } |
| OLD | NEW |