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

Unified Diff: sdk/lib/_internal/compiler/implementation/patch_parser.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, 3 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/patch_parser.dart
diff --git a/sdk/lib/_internal/compiler/implementation/patch_parser.dart b/sdk/lib/_internal/compiler/implementation/patch_parser.dart
index ef29b405e905e68b02be1ab6703c3fac48be19b6..0899be3419411bc66fd745de6ce41499c0ae0651 100644
--- a/sdk/lib/_internal/compiler/implementation/patch_parser.dart
+++ b/sdk/lib/_internal/compiler/implementation/patch_parser.dart
@@ -116,7 +116,7 @@ library patchparser;
import 'dart:async';
-import 'constants/values.dart' show Constant;
+import 'constants/values.dart' show ConstantValue;
import 'dart2jslib.dart'
show Compiler,
CompilerTask,
@@ -317,7 +317,7 @@ abstract class EagerAnnotationHandler {
void validate(Compiler compiler,
Element element,
MetadataAnnotation annotation,
- Constant constant);
+ ConstantValue constant);
/// Checks [element] for metadata matching the [handler]. Return `true` if
@@ -378,7 +378,7 @@ class NativeAnnotationHandler implements EagerAnnotationHandler {
void validate(Compiler compiler,
Element element,
MetadataAnnotation annotation,
- Constant constant) {
+ ConstantValue constant) {
if (constant.computeType(compiler).element !=
compiler.nativeAnnotationClass) {
compiler.internalError(annotation, 'Invalid @Native(...) annotation.');
@@ -404,7 +404,7 @@ class PatchAnnotationHandler implements EagerAnnotationHandler {
void validate(Compiler compiler,
Element element,
MetadataAnnotation annotation,
- Constant constant) {
+ ConstantValue constant) {
if (constant != compiler.patchConstant) {
compiler.internalError(annotation, 'Invalid patch annotation.');
}

Powered by Google App Engine
This is Rietveld 408576698