mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Add function type and array type
This commit is contained in:
parent
f2666fd5bd
commit
285bd71606
1
test/fixtures/typescript/array-type.A.ts
vendored
Normal file
1
test/fixtures/typescript/array-type.A.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
let x: A[];
|
1
test/fixtures/typescript/array-type.B.ts
vendored
Normal file
1
test/fixtures/typescript/array-type.B.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
let x: [A,B];
|
8
test/fixtures/typescript/array-type.diff+A.txt
vendored
Normal file
8
test/fixtures/typescript/array-type.diff+A.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{+(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
10
test/fixtures/typescript/array-type.diff+B.txt
vendored
Normal file
10
test/fixtures/typescript/array-type.diff+B.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)))))))+}
|
8
test/fixtures/typescript/array-type.diff-A.txt
vendored
Normal file
8
test/fixtures/typescript/array-type.diff-A.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{-(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
10
test/fixtures/typescript/array-type.diff-B.txt
vendored
Normal file
10
test/fixtures/typescript/array-type.diff-B.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/array-type.diffA-B.txt
vendored
Normal file
10
test/fixtures/typescript/array-type.diffA-B.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/array-type.diffB-A.txt
vendored
Normal file
10
test/fixtures/typescript/array-type.diffB-A.txt
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
{-(Other "type_reference"
|
||||
(Identifier))-})))))
|
8
test/fixtures/typescript/array-type.parseA.txt
vendored
Normal file
8
test/fixtures/typescript/array-type.parseA.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
10
test/fixtures/typescript/array-type.parseB.txt
vendored
Normal file
10
test/fixtures/typescript/array-type.parseB.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)))))))
|
1
test/fixtures/typescript/function-type.A.ts
vendored
Normal file
1
test/fixtures/typescript/function-type.A.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
let x: () => A;
|
1
test/fixtures/typescript/function-type.B.ts
vendored
Normal file
1
test/fixtures/typescript/function-type.B.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
let x: A[];
|
9
test/fixtures/typescript/function-type.diff+A.txt
vendored
Normal file
9
test/fixtures/typescript/function-type.diff+A.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{+(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
(Params)
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
8
test/fixtures/typescript/function-type.diff+B.txt
vendored
Normal file
8
test/fixtures/typescript/function-type.diff+B.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{+(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
9
test/fixtures/typescript/function-type.diff-A.txt
vendored
Normal file
9
test/fixtures/typescript/function-type.diff-A.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{-(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
(Params)
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
8
test/fixtures/typescript/function-type.diff-B.txt
vendored
Normal file
8
test/fixtures/typescript/function-type.diff-B.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{-(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
9
test/fixtures/typescript/function-type.diffA-B.txt
vendored
Normal file
9
test/fixtures/typescript/function-type.diffA-B.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
{-(Params)-}
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
9
test/fixtures/typescript/function-type.diffB-A.txt
vendored
Normal file
9
test/fixtures/typescript/function-type.diffB-A.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
{+(Params)+}
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
9
test/fixtures/typescript/function-type.parseA.txt
vendored
Normal file
9
test/fixtures/typescript/function-type.parseA.txt
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
(Params)
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
8
test/fixtures/typescript/function-type.parseB.txt
vendored
Normal file
8
test/fixtures/typescript/function-type.parseB.txt
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
(Program
|
||||
(Other "lexical_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
Loading…
Reference in New Issue
Block a user