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

Side by Side Diff: pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/mirrors/analyze.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
10 Compiler;
9 import '../constants/expressions.dart'; 11 import '../constants/expressions.dart';
10 import '../constants/values.dart'; 12 import '../constants/values.dart';
11 import '../dart2jslib.dart';
12 import '../dart_types.dart'; 13 import '../dart_types.dart';
14 import '../diagnostics/invariant.dart' show
15 invariant;
16 import '../diagnostics/source_span.dart' show
17 SourceSpan;
18 import '../diagnostics/spannable.dart' show
19 NO_LOCATION_SPANNABLE;
13 import '../elements/elements.dart'; 20 import '../elements/elements.dart';
14 import '../resolution/resolution.dart' show Scope; 21 import '../resolution/resolution.dart' show
22 Scope;
15 import '../scanner/scannerlib.dart'; 23 import '../scanner/scannerlib.dart';
16 import '../script.dart'; 24 import '../script.dart';
17 import '../tree/tree.dart'; 25 import '../tree/tree.dart';
18 import '../util/util.dart' 26 import '../util/util.dart'
19 show Link, 27 show Link,
20 LinkBuilder, 28 LinkBuilder;
21 NO_LOCATION_SPANNABLE;
22 import '../util/characters.dart' show $CR, $LF; 29 import '../util/characters.dart' show $CR, $LF;
23 30
24 import 'source_mirrors.dart'; 31 import 'source_mirrors.dart';
25 import 'mirrors_util.dart'; 32 import 'mirrors_util.dart';
26 33
27 part 'dart2js_library_mirror.dart'; 34 part 'dart2js_library_mirror.dart';
28 part 'dart2js_type_mirrors.dart'; 35 part 'dart2js_type_mirrors.dart';
29 part 'dart2js_member_mirrors.dart'; 36 part 'dart2js_member_mirrors.dart';
30 part 'dart2js_instance_mirrors.dart'; 37 part 'dart2js_instance_mirrors.dart';
31 38
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 if (!parameter.hasDefaultValue) return null; 483 if (!parameter.hasDefaultValue) return null;
477 ParameterElement parameterElement = parameter._element; 484 ParameterElement parameterElement = parameter._element;
478 Compiler compiler = parameter.mirrorSystem.compiler; 485 Compiler compiler = parameter.mirrorSystem.compiler;
479 return compiler.constants.getConstantForVariable(parameterElement); 486 return compiler.constants.getConstantForVariable(parameterElement);
480 } 487 }
481 488
482 static Mirror getMirrorFromElement(Dart2JsMirror mirror, Element element) { 489 static Mirror getMirrorFromElement(Dart2JsMirror mirror, Element element) {
483 return _convertElementToDeclarationMirror(mirror.mirrorSystem, element); 490 return _convertElementToDeclarationMirror(mirror.mirrorSystem, element);
484 } 491 }
485 } 492 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/mirrors/analyze.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698