mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Update integration tests for javascript and typescript
This commit is contained in:
parent
cf381ab701
commit
32a22a2a5c
@ -2,5 +2,6 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(BooleanOperator
|
(BooleanOperator
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Other "||") -> (Other "&&") }
|
{ (Other "||")
|
||||||
|
->(Other "&&") }
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(BooleanOperator
|
(BooleanOperator
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Other "&&") -> (Other "||") }
|
{ (Other "&&")
|
||||||
|
->(Other "||") }
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) }))))
|
->(StringLiteral) }))))
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) }))))
|
->(StringLiteral) }))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
@ -2,11 +2,9 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Operator
|
(Operator
|
||||||
(Other "delete")
|
(Other "delete")
|
||||||
{
|
{ (SubscriptAccess
|
||||||
(SubscriptAccess
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral))
|
(StringLiteral))
|
||||||
->
|
->(MemberAccess
|
||||||
(MemberAccess
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier)) })))
|
(Identifier)) })))
|
||||||
|
@ -2,11 +2,9 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Operator
|
(Operator
|
||||||
(Other "delete")
|
(Other "delete")
|
||||||
{
|
{ (MemberAccess
|
||||||
(MemberAccess
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier))
|
(Identifier))
|
||||||
->
|
->(SubscriptAccess
|
||||||
(SubscriptAccess
|
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(StringLiteral)) })))
|
(StringLiteral)) })))
|
||||||
|
54
test/fixtures/javascript/export.diffA-B.txt
vendored
54
test/fixtures/javascript/export.diffA-B.txt
vendored
@ -13,49 +13,49 @@
|
|||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
{+(Export
|
{+(Export
|
||||||
(Function
|
(Function
|
||||||
(Identifier)
|
(Identifier)
|
||||||
|
18
test/fixtures/javascript/export.diffB-A.txt
vendored
18
test/fixtures/javascript/export.diffB-A.txt
vendored
@ -64,16 +64,16 @@
|
|||||||
(Function
|
(Function
|
||||||
(Params)))
|
(Params)))
|
||||||
(Export
|
(Export
|
||||||
{+(Function
|
{+(Function
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params))+}
|
(Params))+}
|
||||||
{-(Other "export_specifier"
|
{-(Other "export_specifier"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier))-})
|
(Identifier))-})
|
||||||
{+(Export
|
{+(Export
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier)))+}
|
(Identifier)))+}
|
||||||
(Export
|
(Export
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) })
|
->(StringLiteral) })
|
||||||
|
11
test/fixtures/javascript/if.diffA-B.txt
vendored
11
test/fixtures/javascript/if.diffA-B.txt
vendored
@ -1,9 +1,14 @@
|
|||||||
(Program
|
(Program
|
||||||
(If
|
(If
|
||||||
{ (Identifier) -> (MemberAccess (Identifier) (Identifier)) }
|
{ (Identifier)
|
||||||
|
->(MemberAccess
|
||||||
|
(Identifier)
|
||||||
|
(Identifier)) }
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Identifier) -> (Identifier) }))
|
{ (Identifier)
|
||||||
{ +(ExpressionStatements (Identifier))+ })))
|
->(Identifier) }))
|
||||||
|
{+(ExpressionStatements
|
||||||
|
(Identifier))+})))
|
||||||
|
11
test/fixtures/javascript/if.diffB-A.txt
vendored
11
test/fixtures/javascript/if.diffB-A.txt
vendored
@ -1,9 +1,14 @@
|
|||||||
(Program
|
(Program
|
||||||
(If
|
(If
|
||||||
{ (MemberAccess (Identifier) (Identifier)) -> (Identifier) }
|
{ (MemberAccess
|
||||||
|
(Identifier)
|
||||||
|
(Identifier))
|
||||||
|
->(Identifier) }
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Identifier) -> (Identifier) }))
|
{ (Identifier)
|
||||||
{ -(ExpressionStatements (Identifier))- })))
|
->(Identifier) }))
|
||||||
|
{-(ExpressionStatements
|
||||||
|
(Identifier))-})))
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(RelationalOperator
|
(RelationalOperator
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Other "<") -> (Other "<=") }
|
{ (Other "<")
|
||||||
|
->(Other "<=") }
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(RelationalOperator
|
(RelationalOperator
|
||||||
(Identifier)
|
(Identifier)
|
||||||
{ (Other "<=") -> (Other "<") }
|
{ (Other "<=")
|
||||||
|
->(Other "<") }
|
||||||
(Identifier))))
|
(Identifier))))
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
(Program
|
(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Operator
|
(Operator
|
||||||
{ (Other "typeof") -> (Identifier) }
|
{ (Other "typeof")
|
||||||
{ (Identifier) -> (Other "instanceof") }
|
->(Identifier) }
|
||||||
{ +(Identifier)+ })))
|
{ (Identifier)
|
||||||
|
->(Other "instanceof") }
|
||||||
|
{+(Identifier)+})))
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
(Program
|
(Program
|
||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Operator
|
(Operator
|
||||||
{ (Identifier) -> (Other "typeof") }
|
{ (Identifier)
|
||||||
{ (Other "instanceof") -> (Identifier) }
|
->(Other "typeof") }
|
||||||
{ -(Identifier)- })))
|
{ (Other "instanceof")
|
||||||
|
->(Identifier) }
|
||||||
|
{-(Identifier)-})))
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -77,7 +77,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -23,7 +23,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -77,7 +77,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -23,7 +23,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -84,7 +84,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -86,7 +86,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -77,7 +77,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
(Other "ambient_declaration"
|
(Other "ambient_declaration"
|
||||||
(Class
|
(Class
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params
|
(Params
|
||||||
@ -23,7 +23,7 @@
|
|||||||
(Identifier)
|
(Identifier)
|
||||||
(Ty
|
(Ty
|
||||||
(Other "predefined_type")))
|
(Other "predefined_type")))
|
||||||
(Other "ambient_method_declaration"
|
(Method
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "call_signature"
|
(Other "call_signature"
|
||||||
(Params)
|
(Params)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))+}
|
(StringLiteral)))))+}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))-}
|
(StringLiteral)))))-}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) }))))
|
->(StringLiteral) }))))
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) }))))
|
->(StringLiteral) }))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(ExpressionStatements
|
(ExpressionStatements
|
||||||
(Constructor
|
(Constructor
|
||||||
(FunctionCall
|
(FunctionCall
|
||||||
(Identifier)
|
(MemberAccess
|
||||||
(Identifier)
|
(Identifier))
|
||||||
(NumberLiteral)
|
(NumberLiteral)
|
||||||
(StringLiteral)))))
|
(StringLiteral)))))
|
||||||
|
54
test/fixtures/typescript/export.diffA-B.txt
vendored
54
test/fixtures/typescript/export.diffA-B.txt
vendored
@ -13,49 +13,49 @@
|
|||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier) }))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarAssignment
|
(VarAssignment
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}
|
->(Identifier) }
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
(VarDecl
|
(VarDecl
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)}))
|
->(Identifier) }))
|
||||||
(Export
|
(Export
|
||||||
{ (Identifier)
|
{ (Identifier)
|
||||||
->(Identifier)})
|
->(Identifier) })
|
||||||
{+(Export
|
{+(Export
|
||||||
(Function
|
(Function
|
||||||
(Identifier)
|
(Identifier)
|
||||||
|
18
test/fixtures/typescript/export.diffB-A.txt
vendored
18
test/fixtures/typescript/export.diffB-A.txt
vendored
@ -64,16 +64,16 @@
|
|||||||
(Function
|
(Function
|
||||||
(Params)))
|
(Params)))
|
||||||
(Export
|
(Export
|
||||||
{+(Function
|
{+(Function
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params))+}
|
(Params))+}
|
||||||
{-(Other "export_specifier"
|
{-(Other "export_specifier"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier))-})
|
(Identifier))-})
|
||||||
{+(Export
|
{+(Export
|
||||||
(Other "export_specifier"
|
(Other "export_specifier"
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Identifier)))+}
|
(Identifier)))+}
|
||||||
(Export
|
(Export
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
->(StringLiteral) })
|
->(StringLiteral) })
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(Interface
|
(Interface
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(Interface
|
(Interface
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))-}
|
(Identifier)))-}
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))+}
|
(Identifier)))+}
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
{ (StringLiteral)
|
{ (StringLiteral)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
(Other "type_parameter"
|
(Other "type_parameter"
|
||||||
(Identifier)))
|
(Identifier)))
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
(Interface
|
(Interface
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Other "property_signature"
|
(Other "property_signature"
|
||||||
(Identifier)
|
(Other "reserved_identifier")
|
||||||
(Ty
|
(Ty
|
||||||
(Other "literal_type"
|
(Other "literal_type"
|
||||||
(StringLiteral))))
|
(StringLiteral))))
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
(Method
|
(Method
|
||||||
(Other "accessibility_modifier")
|
(Other "accessibility_modifier")
|
||||||
(Other "readonly")
|
(Other "readonly")
|
||||||
|
(Other "reserved_identifier")
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
(Method
|
(Method
|
||||||
(Other "accessibility_modifier")
|
(Other "accessibility_modifier")
|
||||||
(Other "readonly")
|
(Other "readonly")
|
||||||
|
(Other "reserved_identifier")
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
(Method
|
(Method
|
||||||
(Other "accessibility_modifier")
|
(Other "accessibility_modifier")
|
||||||
{+(Other "readonly")+}
|
{+(Other "readonly")+}
|
||||||
|
{+(Other "reserved_identifier")+}
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
(Method
|
(Method
|
||||||
(Other "accessibility_modifier")
|
(Other "accessibility_modifier")
|
||||||
{-(Other "readonly")-}
|
{-(Other "readonly")-}
|
||||||
|
{-(Other "reserved_identifier")-}
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
(Method
|
(Method
|
||||||
(Other "accessibility_modifier")
|
(Other "accessibility_modifier")
|
||||||
(Other "readonly")
|
(Other "readonly")
|
||||||
|
(Other "reserved_identifier")
|
||||||
(Identifier)
|
(Identifier)
|
||||||
(Params)
|
(Params)
|
||||||
(Ty
|
(Ty
|
||||||
|
Loading…
Reference in New Issue
Block a user