1
1
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:
Rick Winfrey 2017-06-26 16:58:39 -07:00
parent cf381ab701
commit 32a22a2a5c
51 changed files with 171 additions and 152 deletions

View File

@ -2,5 +2,6 @@
(ExpressionStatements
(BooleanOperator
(Identifier)
{ (Other "||") -> (Other "&&") }
{ (Other "||")
->(Other "&&") }
(Identifier))))

View File

@ -2,5 +2,6 @@
(ExpressionStatements
(BooleanOperator
(Identifier)
{ (Other "&&") -> (Other "||") }
{ (Other "&&")
->(Other "||") }
(Identifier))))

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))+}

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))+}

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))-}

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))-}

View File

@ -2,8 +2,8 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
{ (StringLiteral)
->(StringLiteral) }))))

View File

@ -2,8 +2,8 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
{ (StringLiteral)
->(StringLiteral) }))))

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))

View File

@ -2,11 +2,9 @@
(ExpressionStatements
(Operator
(Other "delete")
{
(SubscriptAccess
{ (SubscriptAccess
(Identifier)
(StringLiteral))
->
(MemberAccess
->(MemberAccess
(Identifier)
(Identifier)) })))

View File

@ -2,11 +2,9 @@
(ExpressionStatements
(Operator
(Other "delete")
{
(MemberAccess
{ (MemberAccess
(Identifier)
(Identifier))
->
(SubscriptAccess
->(SubscriptAccess
(Identifier)
(StringLiteral)) })))

View File

@ -15,47 +15,47 @@
(Export
(Other "export_specifier"
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(Other "export_specifier"
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(Other "export_specifier"
{ (Identifier)
->(Identifier)}))
(Export
->(Identifier) }))
(Export
(VarDecl
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)}))
(Export
->(Identifier) }))
(Export
(VarAssignment
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarAssignment
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)}))
(Export
{ (Identifier)
->(Identifier)})
->(Identifier) }))
(Export
{ (Identifier)
->(Identifier) })
{+(Export
(Function
(Identifier)

View File

@ -70,7 +70,7 @@
{-(Other "export_specifier"
(Identifier)
(Identifier))-})
{+(Export
{+(Export
(Other "export_specifier"
(Identifier)
(Identifier)))+}

View File

@ -1,9 +1,14 @@
(Program
(If
{ (Identifier) -> (MemberAccess (Identifier) (Identifier)) }
{ (Identifier)
->(MemberAccess
(Identifier)
(Identifier)) }
(ExpressionStatements
(ExpressionStatements
(FunctionCall
(Identifier)
{ (Identifier) -> (Identifier) }))
{ +(ExpressionStatements (Identifier))+ })))
{ (Identifier)
->(Identifier) }))
{+(ExpressionStatements
(Identifier))+})))

View File

@ -1,9 +1,14 @@
(Program
(If
{ (MemberAccess (Identifier) (Identifier)) -> (Identifier) }
{ (MemberAccess
(Identifier)
(Identifier))
->(Identifier) }
(ExpressionStatements
(ExpressionStatements
(FunctionCall
(Identifier)
{ (Identifier) -> (Identifier) }))
{ -(ExpressionStatements (Identifier))- })))
{ (Identifier)
->(Identifier) }))
{-(ExpressionStatements
(Identifier))-})))

View File

@ -2,5 +2,6 @@
(ExpressionStatements
(RelationalOperator
(Identifier)
{ (Other "<") -> (Other "<=") }
{ (Other "<")
->(Other "<=") }
(Identifier))))

View File

@ -2,5 +2,6 @@
(ExpressionStatements
(RelationalOperator
(Identifier)
{ (Other "<=") -> (Other "<") }
{ (Other "<=")
->(Other "<") }
(Identifier))))

View File

@ -1,6 +1,8 @@
(Program
(ExpressionStatements
(Operator
{ (Other "typeof") -> (Identifier) }
{ (Identifier) -> (Other "instanceof") }
{ +(Identifier)+ })))
{ (Other "typeof")
->(Identifier) }
{ (Identifier)
->(Other "instanceof") }
{+(Identifier)+})))

View File

@ -1,6 +1,8 @@
(Program
(ExpressionStatements
(Operator
{ (Identifier) -> (Other "typeof") }
{ (Other "instanceof") -> (Identifier) }
{ -(Identifier)- })))
{ (Identifier)
->(Other "typeof") }
{ (Other "instanceof")
->(Identifier) }
{-(Identifier)-})))

View File

@ -65,7 +65,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -77,7 +77,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -11,7 +11,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -23,7 +23,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -65,7 +65,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -77,7 +77,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -11,7 +11,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -23,7 +23,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -72,7 +72,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -84,7 +84,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -74,7 +74,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -86,7 +86,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -65,7 +65,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -77,7 +77,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -11,7 +11,7 @@
(Other "ambient_declaration"
(Class
(Identifier)
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params
@ -23,7 +23,7 @@
(Identifier)
(Ty
(Other "predefined_type")))
(Other "ambient_method_declaration"
(Method
(Identifier)
(Other "call_signature"
(Params)

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))+}

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))+}

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))-}

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))-}

View File

@ -2,8 +2,8 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
{ (StringLiteral)
->(StringLiteral) }))))

View File

@ -2,8 +2,8 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
{ (StringLiteral)
->(StringLiteral) }))))

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))

View File

@ -2,7 +2,7 @@
(ExpressionStatements
(Constructor
(FunctionCall
(Identifier)
(Identifier)
(MemberAccess
(Identifier))
(NumberLiteral)
(StringLiteral)))))

View File

@ -15,47 +15,47 @@
(Export
(Other "export_specifier"
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(Other "export_specifier"
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(Other "export_specifier"
{ (Identifier)
->(Identifier)}))
(Export
->(Identifier) }))
(Export
(VarDecl
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)}))
(Export
->(Identifier) }))
(Export
(VarAssignment
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarAssignment
{ (Identifier)
->(Identifier)}
->(Identifier) }
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)})
->(Identifier) })
(VarDecl
{ (Identifier)
->(Identifier)}))
(Export
{ (Identifier)
->(Identifier)})
->(Identifier) }))
(Export
{ (Identifier)
->(Identifier) })
{+(Export
(Function
(Identifier)

View File

@ -70,7 +70,7 @@
{-(Other "export_specifier"
(Identifier)
(Identifier))-})
{+(Export
{+(Export
(Other "export_specifier"
(Identifier)
(Identifier)))+}

View File

@ -5,7 +5,7 @@
(Other "type_parameter"
(Identifier)))
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
(StringLiteral))))

View File

@ -2,7 +2,7 @@
(Interface
(Identifier)
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
(StringLiteral))))

View File

@ -5,7 +5,7 @@
(Other "type_parameter"
(Identifier)))
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
(StringLiteral))))

View File

@ -2,7 +2,7 @@
(Interface
(Identifier)
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
(StringLiteral))))

View File

@ -6,7 +6,7 @@
(Other "type_parameter"
(Identifier)))-}
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
{ (StringLiteral)

View File

@ -6,7 +6,7 @@
(Other "type_parameter"
(Identifier)))+}
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
{ (StringLiteral)

View File

@ -5,7 +5,7 @@
(Other "type_parameter"
(Identifier)))
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
(StringLiteral))))

View File

@ -2,7 +2,7 @@
(Interface
(Identifier)
(Other "property_signature"
(Identifier)
(Other "reserved_identifier")
(Ty
(Other "literal_type"
(StringLiteral))))

View File

@ -5,6 +5,7 @@
(Method
(Other "accessibility_modifier")
(Other "readonly")
(Other "reserved_identifier")
(Identifier)
(Params)
(Ty

View File

@ -5,6 +5,7 @@
(Method
(Other "accessibility_modifier")
(Other "readonly")
(Other "reserved_identifier")
(Identifier)
(Params)
(Ty

View File

@ -5,6 +5,7 @@
(Method
(Other "accessibility_modifier")
{+(Other "readonly")+}
{+(Other "reserved_identifier")+}
(Identifier)
(Params)
(Ty

View File

@ -5,6 +5,7 @@
(Method
(Other "accessibility_modifier")
{-(Other "readonly")-}
{-(Other "reserved_identifier")-}
(Identifier)
(Params)
(Ty

View File

@ -5,6 +5,7 @@
(Method
(Other "accessibility_modifier")
(Other "readonly")
(Other "reserved_identifier")
(Identifier)
(Params)
(Ty