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

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

Issue 1335983004: Add ImportElement and ExportElement (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 3 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
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 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 '../elements/modelx.dart' show
22 LibraryElementX;
21 import '../resolution/scope.dart' show 23 import '../resolution/scope.dart' show
22 Scope; 24 Scope;
23 import '../script.dart'; 25 import '../script.dart';
24 import '../tokens/token.dart'; 26 import '../tokens/token.dart';
25 import '../tokens/token_constants.dart' as Tokens; 27 import '../tokens/token_constants.dart' as Tokens;
26 import '../tree/tree.dart'; 28 import '../tree/tree.dart';
27 import '../util/util.dart' 29 import '../util/util.dart'
28 show Link, 30 show Link,
29 LinkBuilder; 31 LinkBuilder;
30 import '../util/characters.dart' show $CR, $LF; 32 import '../util/characters.dart' show $CR, $LF;
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 if (!parameter.hasDefaultValue) return null; 486 if (!parameter.hasDefaultValue) return null;
485 ParameterElement parameterElement = parameter._element; 487 ParameterElement parameterElement = parameter._element;
486 Compiler compiler = parameter.mirrorSystem.compiler; 488 Compiler compiler = parameter.mirrorSystem.compiler;
487 return compiler.constants.getConstantForVariable(parameterElement); 489 return compiler.constants.getConstantForVariable(parameterElement);
488 } 490 }
489 491
490 static Mirror getMirrorFromElement(Dart2JsMirror mirror, Element element) { 492 static Mirror getMirrorFromElement(Dart2JsMirror mirror, Element element) {
491 return _convertElementToDeclarationMirror(mirror.mirrorSystem, element); 493 return _convertElementToDeclarationMirror(mirror.mirrorSystem, element);
492 } 494 }
493 } 495 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart ('k') | pkg/compiler/lib/src/mirrors_used.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698