Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart

Issue 11867024: Move some core classes to collection library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with bug number. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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:io'; 9 import 'dart:io';
9 import 'dart:uri'; 10 import 'dart:uri';
10 11
11 import '../../compiler.dart' as diagnostics; 12 import '../../compiler.dart' as diagnostics;
12 import '../elements/elements.dart'; 13 import '../elements/elements.dart';
13 import '../resolution/resolution.dart' show ResolverTask, ResolverVisitor; 14 import '../resolution/resolution.dart' show ResolverTask, ResolverVisitor;
14 import '../apiimpl.dart' as api; 15 import '../apiimpl.dart' as api;
15 import '../scanner/scannerlib.dart' hide SourceString; 16 import '../scanner/scannerlib.dart' hide SourceString;
16 import '../ssa/ssa.dart'; 17 import '../ssa/ssa.dart';
17 import '../dart2jslib.dart'; 18 import '../dart2jslib.dart';
(...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 return new Future.immediate( 1860 return new Future.immediate(
1860 new Dart2JsStringConstantMirror.fromString(mirrors, text)); 1861 new Dart2JsStringConstantMirror.fromString(mirrors, text));
1861 } else if (fieldName == 'trimmedText') { 1862 } else if (fieldName == 'trimmedText') {
1862 return new Future.immediate( 1863 return new Future.immediate(
1863 new Dart2JsStringConstantMirror.fromString(mirrors, trimmedText)); 1864 new Dart2JsStringConstantMirror.fromString(mirrors, trimmedText));
1864 } 1865 }
1865 // TODO(johnniwinther): Which exception/error should be thrown here? 1866 // TODO(johnniwinther): Which exception/error should be thrown here?
1866 throw new UnsupportedError('InstanceMirror does not have a reflectee'); 1867 throw new UnsupportedError('InstanceMirror does not have a reflectee');
1867 } 1868 }
1868 } 1869 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698