1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Update the integration test fixtures.

This commit is contained in:
Rob Rix 2017-08-09 11:40:30 -04:00
parent 887d0c0176
commit 769196ca39
23 changed files with 319 additions and 405 deletions

View File

@ -4,6 +4,10 @@
(Function
(Identifier)
(Args)
{+(FunctionCall
(Identifier)
(Identifier)
(Identifier))+}
{+(FunctionCall
(Identifier)
(Identifier)
@ -13,10 +17,6 @@
->(Identifier) }
(Identifier)
(Identifier))
{+(FunctionCall
(Identifier)
(Identifier)
(Identifier))+}
{-(FunctionCall
(Identifier)
(Identifier)

View File

@ -4,6 +4,10 @@
(Function
(Identifier)
(Args)
{+(FunctionCall
(Identifier)
(Identifier)
(Identifier))+}
{+(FunctionCall
(Identifier)
(Identifier)
@ -13,10 +17,6 @@
->(Identifier) }
(Identifier)
(Identifier))
{+(FunctionCall
(Identifier)
(Identifier)
(Identifier))+}
{-(FunctionCall
(Identifier)
(Identifier)

View File

@ -6,12 +6,13 @@
(Args)
(Other "const_declaration"
(VarAssignment
{ (Identifier)
->(Identifier) }
{+(Identifier)+}
{ (Identifier)
->(Identifier) }
(Other "expression_list"
{ (NumberLiteral)
->(NumberLiteral) }
{+(NumberLiteral)+})))))
{ (Identifier)
->(Identifier) }
{+(Other "expression_list"
(NumberLiteral)
(NumberLiteral))+}
{-(Other "expression_list"
(NumberLiteral))-}))))

View File

@ -6,13 +6,13 @@
(Args)
(Other "const_declaration"
(VarAssignment
{ (Identifier)
->(Identifier) }
{+(Identifier)+}
{+(Identifier)+}
{+(Other "expression_list"
(NumberLiteral))+}
{-(Identifier)-}
{-(Identifier)-}
{-(Identifier)-}
{-(Other "expression_list"
(NumberLiteral)
(NumberLiteral))-}))))

View File

@ -9,12 +9,9 @@
(NumberLiteral))+}
{+(Slice
(Identifier))+}
{+(Slice
(Identifier)
(NumberLiteral))+}
{-(Slice
(Identifier)
(NumberLiteral))-}
(Slice
{(Identifier)->(Identifier)}
{(NumberLiteral)->(NumberLiteral)})
{-(Slice
(Identifier)
(NumberLiteral))-}

View File

@ -15,23 +15,30 @@
->(Identifier) })))
(FunctionCall
(Identifier)))
(Case
{+(Case
(Case
(Other "expression_list"
(RelationalOperator
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Identifier)
(Identifier))))
(FunctionCall
(Identifier)))
(Identifier)))+}
(Case
(Case
(Other "expression_list"
(RelationalOperator
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(NumberLiteral) })))
(FunctionCall
{ (Identifier)
->(Identifier) }))
{-(Case
(Case
(Other "expression_list"
(RelationalOperator
(Identifier)
(NumberLiteral))))
(FunctionCall
{ (Identifier)
->(Identifier) })))))
(Identifier)))-})))

View File

@ -15,23 +15,35 @@
->(Identifier) })))
(FunctionCall
(Identifier)))
(Case
{+(Case
(Case
(Other "expression_list"
(RelationalOperator
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Identifier)
(Identifier))))
(FunctionCall
(Identifier)))
(Case
(Identifier)))+}
{+(Case
(Case
(Other "expression_list"
(RelationalOperator
{ (Identifier)
->(Identifier) }
(Identifier)
(NumberLiteral))))
(FunctionCall
{ (Identifier)
->(Identifier) })))))
(Identifier)))+}
{-(Case
(Case
(Other "expression_list"
(RelationalOperator
(Identifier)
(Identifier))))
(FunctionCall
(Identifier)))-}
{-(Case
(Case
(Other "expression_list"
(RelationalOperator
(Identifier)
(NumberLiteral))))
(FunctionCall
(Identifier)))-})))

View File

@ -3,83 +3,61 @@
{ (StringLiteral)
->(StringLiteral) }
(Identifier))
{+(Import
(StringLiteral)
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral))+}
{-(Import
(StringLiteral)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral))-})
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }))

View File

@ -3,83 +3,61 @@
{ (StringLiteral)
->(StringLiteral) }
(Identifier))
{+(Import
(StringLiteral)
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral))+}
{-(Import
(StringLiteral)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral))-})
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }))

View File

@ -1,11 +1,11 @@
(Program
{+(StringLiteral)+}
{+(StringLiteral)+}
{ (StringLiteral)
->(StringLiteral) }
{+(StringLiteral)+}
{+(StringLiteral)+}
{+(StringLiteral)+}
{+(StringLiteral)+}
{-(StringLiteral)-}
{-(StringLiteral)-}
{-(StringLiteral)-}
{-(StringLiteral)-}

View File

@ -3,10 +3,10 @@
{ (StringLiteral)
->(StringLiteral) }
{+(StringLiteral)+}
{+(StringLiteral)+}
{+(StringLiteral)+}
{ (StringLiteral)
->(StringLiteral) }
{+(StringLiteral)+}
{+(StringLiteral)+}
{-(StringLiteral)-}
{-(StringLiteral)-}
{-(StringLiteral)-}

View File

@ -5,18 +5,16 @@
->(Identifier) }
{ (StringLiteral)
->(StringLiteral) })
{+(Pair
(Identifier)
(IntegerLiteral))+}
{+(Pair
(Identifier)
(Boolean))+}
{-(Pair
(SymbolLiteral)
(IntegerLiteral))-}
{-(Pair
(StringLiteral)
(Boolean))-}
(Pair
{ (SymbolLiteral)
->(Identifier) }
{ (IntegerLiteral)
->(IntegerLiteral) })
(Pair
{ (StringLiteral)
->(Identifier) }
{ (Boolean)
->(Boolean) })
{-(Pair
(SymbolLiteral)
(IntegerLiteral))-}))

View File

@ -5,17 +5,16 @@
->(SymbolLiteral) }
{ (StringLiteral)
->(StringLiteral) })
{+(Pair
(SymbolLiteral)
(IntegerLiteral))+}
(Pair
{ (Identifier)
->(SymbolLiteral) }
{ (IntegerLiteral)
->(IntegerLiteral) })
(Pair
{ (Identifier)
->(StringLiteral) }
{ (IntegerLiteral)
{ (Boolean)
->(Boolean) })
{+(Pair
(SymbolLiteral)
(IntegerLiteral))+}
{-(Pair
(Identifier)
(Boolean))-}))
(IntegerLiteral))+}))

View File

@ -1,15 +1,15 @@
(Program
{+(IntegerLiteral)+}
{+(IntegerLiteral)+}
{ (IntegerLiteral)
->(IntegerLiteral) }
{+(IntegerLiteral)+}
{+(IntegerLiteral)+}
{ (IntegerLiteral)
->(IntegerLiteral) }
{+(IntegerLiteral)+}
{+(IntegerLiteral)+}
{+(NumberLiteral)+}
{-(IntegerLiteral)-}
{-(IntegerLiteral)-}
{-(IntegerLiteral)-}
{-(IntegerLiteral)-}
{-(IntegerLiteral)-}
{-(NumberLiteral)-})

View File

@ -1,12 +1,12 @@
(Program
{+(IntegerLiteral)+}
{+(IntegerLiteral)+}
{+(IntegerLiteral)+}
{ (IntegerLiteral)
->(IntegerLiteral) }
{+(IntegerLiteral)+}
{ (IntegerLiteral)
->(IntegerLiteral) }
{ (IntegerLiteral)
->(IntegerLiteral) }
{+(IntegerLiteral)+}
{+(IntegerLiteral)+}
{+(IntegerLiteral)+}
{+(NumberLiteral)+}
{-(IntegerLiteral)-}
{-(IntegerLiteral)-}

View File

@ -4,19 +4,16 @@
{ (Other "==")
->(Other "<=>") }
(Identifier))
{+(Binary
(Binary
(Identifier)
(Other "=~")
(Identifier))+}
{ (Other "!=")
->(Other "=~") }
(Identifier))
{+(Assignment
(Identifier)
(Unary
(Other "!")
(Identifier)))+}
{-(Binary
(Identifier)
(Other "!=")
(Identifier))-}
{-(Binary
(Identifier)
(Other "===")

View File

@ -4,15 +4,12 @@
{ (Other "<=>")
->(Other "==") }
(Identifier))
{+(Binary
(Identifier)
(Other "!=")
(Identifier))+}
(Binary
(Identifier)
{ (Other "=~")
->(Other "===") }
->(Other "!=") }
(Identifier))
{+(Binary(Identifier)(Other"===")(Identifier))+}
{-(Assignment
(Identifier)
(Unary

View File

@ -2,6 +2,6 @@
{+(SymbolLiteral)+}
{ (SymbolLiteral)
->(SymbolLiteral) }
{ (SymbolLiteral)
->(SymbolLiteral) }
{+(SymbolLiteral)+}
{-(SymbolLiteral)-}
{-(SymbolLiteral)-})

View File

@ -22,19 +22,27 @@
(Identifier)))
(Return
(Identifier)))
{+(Method
(Identifier)
(Params
(Other "required_parameter"
(Identifier)))
(Return
(Identifier)))+}
(Method
{ (Identifier)
->(Identifier) }
(Params
(Other "required_parameter"
(Identifier)))
(Return
(Identifier)))
(Method
{ (Identifier)
->(Identifier) }
->(Identifier) }))
(Return
{ (Identifier)
->(Identifier) }))
{-(Method
(Identifier)
(Params
(Other "required_parameter"
(Identifier)))
(Return
(Identifier))))))
(Identifier)))-})))

View File

@ -3,83 +3,61 @@
{ (StringLiteral)
->(StringLiteral) }
(Identifier))
{+(Import
(StringLiteral)
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral))+}
{-(Import
(StringLiteral)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral))-})
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }))

View File

@ -3,83 +3,61 @@
{ (StringLiteral)
->(StringLiteral) }
(Identifier))
{+(Import
(StringLiteral)
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
{ (Identifier)
->(Identifier) })
(Other "import_specifier"
(Identifier)
(Identifier))))+}
{+(Import
(StringLiteral)
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier)
(Other "namespace_import"
(Identifier)))+}
{+(Import
(StringLiteral))+}
{-(Import
(StringLiteral)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier))))-}
{-(Import
(StringLiteral)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "named_imports"
(Other "import_specifier"
(Identifier))
(Other "import_specifier"
(Identifier)
(Identifier))))-}
{-(Import
(StringLiteral)
(Identifier)
(Other "namespace_import"
(Identifier)))-}
{-(Import
(StringLiteral))-})
{ (Identifier)
->(Identifier) }))
(Import
{ (StringLiteral)
->(StringLiteral) }))

View File

@ -54,32 +54,25 @@
(Ty
(Identifier))
(NumberLiteral))
{+(FieldDecl
(Other "accessibility_modifier")
(Other "readonly")
(Identifier)
(FieldDecl
{ (Other "readonly")
->(Other "accessibility_modifier") }
{ (Identifier)
->(Other "readonly") }
{ (Ty
(Identifier))
->(Identifier) }
{ (NumberLiteral)
->(Ty
(Identifier)) }
{+(StringLiteral)+})
(FieldDecl
{ (Identifier)
->(Identifier) }
(Ty
(Identifier))
(StringLiteral))+}
{+(FieldDecl
(NumberLiteral))
(FieldDecl
(Identifier)
(Ty
(Identifier))
(NumberLiteral))+}
{+(FieldDecl
(Identifier)
(NumberLiteral))+}
{-(FieldDecl
(Other "readonly")
(Identifier)
(Ty
(Identifier))
(NumberLiteral))-}
{-(FieldDecl
(Identifier)
(Ty
(Identifier))
(NumberLiteral))-}
{-(FieldDecl
(Identifier)
(NumberLiteral))-})))
{ (NumberLiteral)
->(NumberLiteral) }))))

View File

@ -48,32 +48,25 @@
(Ty
(Identifier))
(NumberLiteral))
{+(FieldDecl
(Other "readonly")
(Identifier)
(FieldDecl
{ (Other "accessibility_modifier")
->(Other "readonly") }
{ (Other "readonly")
->(Identifier) }
{ (Identifier)
->(Ty
(Identifier)) }
{ (Ty
(Identifier))
->(NumberLiteral) }
{-(StringLiteral)-})
(FieldDecl
{ (Identifier)
->(Identifier) }
(Ty
(Identifier))
(NumberLiteral))+}
{+(FieldDecl
(NumberLiteral))
(FieldDecl
(Identifier)
(Ty
(Identifier))
(NumberLiteral))+}
{+(FieldDecl
(Identifier)
(NumberLiteral))+}
{-(FieldDecl
(Other "accessibility_modifier")
(Other "readonly")
(Identifier)
(Ty
(Identifier))
(StringLiteral))-}
{-(FieldDecl
(Identifier)
(Ty
(Identifier))
(NumberLiteral))-}
{-(FieldDecl
(Identifier)
(NumberLiteral))-})))
{ (NumberLiteral)
->(NumberLiteral) }))))