| 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 mirrors_dart2js; | 5 library mirrors_dart2js; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection' show LinkedHashMap; | 8 import 'dart:collection' show LinkedHashMap; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'dart:uri'; | 10 import 'dart:uri'; |
| 11 | 11 |
| 12 import '../../compiler.dart' as diagnostics; | 12 import '../../compiler.dart' as diagnostics; |
| 13 import '../elements/elements.dart'; | 13 import '../elements/elements.dart'; |
| 14 import '../resolution/resolution.dart' show ResolverTask, ResolverVisitor; | 14 import '../resolution/resolution.dart' show ResolverTask, ResolverVisitor; |
| 15 import '../apiimpl.dart' as api; | 15 import '../apiimpl.dart' as api; |
| 16 import '../scanner/scannerlib.dart' hide SourceString; | 16 import '../scanner/scannerlib.dart' hide SourceString; |
| 17 import '../ssa/ssa.dart'; | 17 import '../ssa/ssa.dart'; |
| 18 import '../dart2jslib.dart'; | 18 import '../dart2jslib.dart'; |
| 19 import '../filenames.dart'; | 19 import '../filenames.dart'; |
| 20 import '../source_file.dart'; | 20 import '../source_file.dart'; |
| 21 import '../tree/tree.dart'; | 21 import '../tree/tree.dart'; |
| 22 import '../util/util.dart'; | 22 import '../util/util.dart'; |
| 23 import '../util/uri_extras.dart'; | 23 import '../util/uri_extras.dart'; |
| 24 import '../dart2js.dart'; | 24 import '../dart2js.dart'; |
| 25 import '../util/characters.dart'; | 25 import '../util/characters.dart'; |
| 26 import '../source_file_provider.dart'; |
| 26 | 27 |
| 27 import 'mirrors.dart'; | 28 import 'mirrors.dart'; |
| 28 import 'mirrors_util.dart'; | 29 import 'mirrors_util.dart'; |
| 29 import 'util.dart'; | 30 import 'util.dart'; |
| 30 | 31 |
| 31 //------------------------------------------------------------------------------ | 32 //------------------------------------------------------------------------------ |
| 32 // Utility types and functions for the dart2js mirror system | 33 // Utility types and functions for the dart2js mirror system |
| 33 //------------------------------------------------------------------------------ | 34 //------------------------------------------------------------------------------ |
| 34 | 35 |
| 35 bool _isPrivate(String name) { | 36 bool _isPrivate(String name) { |
| (...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1860 return new Future.immediate( | 1861 return new Future.immediate( |
| 1861 new Dart2JsStringConstantMirror.fromString(mirrors, text)); | 1862 new Dart2JsStringConstantMirror.fromString(mirrors, text)); |
| 1862 } else if (fieldName == 'trimmedText') { | 1863 } else if (fieldName == 'trimmedText') { |
| 1863 return new Future.immediate( | 1864 return new Future.immediate( |
| 1864 new Dart2JsStringConstantMirror.fromString(mirrors, trimmedText)); | 1865 new Dart2JsStringConstantMirror.fromString(mirrors, trimmedText)); |
| 1865 } | 1866 } |
| 1866 // TODO(johnniwinther): Which exception/error should be thrown here? | 1867 // TODO(johnniwinther): Which exception/error should be thrown here? |
| 1867 throw new UnsupportedError('InstanceMirror does not have a reflectee'); | 1868 throw new UnsupportedError('InstanceMirror does not have a reflectee'); |
| 1868 } | 1869 } |
| 1869 } | 1870 } |
| OLD | NEW |