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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/custom_elements_analysis.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/js_backend/custom_elements_analysis.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/custom_elements_analysis.dart b/sdk/lib/_internal/compiler/implementation/js_backend/custom_elements_analysis.dart
index ade211ddbe654163898b5bd17ebf8f0c732845bc..9a5c8e987940a9ec62bb27bc9291ab808012f7ee 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/custom_elements_analysis.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/custom_elements_analysis.dart
@@ -166,7 +166,7 @@ class CustomElementsAnalysisJoin {
.forEach(compiler.globalDependencies.registerDependency);
// Force the generaton of the type constant that is the key to an entry
// in the generated table.
- Constant constant = makeTypeConstant(classElement);
+ ConstantValue constant = makeTypeConstant(classElement);
backend.registerCompileTimeConstant(
constant, compiler.globalDependencies);
backend.constants.addCompileTimeConstantForEmission(constant);
@@ -176,10 +176,10 @@ class CustomElementsAnalysisJoin {
instantiatedClasses.removeAll(newActiveClasses);
}
- TypeConstant makeTypeConstant(ClassElement element) {
+ TypeConstantValue makeTypeConstant(ClassElement element) {
DartType elementType = element.rawType;
DartType constantType = backend.typeImplementation.rawType;
- return new TypeConstant(elementType, constantType);
+ return new TypeConstantValue(elementType, constantType);
}
List<Element> computeEscapingConstructors(ClassElement classElement) {

Powered by Google App Engine
This is Rietveld 408576698