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

Unified Diff: test/codegen/expect/sunflower/dom.js

Issue 1090313002: fixes #52, fields shadowing getters/setters or other fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 | « test/codegen/expect/opassign.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/sunflower/dom.js
diff --git a/test/codegen/expect/sunflower/dom.js b/test/codegen/expect/sunflower/dom.js
index accd3b1e5ea0bec03a406ba4626e23aeeb2bd8d0..1cc753d82da4645a7b3143126bd2ff6047c82e5a 100644
--- a/test/codegen/expect/sunflower/dom.js
+++ b/test/codegen/expect/sunflower/dom.js
@@ -1,10 +1,14 @@
var dom;
(function(exports) {
'use strict';
+ let name$ = Symbol('name');
class JsName extends core.Object {
+ get name() {
+ return this[name$];
+ }
JsName(opts) {
let name = opts && 'name' in opts ? opts.name : null;
- this.name = name;
+ this[name$] = name;
}
}
class Overload extends core.Object {
@@ -17,16 +21,72 @@ var dom;
let InputElement = HTMLInputElement;
let CanvasElement = HTMLCanvasElement;
class RenderingContext extends core.Object {}
+ let lineWidth = Symbol('lineWidth');
+ let lineCap = Symbol('lineCap');
+ let lineJoin = Symbol('lineJoin');
+ let miterLimit = Symbol('miterLimit');
+ let lineDashOffset = Symbol('lineDashOffset');
+ let font = Symbol('font');
+ let textAlign = Symbol('textAlign');
+ let textBaseline = Symbol('textBaseline');
class CanvasDrawingStyles extends core.Object {
CanvasDrawingStyles() {
- this.lineWidth = null;
- this.lineCap = null;
- this.lineJoin = null;
- this.miterLimit = null;
- this.lineDashOffset = null;
- this.font = null;
- this.textAlign = null;
- this.textBaseline = null;
+ this[lineWidth] = null;
+ this[lineCap] = null;
+ this[lineJoin] = null;
+ this[miterLimit] = null;
+ this[lineDashOffset] = null;
+ this[font] = null;
+ this[textAlign] = null;
+ this[textBaseline] = null;
+ }
+ get lineWidth() {
+ return this[lineWidth];
+ }
+ set lineWidth(value) {
+ this[lineWidth] = value;
+ }
+ get lineCap() {
+ return this[lineCap];
+ }
+ set lineCap(value) {
+ this[lineCap] = value;
+ }
+ get lineJoin() {
+ return this[lineJoin];
+ }
+ set lineJoin(value) {
+ this[lineJoin] = value;
+ }
+ get miterLimit() {
+ return this[miterLimit];
+ }
+ set miterLimit(value) {
+ this[miterLimit] = value;
+ }
+ get lineDashOffset() {
+ return this[lineDashOffset];
+ }
+ set lineDashOffset(value) {
+ this[lineDashOffset] = value;
+ }
+ get font() {
+ return this[font];
+ }
+ set font(value) {
+ this[font] = value;
+ }
+ get textAlign() {
+ return this[textAlign];
+ }
+ set textAlign(value) {
+ this[textAlign] = value;
+ }
+ get textBaseline() {
+ return this[textBaseline];
+ }
+ set textBaseline(value) {
+ this[textBaseline] = value;
}
}
class CanvasPathMethods extends core.Object {}
« no previous file with comments | « test/codegen/expect/opassign.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698