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

Side by Side Diff: pkg/compiler/lib/src/mirrors_used.dart

Issue 1284673003: Move dart2jslib parts into separate libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try. 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_used; 5 library dart2js.mirrors_used;
6 6
7 import 'compile_time_constants.dart' show 7 import 'compile_time_constants.dart' show
8 ConstantCompiler; 8 ConstantCompiler;
9 import 'constants/expressions.dart'; 9 import 'constants/expressions.dart';
10 import 'constants/values.dart' show 10 import 'constants/values.dart' show
11 ConstantValue, 11 ConstantValue,
12 ConstructedConstantValue, 12 ConstructedConstantValue,
13 ListConstantValue, 13 ListConstantValue,
14 StringConstantValue, 14 StringConstantValue,
15 TypeConstantValue; 15 TypeConstantValue;
16
17 import 'dart_types.dart' show 16 import 'dart_types.dart' show
18 DartType, 17 DartType,
19 InterfaceType, 18 InterfaceType,
20 TypeKind; 19 TypeKind;
21
22 import 'dart2jslib.dart' show 20 import 'dart2jslib.dart' show
23 Compiler, 21 Compiler,
24 CompilerTask, 22 CompilerTask,
25 MessageKind,
26 TreeElements,
27 invariant; 23 invariant;
28
29 import 'elements/elements.dart' show 24 import 'elements/elements.dart' show
30 ClassElement, 25 ClassElement,
31 Element, 26 Element,
32 LibraryElement, 27 LibraryElement,
33 MetadataAnnotation, 28 MetadataAnnotation,
34 ScopeContainerElement, 29 ScopeContainerElement,
35 VariableElement; 30 VariableElement;
36 31 import 'messages.dart' show
32 MessageKind;
33 import 'resolution/resolution.dart' show
34 TreeElements;
37 import 'tree/tree.dart' show 35 import 'tree/tree.dart' show
38 Import, 36 Import,
39 LibraryTag, 37 LibraryTag,
40 NamedArgument, 38 NamedArgument,
41 NewExpression, 39 NewExpression,
42 Node; 40 Node;
43
44 import 'util/util.dart' show 41 import 'util/util.dart' show
45 Link, 42 Link,
46 Spannable; 43 Spannable;
47 44
48 /** 45 /**
49 * Compiler task that analyzes MirrorsUsed annotations. 46 * Compiler task that analyzes MirrorsUsed annotations.
50 * 47 *
51 * When importing 'dart:mirrors', it is possible to annotate the import with 48 * When importing 'dart:mirrors', it is possible to annotate the import with
52 * MirrorsUsed annotation. This is a way to declare what elements will be 49 * MirrorsUsed annotation. This is a way to declare what elements will be
53 * reflected on at runtime. Such elements, even they would normally be 50 * reflected on at runtime. Such elements, even they would normally be
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 // @MirrorsUsed(targets: fisk) 587 // @MirrorsUsed(targets: fisk)
591 // ^^^^ 588 // ^^^^
592 // 589 //
593 // Instead of saying 'fisk' should pretty print the problematic constant 590 // Instead of saying 'fisk' should pretty print the problematic constant
594 // value. 591 // value.
595 return spannable; 592 return spannable;
596 } 593 }
597 return node; 594 return node;
598 } 595 }
599 } 596 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/mirrors/dart2js_mirrors.dart ('k') | pkg/compiler/lib/src/native/native.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698