| OLD | NEW | 
|    1 // Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file |    1 // Copyright (c) 2016, 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 dart2js.mirrors_handler; |    5 library dart2js.mirrors_handler; | 
|    6  |    6  | 
|    7 import '../common.dart'; |    7 import '../common.dart'; | 
|    8 import '../common/resolution.dart'; |    8 import '../common/resolution.dart'; | 
|    9 import '../compiler.dart'; |    9 import '../compiler.dart'; | 
|   10 import '../constants/values.dart'; |   10 import '../constants/values.dart'; | 
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  186             // Use [enclosingElement] instead of [enclosingClass] to ensure that |  186             // Use [enclosingElement] instead of [enclosingClass] to ensure that | 
|  187             // we process patch class metadata for patch and injected members. |  187             // we process patch class metadata for patch and injected members. | 
|  188             processElementMetadata(element.enclosingElement); |  188             processElementMetadata(element.enclosingElement); | 
|  189           } |  189           } | 
|  190         } else { |  190         } else { | 
|  191           processLibraryMetadata(element.library); |  191           processLibraryMetadata(element.library); | 
|  192         } |  192         } | 
|  193       } |  193       } | 
|  194     } |  194     } | 
|  195  |  195  | 
|  196     entities.forEach((MemberElement member) => processElementMetadata(member)); |  196     entities.forEach((member) => processElementMetadata(member)); | 
|  197   } |  197   } | 
|  198  |  198  | 
|  199   void onResolutionComplete() { |  199   void onResolutionComplete() { | 
|  200     _registeredMetadata.clear(); |  200     _registeredMetadata.clear(); | 
|  201   } |  201   } | 
|  202  |  202  | 
|  203   MirrorsCodegenAnalysis close() => new MirrorsCodegenAnalysisImpl( |  203   MirrorsCodegenAnalysis close() => new MirrorsCodegenAnalysisImpl( | 
|  204       _backend, handler._resolution, _metadataConstants); |  204       _backend, handler._resolution, _metadataConstants); | 
|  205 } |  205 } | 
|  206  |  206  | 
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  487  |  487  | 
|  488 /// Records that [constant] is used by the element behind [registry]. |  488 /// Records that [constant] is used by the element behind [registry]. | 
|  489 class Dependency { |  489 class Dependency { | 
|  490   final ConstantValue constant; |  490   final ConstantValue constant; | 
|  491   final Element annotatedElement; |  491   final Element annotatedElement; | 
|  492  |  492  | 
|  493   const Dependency(this.constant, this.annotatedElement); |  493   const Dependency(this.constant, this.annotatedElement); | 
|  494  |  494  | 
|  495   String toString() => '$annotatedElement:${constant.toStructuredText()}'; |  495   String toString() => '$annotatedElement:${constant.toStructuredText()}'; | 
|  496 } |  496 } | 
| OLD | NEW |