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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 614993002: Rename Constant to ConstantValue and ConstExp to ConstantExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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 | Annotate | Revision Log
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 elements.modelx; 5 library elements.modelx;
6 6
7 import 'elements.dart'; 7 import 'elements.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../helpers/helpers.dart'; // Included for debug helpers. 9 import '../helpers/helpers.dart'; // Included for debug helpers.
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 2609 matching lines...) Expand 10 before | Expand all | Expand 10 after
2620 * there is an at-sign, '@'. The [constant] of each of these instances 2620 * there is an at-sign, '@'. The [constant] of each of these instances
2621 * are the same compile-time constant, [: const Data() :]. 2621 * are the same compile-time constant, [: const Data() :].
2622 * 2622 *
2623 * The mirror system does not have a concept matching this class. 2623 * The mirror system does not have a concept matching this class.
2624 */ 2624 */
2625 abstract class MetadataAnnotationX implements MetadataAnnotation { 2625 abstract class MetadataAnnotationX implements MetadataAnnotation {
2626 /** 2626 /**
2627 * The compile-time constant which this annotation resolves to. 2627 * The compile-time constant which this annotation resolves to.
2628 * In the mirror system, this would be an object mirror. 2628 * In the mirror system, this would be an object mirror.
2629 */ 2629 */
2630 ConstExp constant; 2630 ConstantExpression constant;
2631 Element annotatedElement; 2631 Element annotatedElement;
2632 int resolutionState; 2632 int resolutionState;
2633 2633
2634 /** 2634 /**
2635 * The beginning token of this annotation, or [:null:] if it is synthetic. 2635 * The beginning token of this annotation, or [:null:] if it is synthetic.
2636 */ 2636 */
2637 Token get beginToken; 2637 Token get beginToken;
2638 2638
2639 MetadataAnnotationX([this.resolutionState = STATE_NOT_STARTED]); 2639 MetadataAnnotationX([this.resolutionState = STATE_NOT_STARTED]);
2640 2640
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 AstElement get definingElement; 2712 AstElement get definingElement;
2713 2713
2714 bool get hasResolvedAst => definingElement.hasTreeElements; 2714 bool get hasResolvedAst => definingElement.hasTreeElements;
2715 2715
2716 ResolvedAst get resolvedAst { 2716 ResolvedAst get resolvedAst {
2717 return new ResolvedAst(declaration, 2717 return new ResolvedAst(declaration,
2718 definingElement.node, definingElement.treeElements); 2718 definingElement.node, definingElement.treeElements);
2719 } 2719 }
2720 2720
2721 } 2721 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698