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

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

Issue 2060183002: Serialize metadata (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. 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 int get resolutionState; 1623 SourceSpan get sourcePosition;
1624 Token get beginToken;
1625 Token get endToken;
1626 1624
1627 bool get hasNode; 1625 bool get hasNode;
1628 Node get node; 1626 Node get node;
1629 1627
1630 MetadataAnnotation ensureResolved(Resolution resolution); 1628 MetadataAnnotation ensureResolved(Resolution resolution);
1631 } 1629 }
1632 1630
1633 /// An [Element] that has a type. 1631 /// An [Element] that has a type.
1634 abstract class TypedElement extends Element { 1632 abstract class TypedElement extends Element {
1635 /// Do not use [computeType] outside of the resolver; instead retrieve the 1633 /// Do not use [computeType] outside of the resolver; instead retrieve the
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 /// by a field. 1843 /// by a field.
1846 bool get isDeclaredByField; 1844 bool get isDeclaredByField;
1847 1845
1848 /// Returns `true` if this member is abstract. 1846 /// Returns `true` if this member is abstract.
1849 bool get isAbstract; 1847 bool get isAbstract;
1850 1848
1851 /// If abstract, [implementation] points to the overridden concrete member, 1849 /// If abstract, [implementation] points to the overridden concrete member,
1852 /// if any. Otherwise [implementation] points to the member itself. 1850 /// if any. Otherwise [implementation] points to the member itself.
1853 Member get implementation; 1851 Member get implementation;
1854 } 1852 }
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