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

Side by Side Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 1394063004: Use common.dart to re-export commonly used entities. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Implementation of the element model used for deserialiation. 5 /// Implementation of the element model used for deserialiation.
6 /// 6 ///
7 /// These classes are created by [ElementDeserializer] triggered by the 7 /// These classes are created by [ElementDeserializer] triggered by the
8 /// [Deserializer]. 8 /// [Deserializer].
9 9
10 library dart2js.serialization.modelz; 10 library dart2js.serialization.modelz;
11 11
12 import 'serialization.dart'; 12 import '../common.dart';
13 import 'keys.dart';
14 import '../common/resolution.dart' show 13 import '../common/resolution.dart' show
15 Resolution; 14 Resolution;
16 import '../compiler.dart' 15 import '../compiler.dart'
17 show Compiler; 16 show Compiler;
18 import '../constants/constructors.dart'; 17 import '../constants/constructors.dart';
19 import '../constants/expressions.dart'; 18 import '../constants/expressions.dart';
20 import '../diagnostics/source_span.dart'
21 show SourceSpan;
22 import '../dart_types.dart'; 19 import '../dart_types.dart';
23 import '../elements/elements.dart'; 20 import '../elements/elements.dart';
24 import '../elements/modelx.dart' show 21 import '../elements/modelx.dart' show
25 FunctionSignatureX; 22 FunctionSignatureX;
26 import '../elements/common.dart'; 23 import '../elements/common.dart';
27 import '../elements/visitor.dart'; 24 import '../elements/visitor.dart';
28 import '../io/source_file.dart'; 25 import '../io/source_file.dart';
29 import '../ordered_typeset.dart'; 26 import '../ordered_typeset.dart';
30 import '../resolution/class_members.dart' as class_members; 27 import '../resolution/class_members.dart' as class_members;
31 import '../resolution/tree_elements.dart' show 28 import '../resolution/tree_elements.dart' show
32 TreeElements; 29 TreeElements;
33 import '../resolution/scope.dart' show 30 import '../resolution/scope.dart' show
34 Scope; 31 Scope;
35 import '../script.dart'; 32 import '../script.dart';
36 import '../serialization/constant_serialization.dart'; 33 import '../serialization/constant_serialization.dart';
37 import '../tokens/token.dart' show 34 import '../tokens/token.dart' show
38 Token; 35 Token;
39 import '../tree/tree.dart'; 36 import '../tree/tree.dart';
40 import '../util/util.dart' show 37 import '../util/util.dart' show
41 Link, 38 Link,
42 LinkBuilder; 39 LinkBuilder;
43 40
41 import 'keys.dart';
42 import 'serialization.dart';
43
44 /// Compute a [Link] from an [Iterable]. 44 /// Compute a [Link] from an [Iterable].
45 Link toLink(Iterable iterable) { 45 Link toLink(Iterable iterable) {
46 LinkBuilder builder = new LinkBuilder(); 46 LinkBuilder builder = new LinkBuilder();
47 for (var element in iterable) { 47 for (var element in iterable) {
48 builder.addLast(element); 48 builder.addLast(element);
49 } 49 }
50 return builder.toLink(); 50 return builder.toLink();
51 } 51 }
52 52
53 abstract class ElementZ extends Element with ElementCommon { 53 abstract class ElementZ extends Element with ElementCommon {
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 } 1566 }
1567 1567
1568 @override 1568 @override
1569 ElementKind get kind => ElementKind.PREFIX; 1569 ElementKind get kind => ElementKind.PREFIX;
1570 1570
1571 @override 1571 @override
1572 Element lookupLocalMember(String memberName) { 1572 Element lookupLocalMember(String memberName) {
1573 return _unsupported('lookupLocalMember'); 1573 return _unsupported('lookupLocalMember');
1574 } 1574 }
1575 } 1575 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/element_serialization.dart ('k') | pkg/compiler/lib/src/ssa/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698