Fix class syntax

This commit is contained in:
Katie Broida 2018-08-14 16:18:45 -04:00 committed by Rick Waldron
parent 9ccf0a822f
commit f11d0ab3d5
48 changed files with 128 additions and 128 deletions

View File

@ -29,15 +29,15 @@ class C {
set #/*{ declareWith }*/(param) { stringSet = param; } set #/*{ declareWith }*/(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#/*{ referenceWith }*/; return this[#/*{ referenceWith }*/];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#/*{ referenceWith }*/ = value; this[#/*{ referenceWith }*/] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -29,11 +29,11 @@ class C {
static set #/*{ declareWith }*/(param) { stringSet = param; } static set #/*{ declareWith }*/(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#/*{ referenceWith }*/; return this[#/*{ referenceWith }*/];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#/*{ referenceWith }*/ = value; this[#/*{ referenceWith }*/] = value;
} }
} }

View File

@ -29,15 +29,15 @@ var C = class {
set #/*{ declareWith }*/(param) { stringSet = param; } set #/*{ declareWith }*/(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#/*{ referenceWith }*/; return this[#/*{ referenceWith }*/];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#/*{ referenceWith }*/ = value; this[#/*{ referenceWith }*/] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -41,15 +41,15 @@ var C = class {
set #[_ = 'str' + 'ing'](param) { stringSet = param; } set #[_ = 'str' + 'ing'](param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'string'; return this[#'string'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'string' = value; this[#'string'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #0b10(param) { stringSet = param; } set #0b10(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'2'; return this[#'2'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'2' = value; this[#'2'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #1E+9(param) { stringSet = param; } set #1E+9(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'1000000000'; return this[#'1000000000'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'1000000000' = value; this[#'1000000000'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #0x10(param) { stringSet = param; } set #0x10(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'16'; return this[#'16'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'16' = value; this[#'16'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #.1(param) { stringSet = param; } set #.1(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'0.1'; return this[#'0.1'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'0.1' = value; this[#'0.1'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #0.0000001(param) { stringSet = param; } set #0.0000001(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'1e-7'; return this[#'1e-7'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'1e-7' = value; this[#'1e-7'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #0o10(param) { stringSet = param; } set #0o10(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'8'; return this[#'8'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'8' = value; this[#'8'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #0(param) { stringSet = param; } set #0(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'0'; return this[#'0'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'0' = value; this[#'0'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #'character\tescape'(param) { stringSet = param; } set #'character\tescape'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'character escape'; return this[#'character escape'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'character escape' = value; this[#'character escape'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #"doubleQuote"(param) { stringSet = param; } set #"doubleQuote"(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#"doubleQuote"; return this[#"doubleQuote"];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#"doubleQuote" = value; this[#"doubleQuote"] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #''(param) { stringSet = param; } set #''(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#''; return this[#''];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'' = value; this[#''] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #'hex\x45scape'(param) { stringSet = param; } set #'hex\x45scape'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'hexEscape'; return this[#'hexEscape'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'hexEscape' = value; this[#'hexEscape'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -41,15 +41,15 @@ Continuation'() { return 'get string'; }
Continuation'(param) { stringSet = param; } Continuation'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'lineContinuation'; return this[#'lineContinuation'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'lineContinuation' = value; this[#'lineContinuation'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #'singleQuote'(param) { stringSet = param; } set #'singleQuote'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'singleQuote'; return this[#'singleQuote'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'singleQuote' = value; this[#'singleQuote'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ var C = class {
set #'unicod\u{000065}Escape'(param) { stringSet = param; } set #'unicod\u{000065}Escape'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'unicodeEscape'; return this[#'unicodeEscape'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'unicodeEscape' = value; this[#'unicodeEscape'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -41,15 +41,15 @@ class C {
set #[_ = 'str' + 'ing'](param) { stringSet = param; } set #[_ = 'str' + 'ing'](param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'string'; return this[#'string'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'string' = value; this[#'string'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #0b10(param) { stringSet = param; } set #0b10(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'2'; return this[#'2'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'2' = value; this[#'2'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #1E+9(param) { stringSet = param; } set #1E+9(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'1000000000'; return this[#'1000000000'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'1000000000' = value; this[#'1000000000'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #0x10(param) { stringSet = param; } set #0x10(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'16'; return this[#'16'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'16' = value; this[#'16'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #.1(param) { stringSet = param; } set #.1(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'0.1'; return this[#'0.1'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'0.1' = value; this[#'0.1'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #0.0000001(param) { stringSet = param; } set #0.0000001(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'1e-7'; return this[#'1e-7'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'1e-7' = value; this[#'1e-7'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #0o10(param) { stringSet = param; } set #0o10(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'8'; return this[#'8'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'8' = value; this[#'8'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #0(param) { stringSet = param; } set #0(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'0'; return this[#'0'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'0' = value; this[#'0'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #'character\tescape'(param) { stringSet = param; } set #'character\tescape'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'character escape'; return this[#'character escape'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'character escape' = value; this[#'character escape'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #"doubleQuote"(param) { stringSet = param; } set #"doubleQuote"(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#"doubleQuote"; return this[#"doubleQuote"];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#"doubleQuote" = value; this[#"doubleQuote"] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #''(param) { stringSet = param; } set #''(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#''; return this[#''];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'' = value; this[#''] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #'hex\x45scape'(param) { stringSet = param; } set #'hex\x45scape'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'hexEscape'; return this[#'hexEscape'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'hexEscape' = value; this[#'hexEscape'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -41,15 +41,15 @@ Continuation'() { return 'get string'; }
Continuation'(param) { stringSet = param; } Continuation'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'lineContinuation'; return this[#'lineContinuation'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'lineContinuation' = value; this[#'lineContinuation'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #'singleQuote'(param) { stringSet = param; } set #'singleQuote'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'singleQuote'; return this[#'singleQuote'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'singleQuote' = value; this[#'singleQuote'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -39,15 +39,15 @@ class C {
set #'unicod\u{000065}Escape'(param) { stringSet = param; } set #'unicod\u{000065}Escape'(param) { stringSet = param; }
getPrivateReference() { getPrivateReference() {
return this.#'unicodeEscape'; return this[#'unicodeEscape'];
} }
setPrivateReference(value) { setPrivateReference(value) {
this.#'unicodeEscape' = value; this[#'unicodeEscape'] = value;
} }
}; };
var inst = C(); var inst = new C();
assert.sameValue(inst.getPrivateReference(), 'get string'); assert.sameValue(inst.getPrivateReference(), 'get string');

View File

@ -41,11 +41,11 @@ class C {
static set #[_ = 'str' + 'ing'](param) { stringSet = param; } static set #[_ = 'str' + 'ing'](param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'string'; return this[#'string'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'string' = value; this[#'string'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #0b10(param) { stringSet = param; } static set #0b10(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'2'; return this[#'2'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'2' = value; this[#'2'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #1E+9(param) { stringSet = param; } static set #1E+9(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'1000000000'; return this[#'1000000000'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'1000000000' = value; this[#'1000000000'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #0x10(param) { stringSet = param; } static set #0x10(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'16'; return this[#'16'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'16' = value; this[#'16'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #.1(param) { stringSet = param; } static set #.1(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'0.1'; return this[#'0.1'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'0.1' = value; this[#'0.1'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #0.0000001(param) { stringSet = param; } static set #0.0000001(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'1e-7'; return this[#'1e-7'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'1e-7' = value; this[#'1e-7'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #0o10(param) { stringSet = param; } static set #0o10(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'8'; return this[#'8'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'8' = value; this[#'8'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #0(param) { stringSet = param; } static set #0(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'0'; return this[#'0'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'0' = value; this[#'0'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #'character\tescape'(param) { stringSet = param; } static set #'character\tescape'(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'character escape'; return this[#'character escape'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'character escape' = value; this[#'character escape'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #"doubleQuote"(param) { stringSet = param; } static set #"doubleQuote"(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#"doubleQuote"; return this[#"doubleQuote"];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#"doubleQuote" = value; this[#"doubleQuote"] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #''(param) { stringSet = param; } static set #''(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#''; return this[#''];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'' = value; this[#''] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #'hex\x45scape'(param) { stringSet = param; } static set #'hex\x45scape'(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'hexEscape'; return this[#'hexEscape'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'hexEscape' = value; this[#'hexEscape'] = value;
} }
} }

View File

@ -41,11 +41,11 @@ Continuation'() { return 'get string'; }
Continuation'(param) { stringSet = param; } Continuation'(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'lineContinuation'; return this[#'lineContinuation'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'lineContinuation' = value; this[#'lineContinuation'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #'singleQuote'(param) { stringSet = param; } static set #'singleQuote'(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'singleQuote'; return this[#'singleQuote'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'singleQuote' = value; this[#'singleQuote'] = value;
} }
} }

View File

@ -39,11 +39,11 @@ class C {
static set #'unicod\u{000065}Escape'(param) { stringSet = param; } static set #'unicod\u{000065}Escape'(param) { stringSet = param; }
static getPrivateReference() { static getPrivateReference() {
return this.#'unicodeEscape'; return this[#'unicodeEscape'];
} }
static setPrivateReference(value) { static setPrivateReference(value) {
this.#'unicodeEscape' = value; this[#'unicodeEscape'] = value;
} }
} }