Files
test-repo/tests/template/parenthesis.js
T
fisker Cheung 179943ccba Update @babel/parser to v7.6.3 (#6386)
* fix flow_function_parentheses

* fix directives

* fix classes

* fix flow_method

* fix `do`

* fix `decorators`

* fix `comments_closure_typecast`

* fix `comments`

* fix `flow_internal_slot`

* fix `flow_comments`

* fix `flow_type_declarations`

* fix `flow_type_spread`

* fix `functional_composition`

* fix `multiparser_js_css`

* fix `no-semi`

* fix `objects`

* fix `template`

* fix `yield`

* update `flow_method` snap

* fix `empty_paren_comment`

* fix `mdx`

* fix `object_property_comment`

* Update `@babel/parser`

* Update @babel/parser to v7.6.2

* Update yarn.lock

* fix `nullish_coalescing` test

* fix `flow_class_field` test

* fix snapshot

* @babel/parser v7.6.3

* fix tests

* update snap
2019-10-09 14:52:11 +03:00

55 lines
651 B
JavaScript

// "ArrowFunctionExpression"
(() => {})``;
// "AssignmentExpression"
(b = c)``;
// "AwaitExpression"
async function f() {
(await b)``;
}
// "BinaryExpression"
(b + c)``;
// "CallExpression"
b()``;
// "ClassExpression"
(class {})``;
// "ConditionalExpression"
(b ? c : d)``;
// "FunctionExpression"
(function() {})``;
// "LogicalExpression"
(b || c)``;
// "MemberExpression"
b.c``;
// "NewExpression"
(new B())``;
// "ObjectExpression"
({})``;
// "SequenceExpression"
(b, c)``;
// "TaggedTemplateExpression"
(``)``;
// "UnaryExpression"
(void b)``;
// "UpdateExpression"
(++b)``;
// "YieldExpression"
function* d() {
(yield 1)``;
}