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

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

Issue 1230903002: fixes #6, refactor to use AnalysisError/Listener throughout dev_compiler (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « lib/strong_mode.dart ('k') | test/codegen/expect/temps.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/temps.js
diff --git a/test/codegen/expect/temps.js b/test/codegen/expect/temps.js
index 743b0d4503e7b44787723fd489b9e1802a1d2a95..7467a2eaf8944091a7144d52643994b196be4cd7 100644
--- a/test/codegen/expect/temps.js
+++ b/test/codegen/expect/temps.js
@@ -24,17 +24,19 @@ dart_library.library('temps', null, /* Imports */[
if (opt === void 0)
opt = 123;
this[_opt] = opt;
+ this.opt = null;
}
named(opts) {
- let opt = opts && '_opt' in opts ? opts._opt : 456;
- this[_opt] = opt;
+ let opt = opts && 'opt' in opts ? opts.opt : 456;
+ this.opt = opt;
+ this[_opt] = null;
}
}
dart.defineNamedConstructor(OptionalArg, 'named');
dart.setSignature(OptionalArg, {
constructors: () => ({
OptionalArg: [OptionalArg, [], [core.int]],
- named: [OptionalArg, [], {_opt: core.int}]
+ named: [OptionalArg, [], {opt: core.int}]
})
});
function main() {
« no previous file with comments | « lib/strong_mode.dart ('k') | test/codegen/expect/temps.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698