mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
Update for TypeScript grammar changes
This commit is contained in:
parent
f38dc3f578
commit
9f41276e3b
@ -161,6 +161,6 @@ categoryForTypeScriptName category = case category of
|
|||||||
"type_annotation" -> Ty
|
"type_annotation" -> Ty
|
||||||
"template_chars" -> TemplateString
|
"template_chars" -> TemplateString
|
||||||
"module" -> Module
|
"module" -> Module
|
||||||
"ambient_namespace" -> Namespace
|
"internal_module" -> Namespace
|
||||||
"interface_declaration" -> Interface
|
"interface_declaration" -> Interface
|
||||||
name -> Other name
|
name -> Other name
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{+(Program
|
{+(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))+}
|
(Identifier))))+}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{+(Program
|
{+(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))+}
|
(Identifier))))+}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{-(Program
|
{-(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))-}
|
(Identifier))))-}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{-(Program
|
{-(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))-}
|
(Identifier))))-}
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
{ (NumberLiteral)
|
{ (NumberLiteral)
|
||||||
->(NumberLiteral) })))
|
->(NumberLiteral) }))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
{ (NumberLiteral)
|
{ (NumberLiteral)
|
||||||
->(NumberLiteral) })))
|
->(NumberLiteral) }))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{+(Program
|
{+(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
(TemplateString)))+}
|
||||||
(TemplateString))))+}
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{+(Program
|
{+(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
(TemplateString)))+}
|
||||||
(TemplateString))))+}
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{-(Program
|
{-(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
(TemplateString)))-}
|
||||||
(TemplateString))))-}
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{-(Program
|
{-(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
(TemplateString)))-}
|
||||||
(TemplateString))))-}
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
(Program
|
(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
|
||||||
{ (TemplateString)
|
{ (TemplateString)
|
||||||
->(TemplateString) })))
|
->(TemplateString) }))
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
(Program
|
(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
|
||||||
{ (TemplateString)
|
{ (TemplateString)
|
||||||
->(TemplateString) })))
|
->(TemplateString) }))
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
(Program
|
(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
(TemplateString)))
|
||||||
(TemplateString))))
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
(Program
|
(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(TemplateString
|
(TemplateString)))
|
||||||
(TemplateString))))
|
|
||||||
|
@ -5,11 +5,10 @@
|
|||||||
(FieldDecl
|
(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))
|
||||||
(Identifier))))))
|
|
||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Other "ambient_variable"
|
(Other "variable_declaration"
|
||||||
(Other "ambient_binding"
|
(VarAssignment
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))))
|
(Other "predefined_type")))))
|
||||||
|
@ -35,5 +35,4 @@
|
|||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier))))))+}
|
||||||
(Identifier)))))))+}
|
|
||||||
|
@ -5,11 +5,10 @@
|
|||||||
(FieldDecl
|
(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))
|
||||||
(Identifier))))))
|
|
||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Other "ambient_variable"
|
(Other "variable_declaration"
|
||||||
(Other "ambient_binding"
|
(VarAssignment
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))))
|
(Other "predefined_type")))))
|
||||||
|
@ -35,5 +35,4 @@
|
|||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier))))))-}
|
||||||
(Identifier)))))))-}
|
|
||||||
|
@ -9,17 +9,15 @@
|
|||||||
{-(FieldDecl
|
{-(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))-}))
|
||||||
(Identifier))))-}))
|
(Other "ambient_declaration"
|
||||||
{+(Other "ambient_declaration"
|
{+(Interface
|
||||||
(Interface
|
(Identifier))+}
|
||||||
(Identifier)))+}
|
{-(Other "variable_declaration"
|
||||||
{-(Other "ambient_declaration"
|
(VarAssignment
|
||||||
(Other "ambient_variable"
|
|
||||||
(Other "ambient_binding"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))))-}
|
(Other "predefined_type"))))-})
|
||||||
{-(Other "ambient_declaration"
|
{-(Other "ambient_declaration"
|
||||||
(Other "ambient_function"
|
(Other "ambient_function"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
@ -96,5 +94,4 @@
|
|||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))+})
|
||||||
(Identifier))))))+})
|
|
||||||
|
@ -5,11 +5,10 @@
|
|||||||
(FieldDecl
|
(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))+}
|
||||||
(Identifier))))))+}
|
|
||||||
{+(Other "ambient_declaration"
|
{+(Other "ambient_declaration"
|
||||||
(Other "ambient_variable"
|
(Other "variable_declaration"
|
||||||
(Other "ambient_binding"
|
(VarAssignment
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))))+}
|
(Other "predefined_type")))))+}
|
||||||
@ -98,5 +97,4 @@
|
|||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))-})
|
||||||
(Identifier))))))-})
|
|
||||||
|
@ -5,11 +5,10 @@
|
|||||||
(FieldDecl
|
(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))
|
||||||
(Identifier))))))
|
|
||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Other "ambient_variable"
|
(Other "variable_declaration"
|
||||||
(Other "ambient_binding"
|
(VarAssignment
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))))
|
(Other "predefined_type")))))
|
||||||
|
@ -35,5 +35,4 @@
|
|||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier))))))
|
||||||
(Identifier)))))))
|
|
||||||
|
@ -7,14 +7,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))))))))+}
|
||||||
(Identifier)))))))))+}
|
|
||||||
|
@ -6,14 +6,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier)))))))+}
|
||||||
(Identifier))))))))+}
|
|
||||||
|
@ -7,14 +7,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))))))))-}
|
||||||
(Identifier)))))))))-}
|
|
||||||
|
@ -6,14 +6,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier)))))))-}
|
||||||
(Identifier))))))))-}
|
|
||||||
|
@ -6,17 +6,15 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))))))+}
|
||||||
(Identifier)))))))+}
|
|
||||||
{-(Other "ambient_declaration"
|
{-(Other "ambient_declaration"
|
||||||
(Other "type_alias_declaration"
|
(Other "type_alias_declaration"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
@ -25,14 +23,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier)))))))-})
|
||||||
(Identifier))))))))-})
|
|
||||||
|
@ -7,17 +7,15 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier)))))))+}
|
||||||
(Identifier))))))))+}
|
|
||||||
{-(Other "type_alias_declaration"
|
{-(Other "type_alias_declaration"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
@ -25,14 +23,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))))))-})
|
||||||
(Identifier)))))))-})
|
|
||||||
|
@ -7,14 +7,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))))))))
|
||||||
(Identifier)))))))))
|
|
||||||
|
@ -6,14 +6,12 @@
|
|||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
(Other "generic_type"
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "union_type"
|
(Other "union_type"
|
||||||
(Other "predefined_type")
|
(Other "predefined_type")
|
||||||
(Other "predefined_type"))
|
(Other "predefined_type"))
|
||||||
(Other "type_reference"
|
(Identifier)))))))
|
||||||
(Identifier))))))))
|
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
(Other "type_reference"
|
(Identifier))))))+}
|
||||||
(Identifier)))))))+}
|
|
||||||
|
@ -4,7 +4,5 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "tuple_type"
|
(Other "tuple_type"
|
||||||
(Other "type_reference"
|
(Identifier)
|
||||||
(Identifier))
|
(Identifier))))))+}
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)))))))+}
|
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
(Other "type_reference"
|
(Identifier))))))-}
|
||||||
(Identifier)))))))-}
|
|
||||||
|
@ -4,7 +4,5 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "tuple_type"
|
(Other "tuple_type"
|
||||||
(Other "type_reference"
|
(Identifier)
|
||||||
(Identifier))
|
(Identifier))))))-}
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)))))))-}
|
|
||||||
|
@ -4,7 +4,5 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "tuple_type"
|
(Other "tuple_type"
|
||||||
(Other "type_reference"
|
(Identifier)
|
||||||
(Identifier))
|
{+(Identifier)+})))))
|
||||||
{+(Other "type_reference"
|
|
||||||
(Identifier))+})))))
|
|
||||||
|
@ -4,7 +4,5 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
(Other "type_reference"
|
(Identifier)
|
||||||
(Identifier))
|
{-(Identifier)-})))))
|
||||||
{-(Other "type_reference"
|
|
||||||
(Identifier))-})))))
|
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
(Other "type_reference"
|
(Identifier))))))
|
||||||
(Identifier)))))))
|
|
||||||
|
@ -4,7 +4,5 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "tuple_type"
|
(Other "tuple_type"
|
||||||
(Other "type_reference"
|
(Identifier)
|
||||||
(Identifier))
|
(Identifier))))))
|
||||||
(Other "type_reference"
|
|
||||||
(Identifier)))))))
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{+(Program
|
{+(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))+}
|
(Identifier))))+}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{+(Program
|
{+(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))+}
|
(Identifier))))+}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{-(Program
|
{-(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))-}
|
(Identifier))))-}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{-(Program
|
{-(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))-}
|
(Identifier))))-}
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
{ (NumberLiteral)
|
{ (NumberLiteral)
|
||||||
->(NumberLiteral) })))
|
->(NumberLiteral) }))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
{ (NumberLiteral)
|
{ (NumberLiteral)
|
||||||
->(NumberLiteral) })))
|
->(NumberLiteral) }))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
(Program
|
(Program
|
||||||
(Other "variable_declaration"
|
(Other "variable_declaration"
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
(Other "destructuring_pattern"
|
(Other "object_pattern"
|
||||||
(Object
|
|
||||||
(Other "assignment_pattern"
|
(Other "assignment_pattern"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))))
|
(NumberLiteral)))
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
3
test/fixtures/typescript/class.diff+A.txt
vendored
3
test/fixtures/typescript/class.diff+A.txt
vendored
@ -7,8 +7,7 @@
|
|||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
(Identifier)))
|
||||||
(Identifier))))
|
|
||||||
(FieldDecl
|
(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))
|
(NumberLiteral))
|
||||||
|
3
test/fixtures/typescript/class.diff+B.txt
vendored
3
test/fixtures/typescript/class.diff+B.txt
vendored
@ -7,8 +7,7 @@
|
|||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
(Identifier)))
|
||||||
(Identifier))))
|
|
||||||
(Method
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params
|
(Params
|
||||||
|
3
test/fixtures/typescript/class.diff-A.txt
vendored
3
test/fixtures/typescript/class.diff-A.txt
vendored
@ -7,8 +7,7 @@
|
|||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
(Identifier)))
|
||||||
(Identifier))))
|
|
||||||
(FieldDecl
|
(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))
|
(NumberLiteral))
|
||||||
|
3
test/fixtures/typescript/class.diff-B.txt
vendored
3
test/fixtures/typescript/class.diff-B.txt
vendored
@ -7,8 +7,7 @@
|
|||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
(Identifier)))
|
||||||
(Identifier))))
|
|
||||||
(Method
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params
|
(Params
|
||||||
|
3
test/fixtures/typescript/class.diffA-B.txt
vendored
3
test/fixtures/typescript/class.diffA-B.txt
vendored
@ -9,9 +9,8 @@
|
|||||||
->(Identifier) }))
|
->(Identifier) }))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) })))
|
->(Identifier) }))
|
||||||
{+(Method
|
{+(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params
|
(Params
|
||||||
|
3
test/fixtures/typescript/class.diffB-A.txt
vendored
3
test/fixtures/typescript/class.diffB-A.txt
vendored
@ -9,9 +9,8 @@
|
|||||||
->(Identifier) }))
|
->(Identifier) }))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) })))
|
->(Identifier) }))
|
||||||
{+(FieldDecl
|
{+(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))+}
|
(NumberLiteral))+}
|
||||||
|
3
test/fixtures/typescript/class.parseA.txt
vendored
3
test/fixtures/typescript/class.parseA.txt
vendored
@ -7,8 +7,7 @@
|
|||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
(Identifier)))
|
||||||
(Identifier))))
|
|
||||||
(FieldDecl
|
(FieldDecl
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral))
|
(NumberLiteral))
|
||||||
|
3
test/fixtures/typescript/class.parseB.txt
vendored
3
test/fixtures/typescript/class.parseB.txt
vendored
@ -7,8 +7,7 @@
|
|||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "class_heritage"
|
(Other "class_heritage"
|
||||||
(Other "extends_clause"
|
(Other "extends_clause"
|
||||||
(Other "type_reference"
|
(Identifier)))
|
||||||
(Identifier))))
|
|
||||||
(Method
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params
|
(Params
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral))))+}
|
(StringLiteral))))+}
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral))))+}
|
(StringLiteral))))+}
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral))))-}
|
(StringLiteral))))-}
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral))))-}
|
(StringLiteral))))-}
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }))
|
->(Identifier) })
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) })))
|
->(StringLiteral) })))
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }))
|
->(Identifier) })
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) })))
|
->(StringLiteral) })))
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "type_arguments"
|
(Other "type_arguments"
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -5,5 +5,4 @@
|
|||||||
(Ty
|
(Ty
|
||||||
(Other "function_type"
|
(Other "function_type"
|
||||||
(Params)
|
(Params)
|
||||||
(Other "type_reference"
|
(Identifier))))))+}
|
||||||
(Identifier)))))))+}
|
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
(Other "type_reference"
|
(Identifier))))))+}
|
||||||
(Identifier)))))))+}
|
|
||||||
|
@ -5,5 +5,4 @@
|
|||||||
(Ty
|
(Ty
|
||||||
(Other "function_type"
|
(Other "function_type"
|
||||||
(Params)
|
(Params)
|
||||||
(Other "type_reference"
|
(Identifier))))))-}
|
||||||
(Identifier)))))))-}
|
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
(Other "type_reference"
|
(Identifier))))))-}
|
||||||
(Identifier)))))))-}
|
|
||||||
|
@ -5,5 +5,4 @@
|
|||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
{-(Params)-}
|
{-(Params)-}
|
||||||
(Other "type_reference"
|
(Identifier))))))
|
||||||
(Identifier)))))))
|
|
||||||
|
@ -5,5 +5,4 @@
|
|||||||
(Ty
|
(Ty
|
||||||
(Other "function_type"
|
(Other "function_type"
|
||||||
{+(Params)+}
|
{+(Params)+}
|
||||||
(Other "type_reference"
|
(Identifier))))))
|
||||||
(Identifier)))))))
|
|
||||||
|
@ -5,5 +5,4 @@
|
|||||||
(Ty
|
(Ty
|
||||||
(Other "function_type"
|
(Other "function_type"
|
||||||
(Params)
|
(Params)
|
||||||
(Other "type_reference"
|
(Identifier))))))
|
||||||
(Identifier)))))))
|
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "array_type"
|
(Other "array_type"
|
||||||
(Other "type_reference"
|
(Identifier))))))
|
||||||
(Identifier)))))))
|
|
||||||
|
3
test/fixtures/typescript/function.diff+B.txt
vendored
3
test/fixtures/typescript/function.diff+B.txt
vendored
@ -6,7 +6,6 @@
|
|||||||
(Other "required_parameter"
|
(Other "required_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Identifier))))+}
|
(Identifier))))+}
|
||||||
|
3
test/fixtures/typescript/function.diff-B.txt
vendored
3
test/fixtures/typescript/function.diff-B.txt
vendored
@ -6,7 +6,6 @@
|
|||||||
(Other "required_parameter"
|
(Other "required_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Identifier))))-}
|
(Identifier))))-}
|
||||||
|
@ -13,8 +13,7 @@
|
|||||||
(Other "required_parameter"
|
(Other "required_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
->(Ty
|
->(Ty
|
||||||
(Other "type_reference"
|
(Identifier)) }
|
||||||
(Identifier))) }
|
|
||||||
{-(Ty
|
{-(Ty
|
||||||
(Other "predefined_type"))-}
|
(Other "predefined_type"))-}
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
{-(Other "required_parameter"
|
{-(Other "required_parameter"
|
||||||
(Identifier))-})
|
(Identifier))-})
|
||||||
{ (Ty
|
{ (Ty
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
->(Params
|
->(Params
|
||||||
(Other "required_parameter"
|
(Other "required_parameter"
|
||||||
(Identifier))
|
(Identifier))
|
||||||
|
3
test/fixtures/typescript/function.parseB.txt
vendored
3
test/fixtures/typescript/function.parseB.txt
vendored
@ -6,7 +6,6 @@
|
|||||||
(Other "required_parameter"
|
(Other "required_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier))
|
||||||
(Identifier)))
|
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
@ -13,5 +13,4 @@
|
|||||||
(Other "readonly")
|
(Other "readonly")
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))+}
|
||||||
(Identifier))))))+}
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(Interface
|
(Interface
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
@ -10,5 +10,4 @@
|
|||||||
(Other "readonly")
|
(Other "readonly")
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))+}
|
||||||
(Identifier))))))+}
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
@ -13,5 +13,4 @@
|
|||||||
(Other "readonly")
|
(Other "readonly")
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))-}
|
||||||
(Identifier))))))-}
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(Interface
|
(Interface
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
@ -10,5 +10,4 @@
|
|||||||
(Other "readonly")
|
(Other "readonly")
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
(Identifier)))))-}
|
||||||
(Identifier))))))-}
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))-}
|
(Identifier)))-}
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
@ -16,6 +16,5 @@
|
|||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) })))))
|
->(Identifier) }))))
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))+}
|
(Identifier)))+}
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Other "reserved_identifier")
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
@ -16,6 +16,5 @@
|
|||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }
|
->(Identifier) }
|
||||||
(Ty
|
(Ty
|
||||||
(Other "type_reference"
|
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) })))))
|
->(Identifier) }))))
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user