;
--------------------------------------------------------------------------------
/tests/fixtures/jsx/invalid-missing-spread-operator.src.js:
--------------------------------------------------------------------------------
1 | ;
--------------------------------------------------------------------------------
/tests/fixtures/jsx/shorthand-fragment-with-child.src.js:
--------------------------------------------------------------------------------
1 | <>>
2 |
--------------------------------------------------------------------------------
/tests/fixtures/jsx/spread-operator-attributes.src.js:
--------------------------------------------------------------------------------
1 | ;
--------------------------------------------------------------------------------
/tests/fixtures/jsx/unknown-escape-pattern.src.js:
--------------------------------------------------------------------------------
1 | ;
--------------------------------------------------------------------------------
/tests/fixtures/semanticInfo/export-file.src.ts:
--------------------------------------------------------------------------------
1 | export default [3, 4, 5];
--------------------------------------------------------------------------------
/tests/fixtures/semanticInfo/extra-file-extension.vue:
--------------------------------------------------------------------------------
1 | const x = [3, 4, 5];
--------------------------------------------------------------------------------
/tests/fixtures/typescript/basics/cast-as-multi.src.ts:
--------------------------------------------------------------------------------
1 | x as any as T;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/types/array-type.src.ts:
--------------------------------------------------------------------------------
1 | type Foo = string[]
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/types/literal-string.src.ts:
--------------------------------------------------------------------------------
1 | let x: "foo";
2 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/line-comment-with-block-syntax.src.js:
--------------------------------------------------------------------------------
1 | // /*test*/
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/error-dup-params.src.js:
--------------------------------------------------------------------------------
1 | (a, a) => 42;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/error-reverse-arrow.src.js:
--------------------------------------------------------------------------------
1 | () <= 42;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/iife.src.js:
--------------------------------------------------------------------------------
1 | e => ({ property: 42 });
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/not-strict-eval.src.js:
--------------------------------------------------------------------------------
1 | eval => 42;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/not-strict-octal.src.js:
--------------------------------------------------------------------------------
1 | (a) => 00;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/basics/delete-expression.src.js:
--------------------------------------------------------------------------------
1 | delete foo.bar;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/basics/typeof-expression.src.js:
--------------------------------------------------------------------------------
1 | typeof 'str'
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/classes/empty-class-double-semi.src.js:
--------------------------------------------------------------------------------
1 | class A {};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/classes/named-class-expression.src.js:
--------------------------------------------------------------------------------
1 | (class A {});
--------------------------------------------------------------------------------
/tests/fixtures/javascript/defaultParams/declaration.src.js:
--------------------------------------------------------------------------------
1 | function f(a = 1) {}
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/array-to-array.src.js:
--------------------------------------------------------------------------------
1 | [a, b] = [b, a];
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/defaults-object.src.js:
--------------------------------------------------------------------------------
1 | var {x = 10} = x
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/object-var-named.src.js:
--------------------------------------------------------------------------------
1 | var {a:b} = {};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/sparse-array.src.js:
--------------------------------------------------------------------------------
1 | [a,,b] = array;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/globalReturn/return-true.src.js:
--------------------------------------------------------------------------------
1 | return true;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/export-named-empty.src.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/invalid-await.src.js:
--------------------------------------------------------------------------------
1 | export var await;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/regex/regexp-simple.src.js:
--------------------------------------------------------------------------------
1 | var foo = /foo./;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/restParams/basic-rest.src.js:
--------------------------------------------------------------------------------
1 | function f(a, ...b) {};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/restParams/single-rest.src.js:
--------------------------------------------------------------------------------
1 | function f(...b) {};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/templateStrings/simple-template-string.src.js:
--------------------------------------------------------------------------------
1 | `42`;
--------------------------------------------------------------------------------
/tests/fixtures/jsx-useJSXTextNode/test-content.src.js:
--------------------------------------------------------------------------------
1 | @test content
;
--------------------------------------------------------------------------------
/tests/fixtures/jsx/embedded-comment.src.js:
--------------------------------------------------------------------------------
1 | {/* this is a comment */};
--------------------------------------------------------------------------------
/tests/fixtures/jsx/embedded-conditional.src.js:
--------------------------------------------------------------------------------
1 | : } />;
--------------------------------------------------------------------------------
/tests/fixtures/jsx/invalid-namespace-name-with-docts.src.js:
--------------------------------------------------------------------------------
1 | ;
--------------------------------------------------------------------------------
/tests/fixtures/jsx/invalid-namespace-value-with-dots.src.js:
--------------------------------------------------------------------------------
1 | ;
--------------------------------------------------------------------------------
/tests/fixtures/typescript/basics/export-assignment.src.ts:
--------------------------------------------------------------------------------
1 | export = foo;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/basics/keyof-operator.src.ts:
--------------------------------------------------------------------------------
1 | type x = keyof foo;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/basics/typed-keyword-null.src.ts:
--------------------------------------------------------------------------------
1 | type Foo = null
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/basics/typed-keyword-true.src.ts:
--------------------------------------------------------------------------------
1 | type Foo = true
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/basics/typed-keyword-void.src.ts:
--------------------------------------------------------------------------------
1 | type Foo = void
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/declare/variable.src.ts:
--------------------------------------------------------------------------------
1 | declare var foo: any;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/typescript/types/literal-number-negative.src.ts:
--------------------------------------------------------------------------------
1 | let x: -1;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/error-missing-paren.src.js:
--------------------------------------------------------------------------------
1 | (a, (b)) => 42;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/error-numeric-param.src.js:
--------------------------------------------------------------------------------
1 | (10) => 0;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/error-wrapped-param.src.js:
--------------------------------------------------------------------------------
1 | ((a)) => 42;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/multiple-params.src.js:
--------------------------------------------------------------------------------
1 | (a, b) => "test";
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/no-auto-return.src.js:
--------------------------------------------------------------------------------
1 | (a, b) => { 42; };
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/return-arrow-function.src.js:
--------------------------------------------------------------------------------
1 | x => y => 42;
--------------------------------------------------------------------------------
/tests/fixtures/javascript/arrowFunctions/single-param-parens.src.js:
--------------------------------------------------------------------------------
1 | (e) => "test";
--------------------------------------------------------------------------------
/tests/fixtures/javascript/basics/void-expression.src.js:
--------------------------------------------------------------------------------
1 | void 4;
2 | void(3);
3 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/classes/class-two-methods.src.js:
--------------------------------------------------------------------------------
1 | class A {a(){}b(){}};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/classes/invalid-class-declaration.src.js:
--------------------------------------------------------------------------------
1 | class {};
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/defaultParams/expression.src.js:
--------------------------------------------------------------------------------
1 | x = function(y = 1) {}
--------------------------------------------------------------------------------
/tests/fixtures/javascript/defaultParams/method.src.js:
--------------------------------------------------------------------------------
1 | x = { f: function(a=1) {} }
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring-and-forOf/loop.src.js:
--------------------------------------------------------------------------------
1 | for ([a] of foo);
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/array-var-undefined.src.js:
--------------------------------------------------------------------------------
1 | var [a] = [];
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/object-var-undefined.src.js:
--------------------------------------------------------------------------------
1 | var {a} = {};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/params-array.src.js:
--------------------------------------------------------------------------------
1 | function x([ a, b ]){};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/destructuring/params-object.src.js:
--------------------------------------------------------------------------------
1 | function x({ a, b }){};
--------------------------------------------------------------------------------
/tests/fixtures/javascript/for/for-loop.src.js:
--------------------------------------------------------------------------------
1 | for(var i = 0; i < 10; i++) {}
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/forIn/for-in-object-with-body.src.js:
--------------------------------------------------------------------------------
1 | for (i in {}) {}
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/globalReturn/return-identifier.src.js:
--------------------------------------------------------------------------------
1 | return fooz;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/importMeta/simple-import-meta.src.js:
--------------------------------------------------------------------------------
1 | import.meta.url;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/export-from-batch.src.js:
--------------------------------------------------------------------------------
1 | export * from "foo";
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/export-named-specifier.src.js:
--------------------------------------------------------------------------------
1 | export {foo};
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/export-var-number.src.js:
--------------------------------------------------------------------------------
1 | export var foo = 1;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/import-default.src.js:
--------------------------------------------------------------------------------
1 | import foo from "foo";
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/import-jquery.src.js:
--------------------------------------------------------------------------------
1 | import $ from "jquery"
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/invalid-class.src.js:
--------------------------------------------------------------------------------
1 | export default class {}
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/modules/invalid-export-batch-token.src.js:
--------------------------------------------------------------------------------
1 | export * +
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/regexUFlag/regex-u-simple.src.js:
--------------------------------------------------------------------------------
1 | var foo = /foo/u;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/regexYFlag/regexp-y-simple.src.js:
--------------------------------------------------------------------------------
1 | var foo = /foo/y;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/restParams/error-not-last.src.js:
--------------------------------------------------------------------------------
1 | function f(a, ...b, c);
--------------------------------------------------------------------------------
/tests/fixtures/javascript/simple-literals/literal-float.src.js:
--------------------------------------------------------------------------------
1 | const a = 1.5;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/simple-literals/literal-null.src.js:
--------------------------------------------------------------------------------
1 | const a = null;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/simple-literals/literal-number.src.js:
--------------------------------------------------------------------------------
1 | const a = 1;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/simple-literals/literal-string.src.js:
--------------------------------------------------------------------------------
1 | const a = 'a';
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/templateStrings/error-octal-literal.src.js:
--------------------------------------------------------------------------------
1 | `\07`;
2 |
--------------------------------------------------------------------------------
/tests/fixtures/javascript/templateStrings/single-dollar-sign.src.js:
--------------------------------------------------------------------------------
1 | var ts = `$`;
--------------------------------------------------------------------------------
/tests/fixtures/jsx/attributes.src.js:
--------------------------------------------------------------------------------
1 | test
--------------------------------------------------------------------------------
/tests/fixtures/jsx/invalid-attribute-missing-equals.src.js:
--------------------------------------------------------------------------------
1 |