1
1
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:
joshvera 2017-03-28 11:19:45 -04:00
parent 30c605f0a6
commit f2666fd5bd
10 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1 @@
let x: [A,B];

View File

@ -0,0 +1 @@
let x: A & B;

View File

@ -0,0 +1,10 @@
{+(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "tuple_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))+}

View File

@ -0,0 +1,10 @@
{+(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "intersection_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))+}

View File

@ -0,0 +1,10 @@
{-(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "tuple_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))-}

View File

@ -0,0 +1,10 @@
{-(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "intersection_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))-}

View File

@ -0,0 +1,10 @@
(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "intersection_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))

View File

@ -0,0 +1,10 @@
(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "tuple_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))

View File

@ -0,0 +1,10 @@
(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "tuple_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))

View File

@ -0,0 +1,10 @@
(Program
(Other "lexical_declaration"
(VarAssignment
(Identifier)
(Ty
(Other "intersection_type"
(Other "type_reference"
(Identifier))
(Other "type_reference"
(Identifier)))))))