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

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

Issue 1873573004: Serialize TreeElements (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Check only the last test to avoid timeout. Created 4 years, 8 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;
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 TopLevelFieldElementZ(ObjectDecoder decoder) : super(decoder); 1299 TopLevelFieldElementZ(ObjectDecoder decoder) : super(decoder);
1300 } 1300 }
1301 1301
1302 class StaticFieldElementZ extends FieldElementZ 1302 class StaticFieldElementZ extends FieldElementZ
1303 with ClassMemberMixin, StaticMemberMixin { 1303 with ClassMemberMixin, StaticMemberMixin {
1304 StaticFieldElementZ(ObjectDecoder decoder) : super(decoder); 1304 StaticFieldElementZ(ObjectDecoder decoder) : super(decoder);
1305 } 1305 }
1306 1306
1307 class EnumConstantElementZ extends StaticFieldElementZ 1307 class EnumConstantElementZ extends StaticFieldElementZ
1308 implements EnumConstantElement { 1308 implements EnumConstantElement {
1309 EnumConstantElementZ(ObjectDecoder decoder) 1309 EnumConstantElementZ(ObjectDecoder decoder) : super(decoder);
1310 : super(decoder);
1311 1310
1312 int get index => _decoder.getInt(Key.INDEX); 1311 int get index => _decoder.getInt(Key.INDEX);
1313 } 1312 }
1314 1313
1315 class InstanceFieldElementZ extends FieldElementZ 1314 class InstanceFieldElementZ extends FieldElementZ
1316 with ClassMemberMixin, InstanceMemberMixin { 1315 with ClassMemberMixin, InstanceMemberMixin {
1317 InstanceFieldElementZ(ObjectDecoder decoder) : super(decoder); 1316 InstanceFieldElementZ(ObjectDecoder decoder) : super(decoder);
1318 } 1317 }
1319 1318
1320 abstract class FunctionElementZ extends DeserializedElementZ 1319 abstract class FunctionElementZ extends DeserializedElementZ
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 1780
1782 @override 1781 @override
1783 accept(ElementVisitor visitor, arg) { 1782 accept(ElementVisitor visitor, arg) {
1784 return visitor.visitFieldParameterElement(this, arg); 1783 return visitor.visitFieldParameterElement(this, arg);
1785 } 1784 }
1786 1785
1787 @override 1786 @override
1788 ElementKind get kind => ElementKind.INITIALIZING_FORMAL; 1787 ElementKind get kind => ElementKind.INITIALIZING_FORMAL;
1789 } 1788 }
1790 1789
1791
1792 class LocalVariableElementZ extends DeserializedElementZ 1790 class LocalVariableElementZ extends DeserializedElementZ
1793 with 1791 with
1794 AnalyzableElementMixin, 1792 AnalyzableElementMixin,
1795 AstElementMixin, 1793 AstElementMixin,
1796 LocalExecutableMixin, 1794 LocalExecutableMixin,
1797 TypedElementMixin 1795 TypedElementMixin
1798 implements LocalVariableElement { 1796 implements LocalVariableElement {
1799 bool _isConst; 1797 bool _isConst;
1800 ConstantExpression _constant; 1798 ConstantExpression _constant;
1801 1799
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 } 1958 }
1961 1959
1962 @override 1960 @override
1963 ElementKind get kind => ElementKind.PREFIX; 1961 ElementKind get kind => ElementKind.PREFIX;
1964 1962
1965 @override 1963 @override
1966 Element lookupLocalMember(String memberName) { 1964 Element lookupLocalMember(String memberName) {
1967 return _unsupported('lookupLocalMember'); 1965 return _unsupported('lookupLocalMember');
1968 } 1966 }
1969 } 1967 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/keys.dart ('k') | pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698