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

Unified Diff: test/codegen/expect/DeltaBlue.js

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased after vsm's regen Created 5 years, 1 month 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
« no previous file with comments | « lib/src/js/builder.dart ('k') | test/codegen/expect/async_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/DeltaBlue.js
diff --git a/test/codegen/expect/DeltaBlue.js b/test/codegen/expect/DeltaBlue.js
index 13498e66ac07202aff2d117027dac4f12361b05e..b6fc20beb2746e692734e56ad79e7f4c38d21b1b 100644
--- a/test/codegen/expect/DeltaBlue.js
+++ b/test/codegen/expect/DeltaBlue.js
@@ -54,13 +54,13 @@ dart_library.library('DeltaBlue', null, /* Imports */[
}),
names: ['stronger', 'weaker', 'weakest', 'strongest']
});
- let REQUIRED = dart.const(new Strength(0, "required"));
- let STRONG_PREFERRED = dart.const(new Strength(1, "strongPreferred"));
- let PREFERRED = dart.const(new Strength(2, "preferred"));
- let STRONG_DEFAULT = dart.const(new Strength(3, "strongDefault"));
- let NORMAL = dart.const(new Strength(4, "normal"));
- let WEAK_DEFAULT = dart.const(new Strength(5, "weakDefault"));
- let WEAKEST = dart.const(new Strength(6, "weakest"));
+ const REQUIRED = dart.const(new Strength(0, "required"));
+ const STRONG_PREFERRED = dart.const(new Strength(1, "strongPreferred"));
+ const PREFERRED = dart.const(new Strength(2, "preferred"));
+ const STRONG_DEFAULT = dart.const(new Strength(3, "strongDefault"));
+ const NORMAL = dart.const(new Strength(4, "normal"));
+ const WEAK_DEFAULT = dart.const(new Strength(5, "weakDefault"));
+ const WEAKEST = dart.const(new Strength(6, "weakest"));
class Constraint extends core.Object {
Constraint(strength) {
this.strength = strength;
@@ -182,9 +182,9 @@ dart_library.library('DeltaBlue', null, /* Imports */[
constructors: () => ({EditConstraint: [EditConstraint, [Variable, Strength]]}),
methods: () => ({execute: [dart.void, []]})
});
- let NONE = 1;
- let FORWARD = 2;
- let BACKWARD = 0;
+ const NONE = 1;
+ const FORWARD = 2;
+ const BACKWARD = 0;
class BinaryConstraint extends Constraint {
BinaryConstraint(v1, v2, strength) {
this.v1 = v1;
« no previous file with comments | « lib/src/js/builder.dart ('k') | test/codegen/expect/async_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698