mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
Add tuple type
This commit is contained in:
parent
30c605f0a6
commit
f2666fd5bd
1
test/fixtures/typescript/tuple-type.A.ts
vendored
Normal file
1
test/fixtures/typescript/tuple-type.A.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
let x: [A,B];
|
1
test/fixtures/typescript/tuple-type.B.ts
vendored
Normal file
1
test/fixtures/typescript/tuple-type.B.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
let x: A & B;
|
10
test/fixtures/typescript/tuple-type.diff+A.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.diff+A.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{+(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
10
test/fixtures/typescript/tuple-type.diff+B.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.diff+B.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{+(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "intersection_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
10
test/fixtures/typescript/tuple-type.diff-A.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.diff-A.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{-(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
10
test/fixtures/typescript/tuple-type.diff-B.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.diff-B.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{-(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "intersection_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
10
test/fixtures/typescript/tuple-type.diffA-B.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.diffA-B.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "intersection_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
10
test/fixtures/typescript/tuple-type.diffB-A.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.diffB-A.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
10
test/fixtures/typescript/tuple-type.parseA.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.parseA.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
10
test/fixtures/typescript/tuple-type.parseB.txt
vendored
Normal file
10
test/fixtures/typescript/tuple-type.parseB.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "intersection_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
Loading…
Reference in New Issue
Block a user