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

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

Issue 2070493003: Revert "Remove Registry from registerMetadataConstant" and "Serialize metadata" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 elements; 5 library elements;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Resolution; 8 import '../common/resolution.dart' show Resolution;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 1613
1614 /// The upper bound on the type variable. If not explicitly declared, this is 1614 /// The upper bound on the type variable. If not explicitly declared, this is
1615 /// `Object`. 1615 /// `Object`.
1616 DartType get bound; 1616 DartType get bound;
1617 } 1617 }
1618 1618
1619 abstract class MetadataAnnotation implements Spannable { 1619 abstract class MetadataAnnotation implements Spannable {
1620 /// The front-end constant of this metadata annotation. 1620 /// The front-end constant of this metadata annotation.
1621 ConstantExpression get constant; 1621 ConstantExpression get constant;
1622 Element get annotatedElement; 1622 Element get annotatedElement;
1623 SourceSpan get sourcePosition; 1623 int get resolutionState;
1624 Token get beginToken;
1625 Token get endToken;
1624 1626
1625 bool get hasNode; 1627 bool get hasNode;
1626 Node get node; 1628 Node get node;
1627 1629
1628 MetadataAnnotation ensureResolved(Resolution resolution); 1630 MetadataAnnotation ensureResolved(Resolution resolution);
1629 } 1631 }
1630 1632
1631 /// An [Element] that has a type. 1633 /// An [Element] that has a type.
1632 abstract class TypedElement extends Element { 1634 abstract class TypedElement extends Element {
1633 /// Do not use [computeType] outside of the resolver; instead retrieve the 1635 /// Do not use [computeType] outside of the resolver; instead retrieve the
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 /// by a field. 1845 /// by a field.
1844 bool get isDeclaredByField; 1846 bool get isDeclaredByField;
1845 1847
1846 /// Returns `true` if this member is abstract. 1848 /// Returns `true` if this member is abstract.
1847 bool get isAbstract; 1849 bool get isAbstract;
1848 1850
1849 /// If abstract, [implementation] points to the overridden concrete member, 1851 /// If abstract, [implementation] points to the overridden concrete member,
1850 /// if any. Otherwise [implementation] points to the member itself. 1852 /// if any. Otherwise [implementation] points to the member itself.
1851 Member get implementation; 1853 Member get implementation;
1852 } 1854 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698