| 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 dart2js.mirrors; |    5 library dart2js.mirrors; | 
|    6  |    6  | 
|    7 import 'dart:collection' show UnmodifiableListView, UnmodifiableMapView; |    7 import 'dart:collection' show UnmodifiableListView, UnmodifiableMapView; | 
|    8  |    8  | 
|    9 import '../compiler.dart' show |    9 import '../compiler.dart' show | 
|   10     Compiler; |   10     Compiler; | 
|   11 import '../constants/expressions.dart'; |   11 import '../constants/expressions.dart'; | 
|   12 import '../constants/values.dart'; |   12 import '../constants/values.dart'; | 
|   13 import '../dart_types.dart'; |   13 import '../dart_types.dart'; | 
|   14 import '../diagnostics/invariant.dart' show |   14 import '../diagnostics/invariant.dart' show | 
|   15     invariant; |   15     invariant; | 
|   16 import '../diagnostics/source_span.dart' show |   16 import '../diagnostics/source_span.dart' show | 
|   17     SourceSpan; |   17     SourceSpan; | 
|   18 import '../diagnostics/spannable.dart' show |   18 import '../diagnostics/spannable.dart' show | 
|   19     NO_LOCATION_SPANNABLE; |   19     NO_LOCATION_SPANNABLE; | 
|   20 import '../elements/elements.dart'; |   20 import '../elements/elements.dart'; | 
|   21 import '../resolution/scope.dart' show |   21 import '../resolution/scope.dart' show | 
|   22     Scope; |   22     Scope; | 
|   23 import '../scanner/token.dart'; |  | 
|   24 import '../script.dart'; |   23 import '../script.dart'; | 
 |   24 import '../tokens/token.dart'; | 
|   25 import '../tree/tree.dart'; |   25 import '../tree/tree.dart'; | 
|   26 import '../util/util.dart' |   26 import '../util/util.dart' | 
|   27     show Link, |   27     show Link, | 
|   28          LinkBuilder; |   28          LinkBuilder; | 
|   29 import '../util/characters.dart' show $CR, $LF; |   29 import '../util/characters.dart' show $CR, $LF; | 
|   30  |   30  | 
|   31 import 'source_mirrors.dart'; |   31 import 'source_mirrors.dart'; | 
|   32 import 'mirrors_util.dart'; |   32 import 'mirrors_util.dart'; | 
|   33  |   33  | 
|   34 part 'dart2js_library_mirror.dart'; |   34 part 'dart2js_library_mirror.dart'; | 
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  483     if (!parameter.hasDefaultValue) return null; |  483     if (!parameter.hasDefaultValue) return null; | 
|  484     ParameterElement parameterElement = parameter._element; |  484     ParameterElement parameterElement = parameter._element; | 
|  485     Compiler compiler = parameter.mirrorSystem.compiler; |  485     Compiler compiler = parameter.mirrorSystem.compiler; | 
|  486     return compiler.constants.getConstantForVariable(parameterElement); |  486     return compiler.constants.getConstantForVariable(parameterElement); | 
|  487   } |  487   } | 
|  488  |  488  | 
|  489   static Mirror getMirrorFromElement(Dart2JsMirror mirror, Element element) { |  489   static Mirror getMirrorFromElement(Dart2JsMirror mirror, Element element) { | 
|  490     return _convertElementToDeclarationMirror(mirror.mirrorSystem, element); |  490     return _convertElementToDeclarationMirror(mirror.mirrorSystem, element); | 
|  491   } |  491   } | 
|  492 } |  492 } | 
| OLD | NEW |