1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +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 (ExpressionStatements
(BooleanOperator (BooleanOperator
(Identifier) (Identifier)
{ (Other "||") -> (Other "&&") } { (Other "||")
->(Other "&&") }
(Identifier)))) (Identifier))))

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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))+})))

View File

@ -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))-})))

View File

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

View File

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

View File

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

View File

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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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))))

View File

@ -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))))

View File

@ -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))))

View File

@ -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))))

View File

@ -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)

View File

@ -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)

View File

@ -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))))

View File

@ -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))))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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