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

Side by Side Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 772133002: Evaluate annotations using ConstantValueComputer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 3340 matching lines...) Expand 10 before | Expand all | Expand 10 after
3351 * The name of the top-level variable used to mark a class as implementing a p roxy object. 3351 * The name of the top-level variable used to mark a class as implementing a p roxy object.
3352 */ 3352 */
3353 static String PROXY_VARIABLE_NAME = "proxy"; 3353 static String PROXY_VARIABLE_NAME = "proxy";
3354 3354
3355 /** 3355 /**
3356 * The element representing the field, variable, or constructor being used as an annotation. 3356 * The element representing the field, variable, or constructor being used as an annotation.
3357 */ 3357 */
3358 final Element element; 3358 final Element element;
3359 3359
3360 /** 3360 /**
3361 * The result of evaluating this annotation as a compile-time constant
3362 * expression, or `null` if the compilation unit containing the variable has
3363 * not been resolved.
3364 */
3365 EvaluationResultImpl evaluationResult;
3366
3367 /**
3361 * Initialize a newly created annotation. 3368 * Initialize a newly created annotation.
3362 * 3369 *
3363 * @param element the element representing the field, variable, or constructor being used as an 3370 * @param element the element representing the field, variable, or constructor being used as an
3364 * annotation 3371 * annotation
3365 */ 3372 */
3366 ElementAnnotationImpl(this.element); 3373 ElementAnnotationImpl(this.element);
3367 3374
3368 @override 3375 @override
3369 bool get isDeprecated { 3376 bool get isDeprecated {
3370 if (element != null) { 3377 if (element != null) {
(...skipping 9132 matching lines...) Expand 10 before | Expand all | Expand 10 after
12503 // bottom <: void (as bottom is a subtype of all types). 12510 // bottom <: void (as bottom is a subtype of all types).
12504 // void <: dynamic (as dynamic is a supertype of all types) 12511 // void <: dynamic (as dynamic is a supertype of all types)
12505 return identical(type, this) || type.isDynamic; 12512 return identical(type, this) || type.isDynamic;
12506 } 12513 }
12507 12514
12508 @override 12515 @override
12509 VoidTypeImpl substitute2(List<DartType> argumentTypes, 12516 VoidTypeImpl substitute2(List<DartType> argumentTypes,
12510 List<DartType> parameterTypes) => 12517 List<DartType> parameterTypes) =>
12511 this; 12518 this;
12512 } 12519 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698