mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +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
|
||||
"template_chars" -> TemplateString
|
||||
"module" -> Module
|
||||
"ambient_namespace" -> Namespace
|
||||
"internal_module" -> Namespace
|
||||
"interface_declaration" -> Interface
|
||||
name -> Other name
|
||||
|
@ -1,9 +1,8 @@
|
||||
{+(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))+}
|
||||
|
@ -1,9 +1,8 @@
|
||||
{+(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))+}
|
||||
|
@ -1,9 +1,8 @@
|
||||
{-(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))-}
|
||||
|
@ -1,9 +1,8 @@
|
||||
{-(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))-}
|
||||
|
@ -1,11 +1,10 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) })))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) }))
|
||||
(Identifier))))
|
||||
|
@ -1,11 +1,10 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) })))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) }))
|
||||
(Identifier))))
|
||||
|
@ -1,9 +1,8 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))
|
||||
|
@ -1,9 +1,8 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))+}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))+}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))-}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))-}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
{ (StringLiteral)
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
{ (StringLiteral)
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))
|
||||
|
@ -1,4 +1,3 @@
|
||||
{+(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
(TemplateString))))+}
|
||||
(TemplateString)))+}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{+(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
(TemplateString))))+}
|
||||
(TemplateString)))+}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{-(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
(TemplateString))))-}
|
||||
(TemplateString)))-}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{-(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
(TemplateString))))-}
|
||||
(TemplateString)))-}
|
||||
|
@ -1,5 +1,4 @@
|
||||
(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
{ (TemplateString)
|
||||
->(TemplateString) })))
|
||||
{ (TemplateString)
|
||||
->(TemplateString) }))
|
||||
|
@ -1,5 +1,4 @@
|
||||
(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
{ (TemplateString)
|
||||
->(TemplateString) })))
|
||||
{ (TemplateString)
|
||||
->(TemplateString) }))
|
||||
|
@ -1,4 +1,3 @@
|
||||
(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
(TemplateString))))
|
||||
(TemplateString)))
|
||||
|
@ -1,4 +1,3 @@
|
||||
(Program
|
||||
(ExpressionStatements
|
||||
(TemplateString
|
||||
(TemplateString))))
|
||||
(TemplateString)))
|
||||
|
@ -5,11 +5,10 @@
|
||||
(FieldDecl
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))
|
||||
(Identifier)))))
|
||||
(Other "ambient_declaration"
|
||||
(Other "ambient_variable"
|
||||
(Other "ambient_binding"
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "predefined_type")))))
|
||||
|
@ -35,5 +35,4 @@
|
||||
(Other "call_signature"
|
||||
(Params)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
||||
(Identifier))))))+}
|
||||
|
@ -5,11 +5,10 @@
|
||||
(FieldDecl
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))
|
||||
(Identifier)))))
|
||||
(Other "ambient_declaration"
|
||||
(Other "ambient_variable"
|
||||
(Other "ambient_binding"
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "predefined_type")))))
|
||||
|
@ -35,5 +35,4 @@
|
||||
(Other "call_signature"
|
||||
(Params)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
||||
(Identifier))))))-}
|
||||
|
@ -9,17 +9,15 @@
|
||||
{-(FieldDecl
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))-}))
|
||||
{+(Other "ambient_declaration"
|
||||
(Interface
|
||||
(Identifier)))+}
|
||||
{-(Other "ambient_declaration"
|
||||
(Other "ambient_variable"
|
||||
(Other "ambient_binding"
|
||||
(Identifier)))-}))
|
||||
(Other "ambient_declaration"
|
||||
{+(Interface
|
||||
(Identifier))+}
|
||||
{-(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "predefined_type")))))-}
|
||||
(Other "predefined_type"))))-})
|
||||
{-(Other "ambient_declaration"
|
||||
(Other "ambient_function"
|
||||
(Identifier)
|
||||
@ -96,5 +94,4 @@
|
||||
(Other "call_signature"
|
||||
(Params)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))+})
|
||||
(Identifier)))))+})
|
||||
|
@ -5,11 +5,10 @@
|
||||
(FieldDecl
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))+}
|
||||
(Identifier)))))+}
|
||||
{+(Other "ambient_declaration"
|
||||
(Other "ambient_variable"
|
||||
(Other "ambient_binding"
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "predefined_type")))))+}
|
||||
@ -98,5 +97,4 @@
|
||||
(Other "call_signature"
|
||||
(Params)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))-})
|
||||
(Identifier)))))-})
|
||||
|
@ -5,11 +5,10 @@
|
||||
(FieldDecl
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))
|
||||
(Identifier)))))
|
||||
(Other "ambient_declaration"
|
||||
(Other "ambient_variable"
|
||||
(Other "ambient_binding"
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "predefined_type")))))
|
||||
|
@ -35,5 +35,4 @@
|
||||
(Other "call_signature"
|
||||
(Params)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
||||
(Identifier))))))
|
||||
|
@ -7,14 +7,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))))+}
|
||||
(Identifier))))))))+}
|
||||
|
@ -6,14 +6,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier))))))))+}
|
||||
(Identifier)))))))+}
|
||||
|
@ -7,14 +7,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))))-}
|
||||
(Identifier))))))))-}
|
||||
|
@ -6,14 +6,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier))))))))-}
|
||||
(Identifier)))))))-}
|
||||
|
@ -6,17 +6,15 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
||||
(Identifier))))))+}
|
||||
{-(Other "ambient_declaration"
|
||||
(Other "type_alias_declaration"
|
||||
(Identifier)
|
||||
@ -25,14 +23,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier))))))))-})
|
||||
(Identifier)))))))-})
|
||||
|
@ -7,17 +7,15 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier))))))))+}
|
||||
(Identifier)))))))+}
|
||||
{-(Other "type_alias_declaration"
|
||||
(Identifier)
|
||||
(Other "union_type"
|
||||
@ -25,14 +23,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-})
|
||||
(Identifier))))))-})
|
||||
|
@ -7,14 +7,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))))
|
||||
(Identifier))))))))
|
||||
|
@ -6,14 +6,12 @@
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "generic_type"
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "union_type"
|
||||
(Other "union_type"
|
||||
(Other "predefined_type")
|
||||
(Other "predefined_type"))
|
||||
(Other "type_reference"
|
||||
(Identifier))))))))
|
||||
(Identifier)))))))
|
||||
|
@ -4,5 +4,4 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
||||
(Identifier))))))+}
|
||||
|
@ -4,7 +4,5 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
||||
(Identifier)
|
||||
(Identifier))))))+}
|
||||
|
@ -4,5 +4,4 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
||||
(Identifier))))))-}
|
||||
|
@ -4,7 +4,5 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
||||
(Identifier)
|
||||
(Identifier))))))-}
|
||||
|
@ -4,7 +4,5 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
{+(Other "type_reference"
|
||||
(Identifier))+})))))
|
||||
(Identifier)
|
||||
{+(Identifier)+})))))
|
||||
|
@ -4,7 +4,5 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
{-(Other "type_reference"
|
||||
(Identifier))-})))))
|
||||
(Identifier)
|
||||
{-(Identifier)-})))))
|
||||
|
@ -4,5 +4,4 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
||||
(Identifier))))))
|
||||
|
@ -4,7 +4,5 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "tuple_type"
|
||||
(Other "type_reference"
|
||||
(Identifier))
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
||||
(Identifier)
|
||||
(Identifier))))))
|
||||
|
@ -1,9 +1,8 @@
|
||||
{+(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))+}
|
||||
|
@ -1,9 +1,8 @@
|
||||
{+(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))+}
|
||||
|
@ -1,9 +1,8 @@
|
||||
{-(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))-}
|
||||
|
@ -1,9 +1,8 @@
|
||||
{-(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))-}
|
||||
|
@ -1,11 +1,10 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) })))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) }))
|
||||
(Identifier))))
|
||||
|
@ -1,11 +1,10 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) })))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (NumberLiteral)
|
||||
->(NumberLiteral) }))
|
||||
(Identifier))))
|
||||
|
@ -1,9 +1,8 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))
|
||||
|
@ -1,9 +1,8 @@
|
||||
(Program
|
||||
(Other "variable_declaration"
|
||||
(VarAssignment
|
||||
(Other "destructuring_pattern"
|
||||
(Object
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral))))
|
||||
(Other "object_pattern"
|
||||
(Other "assignment_pattern"
|
||||
(Identifier)
|
||||
(NumberLiteral)))
|
||||
(Identifier))))
|
||||
|
3
test/fixtures/typescript/class.diff+A.txt
vendored
3
test/fixtures/typescript/class.diff+A.txt
vendored
@ -7,8 +7,7 @@
|
||||
(Identifier)))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
(Identifier))))
|
||||
(Identifier)))
|
||||
(FieldDecl
|
||||
(Identifier)
|
||||
(NumberLiteral))
|
||||
|
3
test/fixtures/typescript/class.diff+B.txt
vendored
3
test/fixtures/typescript/class.diff+B.txt
vendored
@ -7,8 +7,7 @@
|
||||
(Identifier)))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
(Identifier))))
|
||||
(Identifier)))
|
||||
(Method
|
||||
(Identifier)
|
||||
(Params
|
||||
|
3
test/fixtures/typescript/class.diff-A.txt
vendored
3
test/fixtures/typescript/class.diff-A.txt
vendored
@ -7,8 +7,7 @@
|
||||
(Identifier)))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
(Identifier))))
|
||||
(Identifier)))
|
||||
(FieldDecl
|
||||
(Identifier)
|
||||
(NumberLiteral))
|
||||
|
3
test/fixtures/typescript/class.diff-B.txt
vendored
3
test/fixtures/typescript/class.diff-B.txt
vendored
@ -7,8 +7,7 @@
|
||||
(Identifier)))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
(Identifier))))
|
||||
(Identifier)))
|
||||
(Method
|
||||
(Identifier)
|
||||
(Params
|
||||
|
5
test/fixtures/typescript/class.diffA-B.txt
vendored
5
test/fixtures/typescript/class.diffA-B.txt
vendored
@ -9,9 +9,8 @@
|
||||
->(Identifier) }))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
{ (Identifier)
|
||||
->(Identifier) })))
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
{+(Method
|
||||
(Identifier)
|
||||
(Params
|
||||
|
5
test/fixtures/typescript/class.diffB-A.txt
vendored
5
test/fixtures/typescript/class.diffB-A.txt
vendored
@ -9,9 +9,8 @@
|
||||
->(Identifier) }))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
{ (Identifier)
|
||||
->(Identifier) })))
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
{+(FieldDecl
|
||||
(Identifier)
|
||||
(NumberLiteral))+}
|
||||
|
3
test/fixtures/typescript/class.parseA.txt
vendored
3
test/fixtures/typescript/class.parseA.txt
vendored
@ -7,8 +7,7 @@
|
||||
(Identifier)))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
(Identifier))))
|
||||
(Identifier)))
|
||||
(FieldDecl
|
||||
(Identifier)
|
||||
(NumberLiteral))
|
||||
|
3
test/fixtures/typescript/class.parseB.txt
vendored
3
test/fixtures/typescript/class.parseB.txt
vendored
@ -7,8 +7,7 @@
|
||||
(Identifier)))
|
||||
(Other "class_heritage"
|
||||
(Other "extends_clause"
|
||||
(Other "type_reference"
|
||||
(Identifier))))
|
||||
(Identifier)))
|
||||
(Method
|
||||
(Identifier)
|
||||
(Params
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))+}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))+}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))-}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))-}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
{ (StringLiteral)
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
{ (StringLiteral)
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))
|
||||
|
@ -2,7 +2,7 @@
|
||||
(ExpressionStatements
|
||||
(Constructor
|
||||
(FunctionCall
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
(NumberLiteral)
|
||||
(StringLiteral)))))
|
||||
|
@ -3,7 +3,6 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(StringLiteral))))+}
|
||||
|
@ -3,7 +3,6 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(StringLiteral))))+}
|
||||
|
@ -3,7 +3,6 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(StringLiteral))))-}
|
||||
|
@ -3,7 +3,6 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(StringLiteral))))-}
|
||||
|
@ -3,9 +3,8 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(Identifier)
|
||||
{ (StringLiteral)
|
||||
->(StringLiteral) })))
|
||||
|
@ -3,9 +3,8 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
{ (Identifier)
|
||||
->(Identifier) })
|
||||
(Identifier)
|
||||
{ (StringLiteral)
|
||||
->(StringLiteral) })))
|
||||
|
@ -3,7 +3,6 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(StringLiteral))))
|
||||
|
@ -3,7 +3,6 @@
|
||||
(FunctionCall
|
||||
(Identifier)
|
||||
(Other "type_arguments"
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(Identifier)
|
||||
(StringLiteral))))
|
||||
|
@ -5,5 +5,4 @@
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
(Params)
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
||||
(Identifier))))))+}
|
||||
|
@ -4,5 +4,4 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))+}
|
||||
(Identifier))))))+}
|
||||
|
@ -5,5 +5,4 @@
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
(Params)
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
||||
(Identifier))))))-}
|
||||
|
@ -4,5 +4,4 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))-}
|
||||
(Identifier))))))-}
|
||||
|
@ -5,5 +5,4 @@
|
||||
(Ty
|
||||
(Other "array_type"
|
||||
{-(Params)-}
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
||||
(Identifier))))))
|
||||
|
@ -5,5 +5,4 @@
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
{+(Params)+}
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
||||
(Identifier))))))
|
||||
|
@ -5,5 +5,4 @@
|
||||
(Ty
|
||||
(Other "function_type"
|
||||
(Params)
|
||||
(Other "type_reference"
|
||||
(Identifier)))))))
|
||||
(Identifier))))))
|
||||
|
@ -4,5 +4,4 @@
|
||||
(Identifier)
|
||||
(Ty
|
||||
(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"
|
||||
(Identifier)))
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(ExpressionStatements
|
||||
(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"
|
||||
(Identifier)))
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(ExpressionStatements
|
||||
(Identifier))))-}
|
||||
|
@ -13,8 +13,7 @@
|
||||
(Other "required_parameter"
|
||||
(Identifier)))
|
||||
->(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))) }
|
||||
(Identifier)) }
|
||||
{-(Ty
|
||||
(Other "predefined_type"))-}
|
||||
(ExpressionStatements
|
||||
|
@ -8,8 +8,7 @@
|
||||
{-(Other "required_parameter"
|
||||
(Identifier))-})
|
||||
{ (Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
->(Params
|
||||
(Other "required_parameter"
|
||||
(Identifier))
|
||||
|
3
test/fixtures/typescript/function.parseB.txt
vendored
3
test/fixtures/typescript/function.parseB.txt
vendored
@ -6,7 +6,6 @@
|
||||
(Other "required_parameter"
|
||||
(Identifier)))
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier)))
|
||||
(Identifier))
|
||||
(ExpressionStatements
|
||||
(Identifier))))
|
||||
|
@ -5,7 +5,7 @@
|
||||
(Other "type_parameter"
|
||||
(Identifier)))
|
||||
(Other "property_signature"
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "literal_type"
|
||||
(StringLiteral))))
|
||||
@ -13,5 +13,4 @@
|
||||
(Other "readonly")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))+}
|
||||
(Identifier)))))+}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(Interface
|
||||
(Identifier)
|
||||
(Other "property_signature"
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "literal_type"
|
||||
(StringLiteral))))
|
||||
@ -10,5 +10,4 @@
|
||||
(Other "readonly")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))+}
|
||||
(Identifier)))))+}
|
||||
|
@ -5,7 +5,7 @@
|
||||
(Other "type_parameter"
|
||||
(Identifier)))
|
||||
(Other "property_signature"
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "literal_type"
|
||||
(StringLiteral))))
|
||||
@ -13,5 +13,4 @@
|
||||
(Other "readonly")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))-}
|
||||
(Identifier)))))-}
|
||||
|
@ -2,7 +2,7 @@
|
||||
(Interface
|
||||
(Identifier)
|
||||
(Other "property_signature"
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "literal_type"
|
||||
(StringLiteral))))
|
||||
@ -10,5 +10,4 @@
|
||||
(Other "readonly")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
(Identifier))))))-}
|
||||
(Identifier)))))-}
|
||||
|
@ -6,7 +6,7 @@
|
||||
(Other "type_parameter"
|
||||
(Identifier)))-}
|
||||
(Other "property_signature"
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "literal_type"
|
||||
{ (StringLiteral)
|
||||
@ -16,6 +16,5 @@
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Ty
|
||||
(Other "type_reference"
|
||||
{ (Identifier)
|
||||
->(Identifier) })))))
|
||||
{ (Identifier)
|
||||
->(Identifier) }))))
|
||||
|
@ -6,7 +6,7 @@
|
||||
(Other "type_parameter"
|
||||
(Identifier)))+}
|
||||
(Other "property_signature"
|
||||
(Other "reserved_identifier")
|
||||
(Identifier)
|
||||
(Ty
|
||||
(Other "literal_type"
|
||||
{ (StringLiteral)
|
||||
@ -16,6 +16,5 @@
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(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