mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
Add typeof type tests
This commit is contained in:
parent
40423e47d5
commit
0d123d1936
2
test/fixtures/typescript/typeof-types.A.ts
vendored
Normal file
2
test/fixtures/typescript/typeof-types.A.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
let foo: Z;
|
||||
let bar: typeof Foo;
|
2
test/fixtures/typescript/typeof-types.B.ts
vendored
Normal file
2
test/fixtures/typescript/typeof-types.B.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
let foo: typeof Bar;
|
||||
let bar: G;
|
13
test/fixtures/typescript/typeof-types.diff+A.txt
vendored
Normal file
13
test/fixtures/typescript/typeof-types.diff+A.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{+(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
(Identifier))))))+}
|
13
test/fixtures/typescript/typeof-types.diff+B.txt
vendored
Normal file
13
test/fixtures/typescript/typeof-types.diff+B.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{+(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
(Identifier)))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))+}
|
13
test/fixtures/typescript/typeof-types.diff-A.txt
vendored
Normal file
13
test/fixtures/typescript/typeof-types.diff-A.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{-(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
(Identifier))))))-}
|
13
test/fixtures/typescript/typeof-types.diff-B.txt
vendored
Normal file
13
test/fixtures/typescript/typeof-types.diff-B.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{-(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
(Identifier)))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))-}
|
15
test/fixtures/typescript/typeof-types.diffA-B.txt
vendored
Normal file
15
test/fixtures/typescript/typeof-types.diffA-B.txt
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
{ (Identifier)
|
||||
->(Identifier) }))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
{ (Identifier)
|
||||
->(Identifier) })))))
|
15
test/fixtures/typescript/typeof-types.diffB-A.txt
vendored
Normal file
15
test/fixtures/typescript/typeof-types.diffB-A.txt
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
{ (Identifier)
|
||||
->(Identifier) }))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
{ (Identifier)
|
||||
->(Identifier) })))))
|
13
test/fixtures/typescript/typeof-types.parseA.txt
vendored
Normal file
13
test/fixtures/typescript/typeof-types.parseA.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
(Identifier))))))
|
13
test/fixtures/typescript/typeof-types.parseB.txt
vendored
Normal file
13
test/fixtures/typescript/typeof-types.parseB.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_query"
|
||||
(Identifier)))))
|
||||
(Other "lexical_declaration"
|
||||
(Other "variable_declarator"
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))
|
Loading…
Reference in New Issue
Block a user