From d5e90bdfeb7c5904d858a8ebfc718849f7dc951a Mon Sep 17 00:00:00 2001 From: joshvera Date: Mon, 27 Mar 2017 17:09:29 -0400 Subject: [PATCH] Add module declarations --- test/fixtures/typescript/module-declarations.A.ts | 2 ++ test/fixtures/typescript/module-declarations.B.ts | 2 ++ test/fixtures/typescript/module-declarations.diff+A.txt | 3 +++ test/fixtures/typescript/module-declarations.diff+B.txt | 5 +++++ test/fixtures/typescript/module-declarations.diff-A.txt | 3 +++ test/fixtures/typescript/module-declarations.diff-B.txt | 5 +++++ test/fixtures/typescript/module-declarations.diffA-B.txt | 7 +++++++ test/fixtures/typescript/module-declarations.diffB-A.txt | 7 +++++++ test/fixtures/typescript/module-declarations.parseA.txt | 3 +++ test/fixtures/typescript/module-declarations.parseB.txt | 5 +++++ 10 files changed, 42 insertions(+) create mode 100644 test/fixtures/typescript/module-declarations.A.ts create mode 100644 test/fixtures/typescript/module-declarations.B.ts create mode 100644 test/fixtures/typescript/module-declarations.diff+A.txt create mode 100644 test/fixtures/typescript/module-declarations.diff+B.txt create mode 100644 test/fixtures/typescript/module-declarations.diff-A.txt create mode 100644 test/fixtures/typescript/module-declarations.diff-B.txt create mode 100644 test/fixtures/typescript/module-declarations.diffA-B.txt create mode 100644 test/fixtures/typescript/module-declarations.diffB-A.txt create mode 100644 test/fixtures/typescript/module-declarations.parseA.txt create mode 100644 test/fixtures/typescript/module-declarations.parseB.txt diff --git a/test/fixtures/typescript/module-declarations.A.ts b/test/fixtures/typescript/module-declarations.A.ts new file mode 100644 index 000000000..e452e9112 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.A.ts @@ -0,0 +1,2 @@ +module Promise { +} \ No newline at end of file diff --git a/test/fixtures/typescript/module-declarations.B.ts b/test/fixtures/typescript/module-declarations.B.ts new file mode 100644 index 000000000..17fcc0007 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.B.ts @@ -0,0 +1,2 @@ +namespace Promise { +} \ No newline at end of file diff --git a/test/fixtures/typescript/module-declarations.diff+A.txt b/test/fixtures/typescript/module-declarations.diff+A.txt new file mode 100644 index 000000000..333adb08d --- /dev/null +++ b/test/fixtures/typescript/module-declarations.diff+A.txt @@ -0,0 +1,3 @@ +{+(Program + (Other "module" + (Identifier)))+} diff --git a/test/fixtures/typescript/module-declarations.diff+B.txt b/test/fixtures/typescript/module-declarations.diff+B.txt new file mode 100644 index 000000000..aac42b888 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.diff+B.txt @@ -0,0 +1,5 @@ +{+(Program + (ParseError + (Identifier) + (Identifier)) + (ExpressionStatements))+} diff --git a/test/fixtures/typescript/module-declarations.diff-A.txt b/test/fixtures/typescript/module-declarations.diff-A.txt new file mode 100644 index 000000000..7dbb03e74 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Other "module" + (Identifier)))-} diff --git a/test/fixtures/typescript/module-declarations.diff-B.txt b/test/fixtures/typescript/module-declarations.diff-B.txt new file mode 100644 index 000000000..3d5e0caf7 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.diff-B.txt @@ -0,0 +1,5 @@ +{-(Program + (ParseError + (Identifier) + (Identifier)) + (ExpressionStatements))-} diff --git a/test/fixtures/typescript/module-declarations.diffA-B.txt b/test/fixtures/typescript/module-declarations.diffA-B.txt new file mode 100644 index 000000000..1fc87e696 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.diffA-B.txt @@ -0,0 +1,7 @@ +(Program +{+(ParseError + (Identifier) + (Identifier))+} +{+(ExpressionStatements)+} +{-(Other "module" + (Identifier))-}) diff --git a/test/fixtures/typescript/module-declarations.diffB-A.txt b/test/fixtures/typescript/module-declarations.diffB-A.txt new file mode 100644 index 000000000..78a9bae14 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.diffB-A.txt @@ -0,0 +1,7 @@ +(Program +{+(Other "module" + (Identifier))+} +{-(ParseError + (Identifier) + (Identifier))-} +{-(ExpressionStatements)-}) diff --git a/test/fixtures/typescript/module-declarations.parseA.txt b/test/fixtures/typescript/module-declarations.parseA.txt new file mode 100644 index 000000000..fb8c2dff6 --- /dev/null +++ b/test/fixtures/typescript/module-declarations.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Other "module" + (Identifier))) diff --git a/test/fixtures/typescript/module-declarations.parseB.txt b/test/fixtures/typescript/module-declarations.parseB.txt new file mode 100644 index 000000000..6dda00eca --- /dev/null +++ b/test/fixtures/typescript/module-declarations.parseB.txt @@ -0,0 +1,5 @@ +(Program + (ParseError + (Identifier) + (Identifier)) + (ExpressionStatements))