123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`extends.js 1`] = `
- // "ArrowFunctionExpression"
- class a extends (() => {}) {}
- // "AssignmentExpression"
- class a extends (b = c) {}
- // "AwaitExpression"
- async function f() {
- class a extends (await b) {}
- }
- // "BinaryExpression"
- class a extends (b + c) {}
- // "CallExpression"
- class a extends b() {}
- // "ClassExpression"
- class a extends class {} {}
- // "ConditionalExpression"
- class a extends (b ? c : d) {}
- // "FunctionExpression"
- class a extends (function() {}) {}
- // "LogicalExpression"
- class a extends (b || c) {}
- // "MemberExpression"
- class a extends b.c {}
- // "NewExpression"
- class a extends (new B()) {}
- // "ObjectExpression"
- class a extends ({}) {}
- // "SequenceExpression"
- class a extends (b, c) {}
- // "TaggedTemplateExpression"
- class a extends \`\` {}
- // "UnaryExpression"
- class a extends (void b) {}
- // "UpdateExpression"
- class a extends (++b) {}
- // "YieldExpression"
- function* f() {
- // Flow has a bug parsing it.
- // class a extends (yield 1) {}
- }
- x = class extends (++b) {}
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- // "ArrowFunctionExpression"
- class a extends (() => {}) {}
- // "AssignmentExpression"
- class a extends (b = c) {}
- // "AwaitExpression"
- async function f() {
- class a extends (await b) {}
- }
- // "BinaryExpression"
- class a extends (b + c) {}
- // "CallExpression"
- class a extends b() {}
- // "ClassExpression"
- class a extends class {} {}
- // "ConditionalExpression"
- class a extends (b ? c : d) {}
- // "FunctionExpression"
- class a extends function() {} {}
- // "LogicalExpression"
- class a extends (b || c) {}
- // "MemberExpression"
- class a extends b.c {}
- // "NewExpression"
- class a extends (new B()) {}
- // "ObjectExpression"
- class a extends ({}) {}
- // "SequenceExpression"
- class a extends (b, c) {}
- // "TaggedTemplateExpression"
- class a extends \`\` {}
- // "UnaryExpression"
- class a extends (void b) {}
- // "UpdateExpression"
- class a extends (++b) {}
- // "YieldExpression"
- function* f() {
- // Flow has a bug parsing it.
- // class a extends (yield 1) {}
- }
- x = class extends (++b) {};
- `;
|