diff --git a/.gitattributes b/.gitattributes index ed17c0b5f..31f93a9ac 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,3 @@ -test/diffs linguist-vendored -test/diffs-todo linguist-vendored -test/crashers linguist-vendored -test/crashers-todo linguist-vendored +test/fixtures linguist-vendored test/repos linguist-vendored vendor linguist-vendored diff --git a/.gitmodules b/.gitmodules index 0088a413f..a51ba2fb2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,30 +13,15 @@ [submodule "vendor/effects"] path = vendor/effects url = https://github.com/joshvera/effects.git -[submodule "languages/ruby/vendor/tree-sitter-ruby"] - path = languages/ruby/vendor/tree-sitter-ruby - url = https://github.com/tree-sitter/tree-sitter-ruby.git [submodule "languages/c/vendor/tree-sitter-c"] path = languages/c/vendor/tree-sitter-c url = https://github.com/tree-sitter/tree-sitter-c.git -[submodule "languages/go/vendor/tree-sitter-go"] - path = languages/go/vendor/tree-sitter-go - url = https://github.com/tree-sitter/tree-sitter-go.git [submodule "languages/javascript/vendor/tree-sitter-javascript"] path = languages/javascript/vendor/tree-sitter-javascript url = https://github.com/tree-sitter/tree-sitter-javascript.git [submodule "vendor/haskell-tree-sitter"] path = vendor/haskell-tree-sitter url = https://github.com/tree-sitter/haskell-tree-sitter.git -[submodule "languages/typescript/vendor/tree-sitter-typescript"] - path = languages/typescript/vendor/tree-sitter-typescript - url = https://github.com/tree-sitter/tree-sitter-typescript/ -[submodule "languages/python/vendor/tree-sitter-python"] - path = languages/python/vendor/tree-sitter-python - url = https://github.com/tree-sitter/tree-sitter-python.git -[submodule "languages/json/vendor/tree-sitter-json"] - path = languages/json/vendor/tree-sitter-json - url = https://github.com/tree-sitter/tree-sitter-json [submodule "vendor/freer-cofreer"] path = vendor/freer-cofreer url = https://github.com/robrix/freer-cofreer.git diff --git a/cabal.project b/cabal.project index 24accf28e..dd75d0e82 100644 --- a/cabal.project +++ b/cabal.project @@ -1,4 +1,3 @@ -packages: ./ languages/*/ tools/*/ -optional-packages: vendor/*/ +packages: ./ vendor/*/ vendor/haskell-tree-sitter/languages/*/ jobs: $ncpus diff --git a/languages/go/Setup.hs b/languages/go/Setup.hs deleted file mode 100644 index 9a994af67..000000000 --- a/languages/go/Setup.hs +++ /dev/null @@ -1,2 +0,0 @@ -import Distribution.Simple -main = defaultMain diff --git a/languages/go/go.cabal b/languages/go/go.cabal deleted file mode 100644 index 7ccba0bc1..000000000 --- a/languages/go/go.cabal +++ /dev/null @@ -1,25 +0,0 @@ -name: go -version: 0.1.0 -synopsis: tree-sitter go language bindings -description: Please see README.md -homepage: https://github.com/github/semantic-diff#readme -author: semantic-code -maintainer: tclem@github.com -copyright: 2017 GitHub -category: Web -build-type: Simple --- extra-source-files: -cabal-version: >=1.10 - -library - hs-source-dirs: src - exposed-modules: Text.Parser.TreeSitter.Go - build-depends: base >= 4.7 && < 5 - , haskell-tree-sitter - default-language: Haskell2010 - default-extensions: FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards - c-sources: vendor/tree-sitter-go/src/parser.c - -source-repository head - type: git - location: https://github.com/github/semantic-diff diff --git a/languages/go/src/Text/Parser/TreeSitter/Go.hs b/languages/go/src/Text/Parser/TreeSitter/Go.hs deleted file mode 100644 index 0976819d7..000000000 --- a/languages/go/src/Text/Parser/TreeSitter/Go.hs +++ /dev/null @@ -1,6 +0,0 @@ -module Text.Parser.TreeSitter.Go where - -import Text.Parser.TreeSitter -import Foreign.Ptr - -foreign import ccall unsafe "vendor/tree-sitter-go/src/parser.c tree_sitter_go" tree_sitter_go :: Ptr Language diff --git a/languages/go/vendor/tree-sitter-go b/languages/go/vendor/tree-sitter-go deleted file mode 160000 index 025ece6dd..000000000 --- a/languages/go/vendor/tree-sitter-go +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 025ece6ddcdf3e3cbc6c865e2d2c010217fbf90f diff --git a/languages/json/Setup.hs b/languages/json/Setup.hs deleted file mode 100644 index 9a994af67..000000000 --- a/languages/json/Setup.hs +++ /dev/null @@ -1,2 +0,0 @@ -import Distribution.Simple -main = defaultMain diff --git a/languages/json/json.cabal b/languages/json/json.cabal deleted file mode 100644 index 0b8e025c3..000000000 --- a/languages/json/json.cabal +++ /dev/null @@ -1,27 +0,0 @@ -name: json -version: 0.1.0 -synopsis: tree-sitter json language bindings -description: Please see README.md -homepage: https://github.com/github/semantic-diff#readme -author: semantic-code -maintainer: vera@github.com -copyright: 2017 GitHub -category: Web -build-type: Simple --- extra-source-files: -cabal-version: >=1.10 - -library - hs-source-dirs: src - exposed-modules: Text.Parser.TreeSitter.JSON - build-depends: base >= 4.7 && < 5 - , haskell-tree-sitter - default-language: Haskell2010 - default-extensions: FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards - c-sources: vendor/tree-sitter-json/src/parser.c - cc-options: -std=c99 -Os - - -source-repository head - type: git - location: https://github.com/github/semantic-diff diff --git a/languages/json/src/Text/Parser/TreeSitter/JSON.hs b/languages/json/src/Text/Parser/TreeSitter/JSON.hs deleted file mode 100644 index 92dec946e..000000000 --- a/languages/json/src/Text/Parser/TreeSitter/JSON.hs +++ /dev/null @@ -1,6 +0,0 @@ -module Text.Parser.TreeSitter.JSON where - -import Foreign.Ptr -import Text.Parser.TreeSitter - -foreign import ccall unsafe "vendor/tree-sitter-json/src/parser.c tree_sitter_json" tree_sitter_json :: Ptr Language diff --git a/languages/json/vendor/tree-sitter-json b/languages/json/vendor/tree-sitter-json deleted file mode 160000 index 81b519e6a..000000000 --- a/languages/json/vendor/tree-sitter-json +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 81b519e6ad7aa87c61851f1f6925b59fcc34d347 diff --git a/languages/python/Setup.hs b/languages/python/Setup.hs deleted file mode 100644 index 9a994af67..000000000 --- a/languages/python/Setup.hs +++ /dev/null @@ -1,2 +0,0 @@ -import Distribution.Simple -main = defaultMain diff --git a/languages/python/python.cabal b/languages/python/python.cabal deleted file mode 100644 index 6a6dc08b1..000000000 --- a/languages/python/python.cabal +++ /dev/null @@ -1,27 +0,0 @@ -name: python -version: 0.1.0 -synopsis: tree-sitter python language bindings -homepage: https://github.com/github/semantic-diff#readme -description: Please see README.md -author: semantic-code -maintainer: tclem@github.com -copyright: 2017 GitHub -category: Web -build-type: Simple --- extra-source-files: -cabal-version: >=1.10 - -library - hs-source-dirs: src - exposed-modules: Text.Parser.TreeSitter.Python - build-depends: base >= 4.7 && < 5 - , haskell-tree-sitter - default-language: Haskell2010 - default-extensions: FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards - c-sources: vendor/tree-sitter-python/src/parser.c - , vendor/tree-sitter-python/src/scanner.cc - extra-libraries: stdc++ - -source-repository head - type: git - location: https://github.com/github/semantic-diff diff --git a/languages/python/src/Text/Parser/TreeSitter/Python.hs b/languages/python/src/Text/Parser/TreeSitter/Python.hs deleted file mode 100644 index c5d52140b..000000000 --- a/languages/python/src/Text/Parser/TreeSitter/Python.hs +++ /dev/null @@ -1,8 +0,0 @@ -module Text.Parser.TreeSitter.Python -( tree_sitter_python -) where - -import Foreign.Ptr -import Text.Parser.TreeSitter - -foreign import ccall unsafe "vendor/tree-sitter-python/src/parser.c tree_sitter_python" tree_sitter_python :: Ptr Language diff --git a/languages/python/vendor/tree-sitter-python b/languages/python/vendor/tree-sitter-python deleted file mode 160000 index 24220e066..000000000 --- a/languages/python/vendor/tree-sitter-python +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 24220e066fd65ccfa5dba65c0095705d559e97cb diff --git a/languages/ruby/Setup.hs b/languages/ruby/Setup.hs deleted file mode 100644 index 9a994af67..000000000 --- a/languages/ruby/Setup.hs +++ /dev/null @@ -1,2 +0,0 @@ -import Distribution.Simple -main = defaultMain diff --git a/languages/ruby/ruby.cabal b/languages/ruby/ruby.cabal deleted file mode 100644 index dc0524572..000000000 --- a/languages/ruby/ruby.cabal +++ /dev/null @@ -1,27 +0,0 @@ -name: ruby -version: 0.1.0 -synopsis: tree-sitter ruby language bindings -description: Please see README.md -homepage: https://github.com/github/semantic-diff#readme -author: semantic-code -maintainer: tclem@github.com -copyright: 2017 GitHub -category: Web -build-type: Simple --- extra-source-files: -cabal-version: >=1.10 - -library - hs-source-dirs: src - exposed-modules: Text.Parser.TreeSitter.Ruby - build-depends: base >= 4.7 && < 5 - , haskell-tree-sitter - default-language: Haskell2010 - default-extensions: FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards - c-sources: vendor/tree-sitter-ruby/src/parser.c - , vendor/tree-sitter-ruby/src/scanner.cc - extra-libraries: stdc++ - -source-repository head - type: git - location: https://github.com/github/semantic-diff diff --git a/languages/ruby/src/Text/Parser/TreeSitter/Ruby.hs b/languages/ruby/src/Text/Parser/TreeSitter/Ruby.hs deleted file mode 100644 index 05938f8de..000000000 --- a/languages/ruby/src/Text/Parser/TreeSitter/Ruby.hs +++ /dev/null @@ -1,8 +0,0 @@ -module Text.Parser.TreeSitter.Ruby -( tree_sitter_ruby -) where - -import Foreign.Ptr -import Text.Parser.TreeSitter - -foreign import ccall unsafe "vendor/tree-sitter-ruby/src/parser.c tree_sitter_ruby" tree_sitter_ruby :: Ptr Language diff --git a/languages/ruby/vendor/tree-sitter-ruby b/languages/ruby/vendor/tree-sitter-ruby deleted file mode 160000 index 6681b4c8d..000000000 --- a/languages/ruby/vendor/tree-sitter-ruby +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6681b4c8d255ca0aec09c29777271736186b6c7d diff --git a/languages/typescript/Setup.hs b/languages/typescript/Setup.hs deleted file mode 100644 index 9a994af67..000000000 --- a/languages/typescript/Setup.hs +++ /dev/null @@ -1,2 +0,0 @@ -import Distribution.Simple -main = defaultMain diff --git a/languages/typescript/src/Text/Parser/TreeSitter/TypeScript.hs b/languages/typescript/src/Text/Parser/TreeSitter/TypeScript.hs deleted file mode 100644 index f6fe5f97b..000000000 --- a/languages/typescript/src/Text/Parser/TreeSitter/TypeScript.hs +++ /dev/null @@ -1,6 +0,0 @@ -module Text.Parser.TreeSitter.TypeScript where - -import Foreign.Ptr -import Text.Parser.TreeSitter - -foreign import ccall unsafe "vendor/tree-sitter-typescript/src/parser.c tree_sitter_typescript" tree_sitter_typescript :: Ptr Language diff --git a/languages/typescript/typescript.cabal b/languages/typescript/typescript.cabal deleted file mode 100644 index c28eff377..000000000 --- a/languages/typescript/typescript.cabal +++ /dev/null @@ -1,28 +0,0 @@ -name: typescript -version: 0.1.0 -synopsis: tree-sitter typescript language bindings -description: Please see README.md -homepage: https://github.com/github/semantic-diff#readme -author: semantic-code -maintainer: vera@github.com -copyright: 2017 GitHub -category: Web -build-type: Simple --- extra-source-files: -cabal-version: >=1.10 - -library - hs-source-dirs: src - exposed-modules: Text.Parser.TreeSitter.TypeScript - build-depends: base >= 4.7 && < 5 - , haskell-tree-sitter - default-language: Haskell2010 - default-extensions: FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards - c-sources: vendor/tree-sitter-typescript/src/parser.c - , vendor/tree-sitter-typescript/src/scanner.c - cc-options: -std=c99 -Os - - -source-repository head - type: git - location: https://github.com/github/semantic-diff diff --git a/languages/typescript/vendor/tree-sitter-typescript b/languages/typescript/vendor/tree-sitter-typescript deleted file mode 160000 index 6d44526e0..000000000 --- a/languages/typescript/vendor/tree-sitter-typescript +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6d44526e059ebf456c9059ee1717126d69e41018 diff --git a/script/generate-example b/script/generate-example index 8607e1e4c..f5825788c 100755 --- a/script/generate-example +++ b/script/generate-example @@ -32,10 +32,6 @@ generate_example () { fileB="$2" parseFileA="${fileA%%.*}.parseA.txt" parseFileB="${fileB%%.*}.parseB.txt" - diffFileAddA="${fileA%%.*}.diff+A.txt" - diffFileRemoveA="${fileA%%.*}.diff-A.txt" - diffFileAddB="${fileB%%.*}.diff+B.txt" - diffFileRemoveB="${fileB%%.*}.diff-B.txt" diffFileAB="${fileA%%.*}.diffA-B.txt" diffFileBA="${fileB%%.*}.diffB-A.txt" @@ -45,18 +41,6 @@ generate_example () { status $parseFileB "$(dirname "$0")/run" semantic parse --sexpression $fileB > $parseFileB - status $diffFileAddA - "$(dirname "$0")/run" semantic diff --sexpression /dev/null $fileA > $diffFileAddA - - status $diffFileRemoveA - "$(dirname "$0")/run" semantic diff --sexpression $fileA /dev/null > $diffFileRemoveA - - status $diffFileAddB - "$(dirname "$0")/run" semantic diff --sexpression /dev/null $fileB > $diffFileAddB - - status $diffFileRemoveB - "$(dirname "$0")/run" semantic diff --sexpression $fileB /dev/null > $diffFileRemoveB - status $diffFileAB "$(dirname "$0")/run" semantic diff --sexpression $fileA $fileB > $diffFileAB diff --git a/semantic-diff.cabal b/semantic-diff.cabal index 662281437..de13ce784 100644 --- a/semantic-diff.cabal +++ b/semantic-diff.cabal @@ -116,11 +116,11 @@ library , time , unix , haskell-tree-sitter - , go - , ruby - , typescript - , python - , json + , tree-sitter-go + , tree-sitter-json + , tree-sitter-python + , tree-sitter-ruby + , tree-sitter-typescript default-language: Haskell2010 default-extensions: DeriveFunctor, DeriveFoldable, DeriveTraversable, DeriveGeneric, FlexibleContexts, FlexibleInstances, OverloadedStrings, RecordWildCards, StrictData ghc-options: -Wall -fno-warn-name-shadowing -O -j diff --git a/src/Data/Syntax/Assignment.hs b/src/Data/Syntax/Assignment.hs index a00afb468..a700eb8ba 100644 --- a/src/Data/Syntax/Assignment.hs +++ b/src/Data/Syntax/Assignment.hs @@ -115,7 +115,7 @@ import GHC.Stack import qualified Info import Prelude hiding (head, until) import Text.Parser.Combinators as Parsers -import Text.Parser.TreeSitter.Language +import TreeSitter.Language -- | Assignment from an AST with some set of 'symbol's onto some other value. -- diff --git a/src/Files.hs b/src/Files.hs index 1b557a9a1..8445593f8 100644 --- a/src/Files.hs +++ b/src/Files.hs @@ -29,6 +29,7 @@ import Text.Read -- | Read a utf8-encoded file to a 'Blob'. readFile :: forall m. MonadIO m => FilePath -> Maybe Language -> m Blob.Blob +readFile path@"/dev/null" _ = pure (Blob.emptyBlob path) readFile path language = do raw <- liftIO $ (Just <$> B.readFile path) `catch` (const (pure Nothing) :: IOException -> IO (Maybe B.ByteString)) pure $ fromMaybe (Blob.emptyBlob path) (Blob.sourceBlob path language . fromBytes <$> raw) diff --git a/src/Language/Go/Syntax.hs b/src/Language/Go/Syntax.hs index 6a966aa49..663701139 100644 --- a/src/Language/Go/Syntax.hs +++ b/src/Language/Go/Syntax.hs @@ -2,8 +2,8 @@ module Language.Go.Syntax where import Language.Haskell.TH -import Text.Parser.TreeSitter.Go -import Text.Parser.TreeSitter.Language +import TreeSitter.Go +import TreeSitter.Language -- | Statically-known rules corresponding to symbols in the grammar. mkSymbolDatatype (mkName "Grammar") tree_sitter_go diff --git a/src/Language/JSON/Grammar.hs b/src/Language/JSON/Grammar.hs index ca4f9ea41..adfc262b3 100644 --- a/src/Language/JSON/Grammar.hs +++ b/src/Language/JSON/Grammar.hs @@ -2,8 +2,8 @@ module Language.JSON.Grammar where import Language.Haskell.TH -import Text.Parser.TreeSitter.Language -import Text.Parser.TreeSitter.JSON +import TreeSitter.Language +import TreeSitter.JSON -- | Statically-known rules corresponding to symbols in the grammar. -- v2 - bump this to regenerate diff --git a/src/Language/Markdown.hs b/src/Language/Markdown.hs index 7c757097e..ea637a068 100644 --- a/src/Language/Markdown.hs +++ b/src/Language/Markdown.hs @@ -11,7 +11,7 @@ import Data.Ix import Data.Source import qualified Data.Syntax.Assignment as A (AST, Node(..)) import Info -import Text.Parser.TreeSitter.Language (Symbol(..), SymbolType(..)) +import TreeSitter.Language (Symbol(..), SymbolType(..)) data Grammar = Document diff --git a/src/Language/Python/Grammar.hs b/src/Language/Python/Grammar.hs index 58a879429..b7c4045bc 100644 --- a/src/Language/Python/Grammar.hs +++ b/src/Language/Python/Grammar.hs @@ -2,8 +2,8 @@ module Language.Python.Grammar where import Language.Haskell.TH -import Text.Parser.TreeSitter.Language -import Text.Parser.TreeSitter.Python +import TreeSitter.Language +import TreeSitter.Python -- | Statically-known rules corresponding to symbols in the grammar. -- v3 - bump this to regenerate diff --git a/src/Language/Ruby/Grammar.hs b/src/Language/Ruby/Grammar.hs index 342171c01..df4a5d1e6 100644 --- a/src/Language/Ruby/Grammar.hs +++ b/src/Language/Ruby/Grammar.hs @@ -2,11 +2,11 @@ module Language.Ruby.Grammar where import Language.Haskell.TH -import Text.Parser.TreeSitter.Language -import Text.Parser.TreeSitter.Ruby +import TreeSitter.Language +import TreeSitter.Ruby -- Regenerate template haskell code when these files change: -addDependentFileRelative "../../../languages/ruby/vendor/tree-sitter-ruby/src/parser.c" +addDependentFileRelative "../../../vendor/haskell-tree-sitter/languages/ruby/vendor/tree-sitter-ruby/src/parser.c" -- | Statically-known rules corresponding to symbols in the grammar. mkSymbolDatatype (mkName "Grammar") tree_sitter_ruby diff --git a/src/Language/TypeScript.hs b/src/Language/TypeScript.hs index c24c84a19..03cc8cb4a 100644 --- a/src/Language/TypeScript.hs +++ b/src/Language/TypeScript.hs @@ -69,7 +69,7 @@ termAssignment _ category children = | S.Indexed _ <- unwrap statements -> Just $ S.Export Nothing (toList (unwrap statements)) | otherwise -> Just $ S.Export (Just statements) [] - (For, _:_) -> Just $ S.For (init children) [last children] + (For, _:_) -> Just $ S.For (init children >>= flattenExpressionStatements) [last children] (Function, children) -> case break ((== ExpressionStatements) . Info.category . extract) children of (inits, [body]) -> case inits of [id, callSignature] -> Just $ S.Function id (toList (unwrap callSignature)) (toList (unwrap body)) @@ -79,6 +79,9 @@ termAssignment _ category children = (Ty, children) -> Just $ S.Ty children (Interface, children) -> toInterface children _ -> Nothing + where flattenExpressionStatements term + | Info.category (extract term) `elem` [ExpressionStatements, CommaOperator] = toList (unwrap term) >>= flattenExpressionStatements + | otherwise = [term] categoryForTypeScriptName :: Text -> Category categoryForTypeScriptName category = case category of @@ -95,8 +98,10 @@ categoryForTypeScriptName category = case category of "arrow_function" -> Function "generator_function" -> Function "math_op" -> MathOperator -- math operator, e.g. +, -, *, /. + "update_expression" -> MathOperator -- math operator, e.g. ++, -- "bool_op" -> BooleanOperator -- boolean operator, e.g. ||, &&. "comma_op" -> CommaOperator -- comma operator, e.g. expr1, expr2. + "sequence_expression" -> CommaOperator -- comma operator, e.g. expr1, expr2. "delete_op" -> Operator -- delete operator, e.g. delete x[2]. "type_op" -> Operator -- type operator, e.g. typeof Object. "void_op" -> Operator -- void operator, e.g. void 2. @@ -109,12 +114,15 @@ categoryForTypeScriptName category = case category of "new_expression" -> Constructor "class" -> Class "catch" -> Catch + "catch_clause" -> Catch "finally" -> Finally + "finally_clause" -> Finally "if_statement" -> If "trailing_if_statement" -> If "empty_statement" -> Empty "program" -> Program "function_call" -> FunctionCall + "call_expression" -> FunctionCall "pair" -> Pair "string" -> StringLiteral "integer" -> IntegerLiteral @@ -128,17 +136,23 @@ categoryForTypeScriptName category = case category of "arguments" -> Args "statement_block" -> ExpressionStatements "assignment" -> Assignment + "assignment_expression" -> Assignment "member_access" -> MemberAccess + "member_expression" -> MemberAccess "op" -> Operator "subscript_access" -> SubscriptAccess + "subscript_expression" -> SubscriptAccess "regex" -> Regex "template_string" -> TemplateString "switch_statement" -> Switch "math_assignment" -> MathAssignment + "augmented_assignment_expression" -> MathAssignment "case" -> Case + "switch_case" -> Case "true" -> Boolean "false" -> Boolean "ternary" -> Ternary + "ternary_expression" -> Ternary "while_statement" -> While "trailing_while_statement" -> While "do_statement" -> DoWhile @@ -164,4 +178,5 @@ categoryForTypeScriptName category = case category of "module" -> Module "internal_module" -> Namespace "interface_declaration" -> Interface + "parenthesized_expression" -> ParenthesizedExpression name -> Other name diff --git a/src/Language/TypeScript/Syntax.hs b/src/Language/TypeScript/Syntax.hs index 4c8f60191..1ecbb6c0e 100644 --- a/src/Language/TypeScript/Syntax.hs +++ b/src/Language/TypeScript/Syntax.hs @@ -2,8 +2,8 @@ module Language.TypeScript.Syntax where import Language.Haskell.TH -import Text.Parser.TreeSitter.Language -import Text.Parser.TreeSitter.TypeScript +import TreeSitter.Language +import TreeSitter.TypeScript -- | Statically-known rules corresponding to symbols in the grammar. mkSymbolDatatype (mkName "Grammar") tree_sitter_typescript diff --git a/src/Parser.hs b/src/Parser.hs index ad5d716c5..60ad3fa93 100644 --- a/src/Parser.hs +++ b/src/Parser.hs @@ -30,20 +30,19 @@ import qualified Language.Python.Syntax as Python import qualified Language.Ruby.Syntax as Ruby import Syntax hiding (Go) import Term -import qualified Text.Parser.TreeSitter as TS -import Text.Parser.TreeSitter.Language (Symbol) -import Text.Parser.TreeSitter.Go -import Text.Parser.TreeSitter.Python -import Text.Parser.TreeSitter.Ruby -import Text.Parser.TreeSitter.TypeScript -import Text.Parser.TreeSitter.JSON +import qualified TreeSitter.Language as TS (Language, Symbol) +import TreeSitter.Go +import TreeSitter.Python +import TreeSitter.Ruby +import TreeSitter.TypeScript +import TreeSitter.JSON -- | A parser from 'Source' onto some term type. data Parser term where -- | A parser producing 'AST' using a 'TS.Language'. ASTParser :: (Bounded grammar, Enum grammar) => Ptr TS.Language -> Parser (AST grammar) -- | A parser producing an à la carte term given an 'AST'-producing parser and an 'Assignment' onto 'Term's in some syntax type. - AssignmentParser :: (Bounded grammar, Ix grammar, Show grammar, Symbol grammar, Syntax.Error :< fs, Apply1 Foldable fs, Apply1 Functor fs, Eq ast, Recursive ast, Foldable (Base ast)) + AssignmentParser :: (Bounded grammar, Ix grammar, Show grammar, TS.Symbol grammar, Syntax.Error :< fs, Apply1 Foldable fs, Apply1 Functor fs, Eq ast, Recursive ast, Foldable (Base ast)) => Parser ast -- ^ A parser producing AST. -> (forall x. Base ast x -> Node grammar) -- ^ A function extracting the symbol and location. -> Assignment ast grammar (Term (Union fs) (Record Location)) -- ^ An assignment from AST onto 'Term's. diff --git a/src/TreeSitter.hs b/src/TreeSitter.hs index 79471f923..04e4ab417 100644 --- a/src/TreeSitter.hs +++ b/src/TreeSitter.hs @@ -2,15 +2,16 @@ module TreeSitter ( treeSitterParser , parseToAST -, defaultTermAssignment ) where import Category import Control.Comonad (extract) +import Control.Comonad.Cofree (unwrap) import Control.Exception import Control.Monad ((<=<)) import Data.Blob import Data.ByteString.Unsafe (unsafeUseAsCStringLen) +import Data.Foldable (toList) import Data.Functor.Foldable hiding (Nil) import Data.Range import Data.Record @@ -27,42 +28,43 @@ import Foreign.C.String (peekCString) import Foreign.Marshal.Array (allocaArray) import qualified Syntax as S import Term -import Text.Parser.TreeSitter hiding (Language(..)) -import qualified Text.Parser.TreeSitter as TS -import qualified Text.Parser.TreeSitter.Go as TS -import qualified Text.Parser.TreeSitter.Ruby as TS -import qualified Text.Parser.TreeSitter.TypeScript as TS +import qualified TreeSitter.Document as TS +import qualified TreeSitter.Node as TS +import qualified TreeSitter.Language as TS +import qualified TreeSitter.Go as TS +import qualified TreeSitter.Ruby as TS +import qualified TreeSitter.TypeScript as TS import Info -- | Returns a TreeSitter parser for the given language and TreeSitter grammar. treeSitterParser :: Ptr TS.Language -> Blob -> IO (SyntaxTerm DefaultFields) -treeSitterParser language blob = bracket ts_document_new ts_document_free $ \ document -> do - ts_document_set_language document language +treeSitterParser language blob = bracket TS.ts_document_new TS.ts_document_free $ \ document -> do + TS.ts_document_set_language document language unsafeUseAsCStringLen (sourceBytes (blobSource blob)) $ \ (sourceBytes, len) -> do - ts_document_set_input_string_with_length document sourceBytes len - ts_document_parse_halt_on_error document + TS.ts_document_set_input_string_with_length document sourceBytes len + TS.ts_document_parse_halt_on_error document term <- documentToTerm language document blob pure term -- | Parse 'Source' with the given 'TS.Language' and return its AST. parseToAST :: (Bounded grammar, Enum grammar) => Ptr TS.Language -> Blob -> IO (A.AST grammar) -parseToAST language Blob{..} = bracket ts_document_new ts_document_free $ \ document -> do - ts_document_set_language document language +parseToAST language Blob{..} = bracket TS.ts_document_new TS.ts_document_free $ \ document -> do + TS.ts_document_set_language document language root <- unsafeUseAsCStringLen (sourceBytes blobSource) $ \ (source, len) -> do - ts_document_set_input_string_with_length document source len - ts_document_parse_halt_on_error document + TS.ts_document_set_input_string_with_length document source len + TS.ts_document_parse_halt_on_error document alloca (\ rootPtr -> do - ts_document_root_node_p document rootPtr + TS.ts_document_root_node_p document rootPtr peek rootPtr) anaM toAST root -toAST :: forall grammar . (Bounded grammar, Enum grammar) => Node -> IO (Base (A.AST grammar) Node) -toAST node@Node{..} = do +toAST :: forall grammar . (Bounded grammar, Enum grammar) => TS.Node -> IO (Base (A.AST grammar) TS.Node) +toAST node@TS.Node{..} = do let count = fromIntegral nodeChildCount children <- allocaArray count $ \ childNodesPtr -> do - _ <- with nodeTSNode (\ nodePtr -> ts_node_copy_child_nodes nullPtr nodePtr childNodesPtr (fromIntegral count)) + _ <- with nodeTSNode (\ nodePtr -> TS.ts_node_copy_child_nodes nullPtr nodePtr childNodesPtr (fromIntegral count)) peekArray count childNodesPtr pure $! A.Node (toEnum (min (fromIntegral nodeSymbol) (fromEnum (maxBound :: grammar)))) (nodeRange node) (nodeSpan node) :< children @@ -71,46 +73,46 @@ anaM g = a where a = pure . embed <=< traverse a <=< g -- | Return a parser for a tree sitter language & document. -documentToTerm :: Ptr TS.Language -> Ptr Document -> Blob -> IO (SyntaxTerm DefaultFields) +documentToTerm :: Ptr TS.Language -> Ptr TS.Document -> Blob -> IO (SyntaxTerm DefaultFields) documentToTerm language document Blob{..} = do root <- alloca (\ rootPtr -> do - ts_document_root_node_p document rootPtr + TS.ts_document_root_node_p document rootPtr peek rootPtr) toTerm root - where toTerm :: Node -> IO (SyntaxTerm DefaultFields) - toTerm node = do - name <- peekCString (nodeType node) + where toTerm :: TS.Node -> IO (SyntaxTerm DefaultFields) + toTerm node@TS.Node{..} = do + name <- peekCString nodeType - children <- getChildren (fromIntegral (nodeNamedChildCount node)) copyNamed - let allChildren = getChildren (fromIntegral (nodeChildCount node)) copyAll + children <- getChildren (fromIntegral nodeNamedChildCount) copyNamed + let allChildren = getChildren (fromIntegral nodeChildCount) copyAll let source = slice (nodeRange node) blobSource assignTerm language source (range :. categoryForLanguageProductionName language (pack name) :. nodeSpan node :. Nil) children allChildren where getChildren count copy = do nodes <- allocaArray count $ \ childNodesPtr -> do - _ <- with (nodeTSNode node) (\ nodePtr -> copy nodePtr childNodesPtr (fromIntegral count)) + _ <- with nodeTSNode (\ nodePtr -> copy nodePtr childNodesPtr (fromIntegral count)) peekArray count childNodesPtr children <- traverse toTerm nodes return $! filter isNonEmpty children range = nodeRange node - copyNamed = ts_node_copy_named_child_nodes document - copyAll = ts_node_copy_child_nodes document + copyNamed = TS.ts_node_copy_named_child_nodes document + copyAll = TS.ts_node_copy_child_nodes document isNonEmpty :: HasField fields Category => SyntaxTerm fields -> Bool isNonEmpty = (/= Empty) . category . extract -nodeRange :: Node -> Range -nodeRange Node{..} = Range (fromIntegral nodeStartByte) (fromIntegral nodeEndByte) +nodeRange :: TS.Node -> Range +nodeRange TS.Node{..} = Range (fromIntegral nodeStartByte) (fromIntegral nodeEndByte) -nodeSpan :: Node -> Span -nodeSpan Node{..} = nodeStartPoint `seq` nodeEndPoint `seq` Span (pointPos nodeStartPoint) (pointPos nodeEndPoint) - where pointPos TSPoint{..} = pointRow `seq` pointColumn `seq` Pos (1 + fromIntegral pointRow) (1 + fromIntegral pointColumn) +nodeSpan :: TS.Node -> Span +nodeSpan TS.Node{..} = nodeStartPoint `seq` nodeEndPoint `seq` Span (pointPos nodeStartPoint) (pointPos nodeEndPoint) + where pointPos TS.TSPoint{..} = pointRow `seq` pointColumn `seq` Pos (1 + fromIntegral pointRow) (1 + fromIntegral pointColumn) assignTerm :: Ptr TS.Language -> Source -> Record DefaultFields -> [ SyntaxTerm DefaultFields ] -> IO [ SyntaxTerm DefaultFields ] -> IO (SyntaxTerm DefaultFields) assignTerm language source annotation children allChildren = - cofree . (annotation :<) <$> case assignTermByLanguage source (category annotation) children of - Just a -> pure a - _ -> defaultTermAssignment source (category annotation) children allChildren + case assignTermByLanguage source (category annotation) children of + Just a -> pure (cofree (annotation :< a)) + _ -> defaultTermAssignment source annotation children allChildren where assignTermByLanguage :: Source -> Category -> [ SyntaxTerm DefaultFields ] -> Maybe (S.Syntax (SyntaxTerm DefaultFields)) assignTermByLanguage = case languageForTSLanguage language of Just Language.Go -> Go.termAssignment @@ -118,33 +120,58 @@ assignTerm language source annotation children allChildren = Just TypeScript -> TS.termAssignment _ -> \ _ _ _ -> Nothing -defaultTermAssignment :: Source -> Category -> [ SyntaxTerm DefaultFields ] -> IO [ SyntaxTerm DefaultFields ] -> IO (S.Syntax (SyntaxTerm DefaultFields)) -defaultTermAssignment source category children allChildren - | category `elem` operatorCategories = S.Operator <$> allChildren - | otherwise = pure $! case (category, children) of - (ParseError, children) -> S.ParseError children +defaultTermAssignment :: Source -> Record DefaultFields -> [ SyntaxTerm DefaultFields ] -> IO [ SyntaxTerm DefaultFields ] -> IO (SyntaxTerm DefaultFields) +defaultTermAssignment source annotation children allChildren + | category annotation `elem` operatorCategories = cofree . (annotation :<) . S.Operator <$> allChildren + | otherwise = case (category annotation, children) of + (ParseError, children) -> toTerm $ S.ParseError children - (Comment, _) -> S.Comment (toText source) + (Comment, _) -> toTerm $ S.Comment (toText source) - (Pair, [key, value]) -> S.Pair key value + (Pair, [key, value]) -> toTerm $ S.Pair key value -- Control flow statements - (If, condition : body) -> S.If condition body - (Switch, _) -> uncurry S.Switch (break ((== Case) . Info.category . extract) children) - (Case, expr : body) -> S.Case expr body - (While, expr : rest) -> S.While expr rest + (If, condition : body) -> toTerm $ S.If condition body + (Switch, _) -> let (subject, body) = break ((== Other "switch_body") . Info.category . extract) children in toTerm $ S.Switch subject (body >>= toList . unwrap) + (Case, expr : body) -> toTerm $ S.Case expr body + (While, expr : rest) -> toTerm $ S.While expr rest -- Statements - (Return, _) -> S.Return children - (Yield, _) -> S.Yield children - (Throw, [expr]) -> S.Throw expr - (Break, [label]) -> S.Break (Just label) - (Break, []) -> S.Break Nothing - (Continue, [label]) -> S.Continue (Just label) - (Continue, []) -> S.Continue Nothing + (Return, _) -> toTerm $ S.Return children + (Yield, _) -> toTerm $ S.Yield children + (Throw, [expr]) -> toTerm $ S.Throw expr + (Break, [label]) -> toTerm $ S.Break (Just label) + (Break, []) -> toTerm $ S.Break Nothing + (Continue, [label]) -> toTerm $ S.Continue (Just label) + (Continue, []) -> toTerm $ S.Continue Nothing - (_, []) -> S.Leaf (toText source) - (_, children) -> S.Indexed children + (ParenthesizedExpression, [child]) -> pure child + + (Other "unary_expression", _) -> do + cs <- allChildren + let c = case category . extract <$> cs of + [Other s, _] + | s `elem` ["-", "+", "++", "--"] -> MathOperator + | s == "~" -> BitwiseOperator + | s == "!" -> BooleanOperator + [_, Other t] + | t `elem` ["--", "++"] -> MathOperator + _ -> Operator + pure (cofree ((setCategory annotation c) :< S.Operator cs)) + + (Other "binary_expression", _) -> do + cs <- allChildren + let c = case category . extract <$> cs of + [_, Other s, _] + | s `elem` ["<=", "<", ">=", ">", "==", "===", "!=", "!=="] -> RelationalOperator + | s `elem` ["*", "+", "-", "/", "%"] -> MathOperator + | s `elem` ["&&", "||"] -> BooleanOperator + | s `elem` [">>", ">>=", ">>>", ">>>=", "<<", "<<=", "&", "^", "|"] -> BitwiseOperator + _ -> Operator + pure (cofree ((setCategory annotation c) :< S.Operator cs)) + + (_, []) -> toTerm $ S.Leaf (toText source) + (_, children) -> toTerm $ S.Indexed children where operatorCategories = [ Operator , Binary @@ -156,6 +183,7 @@ defaultTermAssignment source category children allChildren , RelationalOperator , BitwiseOperator ] + toTerm = pure . cofree . (annotation :<) categoryForLanguageProductionName :: Ptr TS.Language -> Text -> Category diff --git a/test/Data/Syntax/Assignment/Spec.hs b/test/Data/Syntax/Assignment/Spec.hs index d9f3a6e68..516cbb4e8 100644 --- a/test/Data/Syntax/Assignment/Spec.hs +++ b/test/Data/Syntax/Assignment/Spec.hs @@ -14,7 +14,7 @@ import Data.Syntax.Assignment import GHC.Stack (getCallStack) import Prelude hiding (words) import Test.Hspec -import Text.Parser.TreeSitter.Language (Symbol(..), SymbolType(..)) +import TreeSitter.Language (Symbol(..), SymbolType(..)) spec :: Spec spec = do diff --git a/test/IntegrationSpec.hs b/test/IntegrationSpec.hs index 11be2d04b..8e07b06bf 100644 --- a/test/IntegrationSpec.hs +++ b/test/IntegrationSpec.hs @@ -58,25 +58,15 @@ examples directory = do bs <- globFor "*.B.*" sExpAs <- globFor "*.parseA.txt" sExpBs <- globFor "*.parseB.txt" - sExpDiffsAddA <- globFor "*.diff+A.txt" - sExpDiffsRemoveA <- globFor "*.diff-A.txt" - sExpDiffsAddB <- globFor "*.diff+B.txt" - sExpDiffsRemoveB <- globFor "*.diff-B.txt" sExpDiffsAB <- globFor "*.diffA-B.txt" sExpDiffsBA <- globFor "*.diffB-A.txt" let exampleDiff lefts rights out name = DiffExample (lookupNormalized name lefts) (lookupNormalized name rights) out - let exampleAddDiff files out name = DiffExample "" (lookupNormalized name files) out - let exampleRemoveDiff files out name = DiffExample (lookupNormalized name files) "" out let exampleParse files out name = ParseExample (lookupNormalized name files) out let keys = (normalizeName <$> as) `union` (normalizeName <$> bs) pure $ merge [ getExamples (exampleParse as) sExpAs keys , getExamples (exampleParse bs) sExpBs keys - , getExamples (exampleAddDiff as) sExpDiffsAddA keys - , getExamples (exampleRemoveDiff as) sExpDiffsRemoveA keys - , getExamples (exampleAddDiff bs) sExpDiffsAddB keys - , getExamples (exampleRemoveDiff bs) sExpDiffsRemoveB keys , getExamples (exampleDiff as bs) sExpDiffsAB keys , getExamples (exampleDiff bs as) sExpDiffsBA keys ] where diff --git a/test/fixtures/go/array-types.diff+B.txt b/test/fixtures/go/array-types.diff+B.txt deleted file mode 100644 index 05c352f16..000000000 --- a/test/fixtures/go/array-types.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (ArrayTy - (RelationalOperator - (NumberLiteral) - (NumberLiteral)) - (Identifier))))))+} diff --git a/test/fixtures/go/array-with-implicit-length.diff+B.txt b/test/fixtures/go/array-with-implicit-length.diff+B.txt deleted file mode 100644 index 03de42061..000000000 --- a/test/fixtures/go/array-with-implicit-length.diff+B.txt +++ /dev/null @@ -1,16 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (ArrayTy - (Identifier)) - (NumberLiteral) - (NumberLiteral) - (NumberLiteral)))))))+} diff --git a/test/fixtures/go/assignment-statements.diff+B.txt b/test/fixtures/go/assignment-statements.diff+B.txt deleted file mode 100644 index 91ddba90d..000000000 --- a/test/fixtures/go/assignment-statements.diff+B.txt +++ /dev/null @@ -1,28 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (NumberLiteral))) - (Assignment - (Other "expression_list" - (Identifier) - (Identifier)) - (Other "expression_list" - (NumberLiteral) - (NumberLiteral))) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (NumberLiteral))) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (NumberLiteral)))))+} diff --git a/test/fixtures/go/call-expressions.diff+B.txt b/test/fixtures/go/call-expressions.diff+B.txt deleted file mode 100644 index 9043ff25f..000000000 --- a/test/fixtures/go/call-expressions.diff+B.txt +++ /dev/null @@ -1,18 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (FunctionCall - (Identifier) - (Identifier) - (Identifier)) - (FunctionCall - (Identifier) - (Identifier) - (Identifier)) - (FunctionCall - (Identifier) - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/go/case-statements.diff+B.txt b/test/fixtures/go/case-statements.diff+B.txt deleted file mode 100644 index 2c6181951..000000000 --- a/test/fixtures/go/case-statements.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Switch - (Case - (Case - (Other "expression_list" - (Identifier))) - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/go/channel-types.diff+B.txt b/test/fixtures/go/channel-types.diff+B.txt deleted file mode 100644 index 08e08f7f3..000000000 --- a/test/fixtures/go/channel-types.diff+B.txt +++ /dev/null @@ -1,22 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (ChannelTy - (ChannelTy - (Identifier)))) - (TypeDecl - (Identifier) - (ChannelTy - (ChannelTy - (StructTy)))) - (TypeDecl - (Identifier) - (ChannelTy - (ChannelTy - (Identifier)))))))+} diff --git a/test/fixtures/go/comment.diff+B.txt b/test/fixtures/go/comment.diff+B.txt deleted file mode 100644 index 981cfaa8c..000000000 --- a/test/fixtures/go/comment.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Comment)))+} diff --git a/test/fixtures/go/const-declarations-with-types.diff+B.txt b/test/fixtures/go/const-declarations-with-types.diff+B.txt deleted file mode 100644 index 027970fa9..000000000 --- a/test/fixtures/go/const-declarations-with-types.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Identifier) - (Identifier) - (Other "expression_list" - (NumberLiteral) - (NumberLiteral))))))+} diff --git a/test/fixtures/go/const-declarations-without-types.diff+B.txt b/test/fixtures/go/const-declarations-without-types.diff+B.txt deleted file mode 100644 index c8ddd04eb..000000000 --- a/test/fixtures/go/const-declarations-without-types.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Identifier) - (Other "expression_list" - (NumberLiteral) - (NumberLiteral))))))+} diff --git a/test/fixtures/go/const-with-implicit-values.diff+B.txt b/test/fixtures/go/const-with-implicit-values.diff+B.txt deleted file mode 100644 index 09f71b80c..000000000 --- a/test/fixtures/go/const-with-implicit-values.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Identifier))) - (VarAssignment - (Identifier)) - (VarAssignment - (Identifier)))))+} diff --git a/test/fixtures/go/constructors.diff+A.txt b/test/fixtures/go/constructors.diff+A.txt index 37dfd5c8b..4e0e54ee4 100644 --- a/test/fixtures/go/constructors.diff+A.txt +++ b/test/fixtures/go/constructors.diff+A.txt @@ -12,10 +12,9 @@ (Identifier) (ChannelTy (Identifier)) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) + (RelationalOperator + (Identifier) + (Identifier))) (FunctionCall (Identifier) (ChannelTy diff --git a/test/fixtures/go/constructors.diff+B.txt b/test/fixtures/go/constructors.diff+B.txt deleted file mode 100644 index 37dfd5c8b..000000000 --- a/test/fixtures/go/constructors.diff+B.txt +++ /dev/null @@ -1,29 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (FunctionCall - (Identifier) - (ChannelTy - (Identifier))) - (FunctionCall - (Identifier) - (ChannelTy - (Identifier)) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) - (FunctionCall - (Identifier) - (ChannelTy - (Identifier)) - (NumberLiteral) - (NumberLiteral)) - (FunctionCall - (Identifier) - (DictionaryTy - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/go/constructors.diff-A.txt b/test/fixtures/go/constructors.diff-A.txt index f88d0b5fb..5e3f4cf31 100644 --- a/test/fixtures/go/constructors.diff-A.txt +++ b/test/fixtures/go/constructors.diff-A.txt @@ -12,10 +12,9 @@ (Identifier) (ChannelTy (Identifier)) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) + (RelationalOperator + (Identifier) + (Identifier))) (FunctionCall (Identifier) (ChannelTy diff --git a/test/fixtures/go/constructors.diff-B.txt b/test/fixtures/go/constructors.diff-B.txt index f88d0b5fb..5e3f4cf31 100644 --- a/test/fixtures/go/constructors.diff-B.txt +++ b/test/fixtures/go/constructors.diff-B.txt @@ -12,10 +12,9 @@ (Identifier) (ChannelTy (Identifier)) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) + (RelationalOperator + (Identifier) + (Identifier))) (FunctionCall (Identifier) (ChannelTy diff --git a/test/fixtures/go/constructors.diffA-B.txt b/test/fixtures/go/constructors.diffA-B.txt index b8b84248b..a805732f2 100644 --- a/test/fixtures/go/constructors.diffA-B.txt +++ b/test/fixtures/go/constructors.diffA-B.txt @@ -14,10 +14,9 @@ (ChannelTy { (Identifier) ->(Identifier) }) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) + (RelationalOperator + (Identifier) + (Identifier))) (FunctionCall (Identifier) (ChannelTy diff --git a/test/fixtures/go/constructors.diffB-A.txt b/test/fixtures/go/constructors.diffB-A.txt index b8b84248b..a805732f2 100644 --- a/test/fixtures/go/constructors.diffB-A.txt +++ b/test/fixtures/go/constructors.diffB-A.txt @@ -14,10 +14,9 @@ (ChannelTy { (Identifier) ->(Identifier) }) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) + (RelationalOperator + (Identifier) + (Identifier))) (FunctionCall (Identifier) (ChannelTy diff --git a/test/fixtures/go/constructors.parseA.txt b/test/fixtures/go/constructors.parseA.txt index 6f716b764..7d7c8d716 100644 --- a/test/fixtures/go/constructors.parseA.txt +++ b/test/fixtures/go/constructors.parseA.txt @@ -12,10 +12,9 @@ (Identifier) (ChannelTy (Identifier)) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) + (RelationalOperator + (Identifier) + (Identifier))) (FunctionCall (Identifier) (ChannelTy diff --git a/test/fixtures/go/constructors.parseB.txt b/test/fixtures/go/constructors.parseB.txt index 6f716b764..7d7c8d716 100644 --- a/test/fixtures/go/constructors.parseB.txt +++ b/test/fixtures/go/constructors.parseB.txt @@ -12,10 +12,9 @@ (Identifier) (ChannelTy (Identifier)) - (ParenthesizedExpression - (RelationalOperator - (Identifier) - (Identifier)))) + (RelationalOperator + (Identifier) + (Identifier))) (FunctionCall (Identifier) (ChannelTy diff --git a/test/fixtures/go/float-literals.diff+B.txt b/test/fixtures/go/float-literals.diff+B.txt deleted file mode 100644 index d262bf155..000000000 --- a/test/fixtures/go/float-literals.diff+B.txt +++ /dev/null @@ -1,31 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (FloatLiteral))) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (FloatLiteral))) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (FloatLiteral))) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (FloatLiteral))) - (Assignment - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (FloatLiteral)))))+} diff --git a/test/fixtures/go/for-statements.diff+B.txt b/test/fixtures/go/for-statements.diff+B.txt deleted file mode 100644 index 57c5e342f..000000000 --- a/test/fixtures/go/for-statements.diff+B.txt +++ /dev/null @@ -1,38 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (For - (FunctionCall - (Identifier)) - (Other "goto_statement" - (Identifier))) - (For - (Other "expression_list" - (Identifier)) - (Identifier) - (FunctionCall - (Identifier)) - (Break - (Identifier))) - (For - (FunctionCall - (Identifier)) - (Continue - (Identifier))) - (For - (RelationalOperator - (Identifier) - (NumberLiteral)) - (IncrementStatement) - (FunctionCall - (Identifier)) - (Continue)) - (For - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier)) - (Break)))))+} diff --git a/test/fixtures/go/function-declarations.diff+B.txt b/test/fixtures/go/function-declarations.diff+B.txt deleted file mode 100644 index 714328cb7..000000000 --- a/test/fixtures/go/function-declarations.diff+B.txt +++ /dev/null @@ -1,37 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args)) - (Function - (Identifier) - (Args)) - (Function - (Identifier) - (Args - (ParameterDecl - (Identifier) - (Identifier)) - (Identifier) - (Identifier) - (ParameterDecl - (Identifier) - (Identifier))) - (Identifier)) - (Function - (Identifier) - (Args) - (Args - (Identifier) - (Identifier))) - (Function - (Identifier) - (Args) - (Args - (ParameterDecl - (Identifier) - (Identifier)) - (ParameterDecl - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/go/function-literals.diff+B.txt b/test/fixtures/go/function-literals.diff+B.txt deleted file mode 100644 index 4c69a5baa..000000000 --- a/test/fixtures/go/function-literals.diff+B.txt +++ /dev/null @@ -1,17 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (AnonymousFunction - (Identifier) - (Identifier) - (Return - (Other "expression_list" - (NumberLiteral) - (NumberLiteral)))))))))+} diff --git a/test/fixtures/go/function-types.diff+B.txt b/test/fixtures/go/function-types.diff+B.txt deleted file mode 100644 index 70cea7c63..000000000 --- a/test/fixtures/go/function-types.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(ParseError - (Module - (Identifier)) - (Identifier) - (Args) - (TypeDecl - (Identifier) - (FunctionTy - (Args - (Identifier)) - (Identifier))) - (Identifier) - (Args - (Identifier) - (Identifier)))+} diff --git a/test/fixtures/go/go-and-defer-statements.diff+B.txt b/test/fixtures/go/go-and-defer-statements.diff+B.txt deleted file mode 100644 index c0531a8e5..000000000 --- a/test/fixtures/go/go-and-defer-statements.diff+B.txt +++ /dev/null @@ -1,16 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Defer - (FunctionCall - (SubscriptAccess - (Identifier) - (Identifier)))) - (Go - (FunctionCall - (SubscriptAccess - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/go/grouped-import-declarations.diff+B.txt b/test/fixtures/go/grouped-import-declarations.diff+B.txt deleted file mode 100644 index 8f4a62964..000000000 --- a/test/fixtures/go/grouped-import-declarations.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(ParseError - (Module - (Identifier)) - (Identifier) - (Args) - (Identifier) - (StringLiteral) - (StringLiteral))+} diff --git a/test/fixtures/go/grouped-var-declarations.diff+B.txt b/test/fixtures/go/grouped-var-declarations.diff+B.txt deleted file mode 100644 index ef90c94ce..000000000 --- a/test/fixtures/go/grouped-var-declarations.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "var_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (NumberLiteral))) - (VarAssignment - (Identifier) - (Other "expression_list" - (NumberLiteral))))))+} diff --git a/test/fixtures/go/if-statements.diff+B.txt b/test/fixtures/go/if-statements.diff+B.txt deleted file mode 100644 index 2ecbadcf2..000000000 --- a/test/fixtures/go/if-statements.diff+B.txt +++ /dev/null @@ -1,32 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (If - (FunctionCall - (Identifier)) - (ExpressionStatements - (FunctionCall - (Identifier)))) - (If - (VarDecl - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (FunctionCall - (Identifier)))) - (Identifier) - (ExpressionStatements - (FunctionCall - (Identifier)))) - (If - (FunctionCall - (Identifier)) - (ExpressionStatements - (FunctionCall - (Identifier))) - (ExpressionStatements - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/go/imaginary-literals.diff+B.txt b/test/fixtures/go/imaginary-literals.diff+B.txt deleted file mode 100644 index 399b3d278..000000000 --- a/test/fixtures/go/imaginary-literals.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "imaginary_literal"))) - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "imaginary_literal"))))))+} diff --git a/test/fixtures/go/increment-decrement-statements.diff+B.txt b/test/fixtures/go/increment-decrement-statements.diff+B.txt deleted file mode 100644 index 36149c05f..000000000 --- a/test/fixtures/go/increment-decrement-statements.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (IncrementStatement) - (IncrementStatement)))+} diff --git a/test/fixtures/go/indexing-expressions.diff+B.txt b/test/fixtures/go/indexing-expressions.diff+B.txt deleted file mode 100644 index 817d65b53..000000000 --- a/test/fixtures/go/indexing-expressions.diff+B.txt +++ /dev/null @@ -1,28 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Slice - (Identifier) - (NumberLiteral)) - (Slice - (Identifier) - (NumberLiteral)) - (Slice - (Identifier) - (NumberLiteral)) - (Slice - (Identifier) - (NumberLiteral) - (NumberLiteral)) - (Slice - (Identifier) - (NumberLiteral) - (NumberLiteral)) - (Slice - (Identifier) - (NumberLiteral) - (NumberLiteral) - (NumberLiteral))))+} diff --git a/test/fixtures/go/int-literals.diff+B.txt b/test/fixtures/go/int-literals.diff+B.txt deleted file mode 100644 index 15a90a280..000000000 --- a/test/fixtures/go/int-literals.diff+B.txt +++ /dev/null @@ -1,10 +0,0 @@ -{+(ParseError - (Module - (Identifier)) - (Identifier) - (Args) - (VarAssignment - (Identifier) - (Other "expression_list" - (NumberLiteral) - (Identifier))))+} diff --git a/test/fixtures/go/interface-types.diff+B.txt b/test/fixtures/go/interface-types.diff+B.txt deleted file mode 100644 index def4ed6f0..000000000 --- a/test/fixtures/go/interface-types.diff+B.txt +++ /dev/null @@ -1,28 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (Other "interface_type"))) - (Other "type_declaration" - (TypeDecl - (Identifier) - (Other "interface_type" - (QualifiedType)))) - (Other "type_declaration" - (TypeDecl - (Identifier) - (Other "interface_type" - (Identifier) - (QualifiedType) - (Other "method_spec" - (Identifier) - (Args - (ParameterDecl - (Identifier) - (Identifier))) - (Identifier)))))))+} diff --git a/test/fixtures/go/label-statements.diff+B.txt b/test/fixtures/go/label-statements.diff+B.txt deleted file mode 100644 index 82b4b655a..000000000 --- a/test/fixtures/go/label-statements.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (ExpressionStatements - (Other "label_statement" - (Identifier)))))+} diff --git a/test/fixtures/go/map-literals.diff+B.txt b/test/fixtures/go/map-literals.diff+B.txt deleted file mode 100644 index faead3326..000000000 --- a/test/fixtures/go/map-literals.diff+B.txt +++ /dev/null @@ -1,20 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (DictionaryTy - (Identifier) - (Identifier)) - (Pair - (StringLiteral) - (StringLiteral)) - (Pair - (StringLiteral) - (StringLiteral))))))))+} diff --git a/test/fixtures/go/map-types.diff+B.txt b/test/fixtures/go/map-types.diff+B.txt deleted file mode 100644 index a93c7a2c1..000000000 --- a/test/fixtures/go/map-types.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (DictionaryTy - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/go/method-declarations.diff+B.txt b/test/fixtures/go/method-declarations.diff+B.txt deleted file mode 100644 index af576b44d..000000000 --- a/test/fixtures/go/method-declarations.diff+B.txt +++ /dev/null @@ -1,17 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args)) - (Method - (Identifier) - (Args - (ParameterDecl - (Identifier) - (Identifier))) - (Args - (ParameterDecl - (Identifier) - (Identifier))) - (Identifier)))+} diff --git a/test/fixtures/go/modifying-struct-fields.diff+B.txt b/test/fixtures/go/modifying-struct-fields.diff+B.txt deleted file mode 100644 index e089e7aae..000000000 --- a/test/fixtures/go/modifying-struct-fields.diff+B.txt +++ /dev/null @@ -1,18 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (VarDecl - (Other "expression_list" - (Identifier)) - (Other "expression_list" - (Operator - (Other "composite_literal" - (Identifier) - (Pair - (Identifier) - (FunctionCall - (Identifier) - (QualifiedType)))))))))+} diff --git a/test/fixtures/go/parameter-declarations-with-types.diff+B.txt b/test/fixtures/go/parameter-declarations-with-types.diff+B.txt deleted file mode 100644 index d2462322b..000000000 --- a/test/fixtures/go/parameter-declarations-with-types.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args)) - (Function - (Identifier) - (Args - (ParameterDecl - (Identifier) - (Identifier)) - (ParameterDecl - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/go/pointer-types.diff+B.txt b/test/fixtures/go/pointer-types.diff+B.txt deleted file mode 100644 index 3137873e3..000000000 --- a/test/fixtures/go/pointer-types.diff+B.txt +++ /dev/null @@ -1,16 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (PointerTy - (Identifier))) - (TypeDecl - (Identifier) - (PointerTy - (PointerTy - (Identifier)))))))+} diff --git a/test/fixtures/go/qualified-types.diff+B.txt b/test/fixtures/go/qualified-types.diff+B.txt deleted file mode 100644 index 195c00c8b..000000000 --- a/test/fixtures/go/qualified-types.diff+B.txt +++ /dev/null @@ -1,10 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (QualifiedType)))))+} diff --git a/test/fixtures/go/rune-literals.diff+B.txt b/test/fixtures/go/rune-literals.diff+B.txt deleted file mode 100644 index 1727ed92b..000000000 --- a/test/fixtures/go/rune-literals.diff+B.txt +++ /dev/null @@ -1,28 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (RuneLiteral))) - (VarAssignment - (Identifier) - (Other "expression_list" - (RuneLiteral))) - (VarAssignment - (Identifier) - (Other "expression_list" - (RuneLiteral))) - (VarAssignment - (Identifier) - (Other "expression_list" - (RuneLiteral))) - (VarAssignment - (Identifier) - (Other "expression_list" - (RuneLiteral))) - (VarAssignment - (Identifier) - (Other "expression_list" - (RuneLiteral)))))+} diff --git a/test/fixtures/go/select-statements.diff+B.txt b/test/fixtures/go/select-statements.diff+B.txt deleted file mode 100644 index 93ae3a620..000000000 --- a/test/fixtures/go/select-statements.diff+B.txt +++ /dev/null @@ -1,36 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Select - (Case - (Other "receive_statement" - (Other "expression_list" - (Identifier)) - (Operator - (Identifier)))) - (FunctionCall - (Identifier) - (Identifier)) - (Case - (Send - (Identifier) - (Identifier))) - (FunctionCall - (Identifier) - (NumberLiteral)) - (Case - (Other "receive_statement" - (Operator - (FunctionCall - (SubscriptAccess - (Identifier) - (Identifier)) - (NumberLiteral))))) - (FunctionCall - (Identifier) - (NumberLiteral)) - (Case) - (Return))))+} diff --git a/test/fixtures/go/selector-expressions.diff+B.txt b/test/fixtures/go/selector-expressions.diff+B.txt deleted file mode 100644 index 49f00c90c..000000000 --- a/test/fixtures/go/selector-expressions.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (FunctionCall - (SubscriptAccess - (SubscriptAccess - (Identifier) - (Identifier)) - (Identifier)))))+} diff --git a/test/fixtures/go/send-statements.diff+B.txt b/test/fixtures/go/send-statements.diff+B.txt deleted file mode 100644 index 43a8e202c..000000000 --- a/test/fixtures/go/send-statements.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Send - (Identifier) - (NumberLiteral))))+} diff --git a/test/fixtures/go/short-var-declarations.diff+B.txt b/test/fixtures/go/short-var-declarations.diff+B.txt deleted file mode 100644 index 3a0b4f5b2..000000000 --- a/test/fixtures/go/short-var-declarations.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (VarDecl - (Other "expression_list" - (Identifier) - (Identifier)) - (Other "expression_list" - (NumberLiteral) - (NumberLiteral)))))+} diff --git a/test/fixtures/go/single-import-declarations.diff+B.txt b/test/fixtures/go/single-import-declarations.diff+B.txt deleted file mode 100644 index cdb031982..000000000 --- a/test/fixtures/go/single-import-declarations.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(ParseError - (Module - (Identifier)) - (Identifier) - (Args) - (Identifier) - (StringLiteral))+} diff --git a/test/fixtures/go/single-line-function-declarations.diff+B.txt b/test/fixtures/go/single-line-function-declarations.diff+B.txt deleted file mode 100644 index 06c42ed14..000000000 --- a/test/fixtures/go/single-line-function-declarations.diff+B.txt +++ /dev/null @@ -1,25 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args)) - (Function - (Identifier) - (Args) - (FunctionCall - (Identifier))) - (Function - (Identifier) - (Args) - (FunctionCall - (Identifier)) - (FunctionCall - (Identifier))) - (Function - (Identifier) - (Args) - (FunctionCall - (Identifier)) - (FunctionCall - (Identifier))))+} diff --git a/test/fixtures/go/slice-literals.diff+B.txt b/test/fixtures/go/slice-literals.diff+B.txt deleted file mode 100644 index 4e6ec428c..000000000 --- a/test/fixtures/go/slice-literals.diff+B.txt +++ /dev/null @@ -1,34 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (SliceTy - (Identifier)) - (Literal - (StringLiteral)))))) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (SliceTy - (Identifier)) - (Literal - (StringLiteral)))))) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (SliceTy - (Identifier)) - (Literal - (StringLiteral) - (StringLiteral))))))))+} diff --git a/test/fixtures/go/slice-types.diff+B.txt b/test/fixtures/go/slice-types.diff+B.txt deleted file mode 100644 index 824e99281..000000000 --- a/test/fixtures/go/slice-types.diff+B.txt +++ /dev/null @@ -1,17 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (SliceTy - (SliceTy - (Identifier))))) - (Other "type_declaration" - (TypeDecl - (Identifier) - (SliceTy - (Identifier))))))+} diff --git a/test/fixtures/go/string-literals.diff+B.txt b/test/fixtures/go/string-literals.diff+B.txt deleted file mode 100644 index 7f55415ba..000000000 --- a/test/fixtures/go/string-literals.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (StringLiteral))) - (VarAssignment - (Identifier) - (Other "expression_list" - (StringLiteral))))))+} diff --git a/test/fixtures/go/struct-field-declarations.diff+B.txt b/test/fixtures/go/struct-field-declarations.diff+B.txt deleted file mode 100644 index 35769dc1e..000000000 --- a/test/fixtures/go/struct-field-declarations.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (StructTy - (FieldDecl - (Identifier) - (Identifier) - (Identifier)))))))+} diff --git a/test/fixtures/go/struct-literals.diff+B.txt b/test/fixtures/go/struct-literals.diff+B.txt deleted file mode 100644 index 3ab420cc6..000000000 --- a/test/fixtures/go/struct-literals.diff+B.txt +++ /dev/null @@ -1,36 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (Identifier) - (Pair - (Identifier) - (StringLiteral)) - (Pair - (Identifier) - (StringLiteral)))))) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (StructTy - (FieldDecl - (Identifier) - (Identifier))) - (Pair - (Identifier) - (NumberLiteral)))))) - (Other "const_declaration" - (VarAssignment - (Identifier) - (Other "expression_list" - (Other "composite_literal" - (QualifiedType)))))))+} diff --git a/test/fixtures/go/struct-types.diff+B.txt b/test/fixtures/go/struct-types.diff+B.txt deleted file mode 100644 index e3abb7bf7..000000000 --- a/test/fixtures/go/struct-types.diff+B.txt +++ /dev/null @@ -1,34 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (StructTy))) - (Other "type_declaration" - (TypeDecl - (Identifier) - (StructTy - (FieldDecl - (Identifier))))) - (Other "type_declaration" - (TypeDecl - (Identifier) - (StructTy - (FieldDecl - (Identifier) - (Identifier) - (Identifier))))) - (Other "type_declaration" - (TypeDecl - (Identifier) - (StructTy - (FieldDecl - (QualifiedType)) - (FieldDecl - (Identifier) - (Identifier) - (StringLiteral)))))))+} diff --git a/test/fixtures/go/switch-statements.diff+B.txt b/test/fixtures/go/switch-statements.diff+B.txt deleted file mode 100644 index cc38dd47f..000000000 --- a/test/fixtures/go/switch-statements.diff+B.txt +++ /dev/null @@ -1,31 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Switch - (Case - (Case - (Other "expression_list" - (RelationalOperator - (Identifier) - (Identifier)))) - (FunctionCall - (Identifier))) - (Case - (Case - (Other "expression_list" - (RelationalOperator - (Identifier) - (Identifier)))) - (FunctionCall - (Identifier))) - (Case - (Case - (Other "expression_list" - (RelationalOperator - (Identifier) - (NumberLiteral)))) - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/go/type-assertion-expressions.diff+B.txt b/test/fixtures/go/type-assertion-expressions.diff+B.txt deleted file mode 100644 index d58c3e956..000000000 --- a/test/fixtures/go/type-assertion-expressions.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (TypeAssertion - (Identifier) - (QualifiedType))))+} diff --git a/test/fixtures/go/type-conversion-expressions.diff+A.txt b/test/fixtures/go/type-conversion-expressions.diff+A.txt index 7277b212b..2c4a21793 100644 --- a/test/fixtures/go/type-conversion-expressions.diff+A.txt +++ b/test/fixtures/go/type-conversion-expressions.diff+A.txt @@ -23,8 +23,7 @@ (Identifier)) (Identifier)) (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - (Identifier) - (Identifier))) + (SubscriptAccess + (Identifier) + (Identifier)) (Identifier))))+} diff --git a/test/fixtures/go/type-conversion-expressions.diff+B.txt b/test/fixtures/go/type-conversion-expressions.diff+B.txt deleted file mode 100644 index 7277b212b..000000000 --- a/test/fixtures/go/type-conversion-expressions.diff+B.txt +++ /dev/null @@ -1,30 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (TypeConversion - (SliceTy - (QualifiedType)) - (SubscriptAccess - (Identifier) - (Identifier))) - (TypeConversion - (ParenthesizedType - (SliceTy - (QualifiedType))) - (SubscriptAccess - (Identifier) - (Identifier))) - (FunctionCall - (SubscriptAccess - (Identifier) - (Identifier)) - (Identifier)) - (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - (Identifier) - (Identifier))) - (Identifier))))+} diff --git a/test/fixtures/go/type-conversion-expressions.diff-A.txt b/test/fixtures/go/type-conversion-expressions.diff-A.txt index ab98f4d74..bbea53595 100644 --- a/test/fixtures/go/type-conversion-expressions.diff-A.txt +++ b/test/fixtures/go/type-conversion-expressions.diff-A.txt @@ -23,8 +23,7 @@ (Identifier)) (Identifier)) (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - (Identifier) - (Identifier))) + (SubscriptAccess + (Identifier) + (Identifier)) (Identifier))))-} diff --git a/test/fixtures/go/type-conversion-expressions.diff-B.txt b/test/fixtures/go/type-conversion-expressions.diff-B.txt index ab98f4d74..bbea53595 100644 --- a/test/fixtures/go/type-conversion-expressions.diff-B.txt +++ b/test/fixtures/go/type-conversion-expressions.diff-B.txt @@ -23,8 +23,7 @@ (Identifier)) (Identifier)) (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - (Identifier) - (Identifier))) + (SubscriptAccess + (Identifier) + (Identifier)) (Identifier))))-} diff --git a/test/fixtures/go/type-conversion-expressions.diffA-B.txt b/test/fixtures/go/type-conversion-expressions.diffA-B.txt index 201e00e62..6af3d23d3 100644 --- a/test/fixtures/go/type-conversion-expressions.diffA-B.txt +++ b/test/fixtures/go/type-conversion-expressions.diffA-B.txt @@ -32,11 +32,10 @@ { (Identifier) ->(Identifier) }) (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - { (Identifier) - ->(Identifier) } - { (Identifier) - ->(Identifier) })) + (SubscriptAccess + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) }) { (Identifier) ->(Identifier) }))) diff --git a/test/fixtures/go/type-conversion-expressions.diffB-A.txt b/test/fixtures/go/type-conversion-expressions.diffB-A.txt index 201e00e62..6af3d23d3 100644 --- a/test/fixtures/go/type-conversion-expressions.diffB-A.txt +++ b/test/fixtures/go/type-conversion-expressions.diffB-A.txt @@ -32,11 +32,10 @@ { (Identifier) ->(Identifier) }) (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - { (Identifier) - ->(Identifier) } - { (Identifier) - ->(Identifier) })) + (SubscriptAccess + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) }) { (Identifier) ->(Identifier) }))) diff --git a/test/fixtures/go/type-conversion-expressions.parseA.txt b/test/fixtures/go/type-conversion-expressions.parseA.txt index 3feb0a558..0dea327f8 100644 --- a/test/fixtures/go/type-conversion-expressions.parseA.txt +++ b/test/fixtures/go/type-conversion-expressions.parseA.txt @@ -23,8 +23,7 @@ (Identifier)) (Identifier)) (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - (Identifier) - (Identifier))) + (SubscriptAccess + (Identifier) + (Identifier)) (Identifier)))) diff --git a/test/fixtures/go/type-conversion-expressions.parseB.txt b/test/fixtures/go/type-conversion-expressions.parseB.txt index 3feb0a558..0dea327f8 100644 --- a/test/fixtures/go/type-conversion-expressions.parseB.txt +++ b/test/fixtures/go/type-conversion-expressions.parseB.txt @@ -23,8 +23,7 @@ (Identifier)) (Identifier)) (FunctionCall - (ParenthesizedExpression - (SubscriptAccess - (Identifier) - (Identifier))) + (SubscriptAccess + (Identifier) + (Identifier)) (Identifier)))) diff --git a/test/fixtures/go/type-declarations.diff+B.txt b/test/fixtures/go/type-declarations.diff+B.txt deleted file mode 100644 index 8c5a1abf3..000000000 --- a/test/fixtures/go/type-declarations.diff+B.txt +++ /dev/null @@ -1,17 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "type_declaration" - (TypeDecl - (Identifier) - (Identifier))) - (Other "type_declaration" - (TypeDecl - (Identifier) - (Identifier)) - (TypeDecl - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/go/type-switch-statements.diff+B.txt b/test/fixtures/go/type-switch-statements.diff+B.txt deleted file mode 100644 index 294aba028..000000000 --- a/test/fixtures/go/type-switch-statements.diff+B.txt +++ /dev/null @@ -1,19 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Switch - (Identifier) - (Case - (Other "type_case" - (SliceTy - (Identifier))) - (FunctionCall - (Identifier))) - (Case - (Other "type_case" - (PointerTy - (Identifier))) - (Break)))))+} diff --git a/test/fixtures/go/unary-expressions.diff+B.txt b/test/fixtures/go/unary-expressions.diff+B.txt deleted file mode 100644 index 5d3bd6dd0..000000000 --- a/test/fixtures/go/unary-expressions.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Operator - (Operator - (Identifier))) - (Operator - (FunctionCall - (Identifier)))))+} diff --git a/test/fixtures/go/var-declarations-with-no-expressions.diff+B.txt b/test/fixtures/go/var-declarations-with-no-expressions.diff+B.txt deleted file mode 100644 index 73333955f..000000000 --- a/test/fixtures/go/var-declarations-with-no-expressions.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "var_declaration" - (VarAssignment - (Identifier) - (Identifier))) - (Other "var_declaration" - (VarAssignment - (Identifier) - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/go/var-declarations-with-types.diff+B.txt b/test/fixtures/go/var-declarations-with-types.diff+B.txt deleted file mode 100644 index 3b062ec29..000000000 --- a/test/fixtures/go/var-declarations-with-types.diff+B.txt +++ /dev/null @@ -1,20 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "var_declaration" - (VarAssignment - (Identifier) - (Identifier) - (Other "expression_list" - (NumberLiteral)))) - (Other "var_declaration" - (VarAssignment - (Identifier) - (Identifier) - (Identifier) - (Other "expression_list" - (NumberLiteral) - (NumberLiteral))))))+} diff --git a/test/fixtures/go/var-declarations-without-types.diff+B.txt b/test/fixtures/go/var-declarations-without-types.diff+B.txt deleted file mode 100644 index 31f84c99a..000000000 --- a/test/fixtures/go/var-declarations-without-types.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args) - (Other "var_declaration" - (VarAssignment - (Identifier) - (Identifier) - (Other "expression_list" - (NumberLiteral) - (NumberLiteral))))))+} diff --git a/test/fixtures/go/variadic-function-declarations.diff+B.txt b/test/fixtures/go/variadic-function-declarations.diff+B.txt deleted file mode 100644 index eaae88a50..000000000 --- a/test/fixtures/go/variadic-function-declarations.diff+B.txt +++ /dev/null @@ -1,24 +0,0 @@ -{+(Program - (Module - (Identifier)) - (Function - (Identifier) - (Args)) - (Function - (Identifier) - (Args - (ParameterDecl - (PointerTy - (Identifier)) - (Identifier)))) - (Function - (Identifier) - (Args - (ParameterDecl - (Identifier)))) - (Function - (Identifier) - (Args - (Identifier) - (ParameterDecl - (Identifier)))))+} diff --git a/test/fixtures/javascript/anonymous-function.diff+B.txt b/test/fixtures/javascript/anonymous-function.diff+B.txt deleted file mode 100644 index 4d4ddc7bc..000000000 --- a/test/fixtures/javascript/anonymous-function.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (Return - (MathOperator - (Identifier) - (Other "*") - (Identifier))))))+} diff --git a/test/fixtures/javascript/anonymous-parameterless-function.diff+B.txt b/test/fixtures/javascript/anonymous-parameterless-function.diff+B.txt deleted file mode 100644 index 2dfcd30c4..000000000 --- a/test/fixtures/javascript/anonymous-parameterless-function.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Params) - (Return - (StringLiteral)))))+} diff --git a/test/fixtures/javascript/array.diff+B.txt b/test/fixtures/javascript/array.diff+B.txt deleted file mode 100644 index 7918741f2..000000000 --- a/test/fixtures/javascript/array.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (ArrayLiteral - (StringLiteral) - (StringLiteral))))+} diff --git a/test/fixtures/javascript/arrow-function.diff+B.txt b/test/fixtures/javascript/arrow-function.diff+B.txt deleted file mode 100644 index c75e1cf97..000000000 --- a/test/fixtures/javascript/arrow-function.diff+B.txt +++ /dev/null @@ -1,10 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (Return - (Identifier)))))+} diff --git a/test/fixtures/javascript/assignment-pattern.diff+B.txt b/test/fixtures/javascript/assignment-pattern.diff+B.txt deleted file mode 100644 index ea330ea24..000000000 --- a/test/fixtures/javascript/assignment-pattern.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (Other "variable_declaration" - (VarAssignment - (Other "object_pattern" - (Other "assignment_pattern" - (Identifier) - (NumberLiteral))) - (Identifier))))+} diff --git a/test/fixtures/javascript/assignment.diff+B.txt b/test/fixtures/javascript/assignment.diff+B.txt deleted file mode 100644 index 276c0925b..000000000 --- a/test/fixtures/javascript/assignment.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (Identifier) - (NumberLiteral))))+} diff --git a/test/fixtures/javascript/bitwise-operator.diff+B.txt b/test/fixtures/javascript/bitwise-operator.diff+B.txt deleted file mode 100644 index ad803dbcf..000000000 --- a/test/fixtures/javascript/bitwise-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (BitwiseOperator - (Identifier) - (Other ">>") - (Identifier))))+} diff --git a/test/fixtures/javascript/boolean-operator.diff+B.txt b/test/fixtures/javascript/boolean-operator.diff+B.txt deleted file mode 100644 index 15aad38c7..000000000 --- a/test/fixtures/javascript/boolean-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (BooleanOperator - (Identifier) - (Other "&&") - (Identifier))))+} diff --git a/test/fixtures/javascript/break.diff+B.txt b/test/fixtures/javascript/break.diff+B.txt deleted file mode 100644 index 72fbf66f3..000000000 --- a/test/fixtures/javascript/break.diff+B.txt +++ /dev/null @@ -1,22 +0,0 @@ -{+(Program - (For - (Assignment - (Identifier) - (NumberLiteral)) - (RelationalOperator - (Identifier) - (Other "<") - (NumberLiteral)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (If - (RelationalOperator - (Identifier) - (Other "===") - (NumberLiteral)) - (ExpressionStatements - (Continue))) - (ExpressionStatements - (Identifier)))))+} diff --git a/test/fixtures/javascript/chained-callbacks.diff+B.txt b/test/fixtures/javascript/chained-callbacks.diff+B.txt deleted file mode 100644 index 426f44ba1..000000000 --- a/test/fixtures/javascript/chained-callbacks.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Function - (Params - (Other "required_parameter" - (Identifier))) - (Return - (MemberAccess - (Identifier) - (Identifier)))))))+} diff --git a/test/fixtures/javascript/chained-property-access.diff+B.txt b/test/fixtures/javascript/chained-property-access.diff+B.txt deleted file mode 100644 index 225a42371..000000000 --- a/test/fixtures/javascript/chained-property-access.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Return - (FunctionCall - (FunctionCall - (FunctionCall - (Identifier) - (Identifier)) - (Identifier) - (MemberAccess - (Identifier) - (Identifier))) - (Identifier) - (MemberAccess - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/javascript/class.diff+B.txt b/test/fixtures/javascript/class.diff+B.txt deleted file mode 100644 index 1d0308bf8..000000000 --- a/test/fixtures/javascript/class.diff+B.txt +++ /dev/null @@ -1,25 +0,0 @@ -{+(Program - (ExpressionStatements - (Class - (Identifier) - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier))) - (Return - (Identifier))) - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier))) - (Return - (Identifier))) - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier))) - (Return - (Identifier))))))+} diff --git a/test/fixtures/javascript/comma-operator.diff+B.txt b/test/fixtures/javascript/comma-operator.diff+B.txt deleted file mode 100644 index b46734e8c..000000000 --- a/test/fixtures/javascript/comma-operator.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (Identifier) - (Object - (Pair - (Identifier) - (CommaOperator - (NumberLiteral) - (MathOperator - (NumberLiteral) - (Other "+") - (NumberLiteral)) - (NumberLiteral)))))))+} diff --git a/test/fixtures/javascript/constructor-call.diff+B.txt b/test/fixtures/javascript/constructor-call.diff+B.txt deleted file mode 100644 index d92216c44..000000000 --- a/test/fixtures/javascript/constructor-call.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (ExpressionStatements - (Constructor - (FunctionCall - (Identifier) - (Identifier) - (NumberLiteral) - (StringLiteral)))))+} diff --git a/test/fixtures/javascript/continue.diff+B.txt b/test/fixtures/javascript/continue.diff+B.txt deleted file mode 100644 index 6471b643c..000000000 --- a/test/fixtures/javascript/continue.diff+B.txt +++ /dev/null @@ -1,22 +0,0 @@ -{+(Program - (For - (Assignment - (Identifier) - (NumberLiteral)) - (RelationalOperator - (Identifier) - (Other "<") - (NumberLiteral)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (If - (RelationalOperator - (Identifier) - (Other "===") - (NumberLiteral)) - (ExpressionStatements - (Break))) - (ExpressionStatements - (Identifier)))))+} diff --git a/test/fixtures/javascript/delete-operator.diff+B.txt b/test/fixtures/javascript/delete-operator.diff+B.txt deleted file mode 100644 index 11c3767b5..000000000 --- a/test/fixtures/javascript/delete-operator.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (Operator - (Other "delete") - (MemberAccess - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/javascript/do-while-statement.diff+B.txt b/test/fixtures/javascript/do-while-statement.diff+B.txt deleted file mode 100644 index c72c20799..000000000 --- a/test/fixtures/javascript/do-while-statement.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (DoWhile - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier)))) - (Boolean)))+} diff --git a/test/fixtures/javascript/export.diff+B.txt b/test/fixtures/javascript/export.diff+B.txt deleted file mode 100644 index 2826e794c..000000000 --- a/test/fixtures/javascript/export.diff+B.txt +++ /dev/null @@ -1,70 +0,0 @@ -{+(Program - (Export - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier))) - (Export - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier))) - (Export - (VarDecl - (Identifier)) - (VarDecl - (Identifier)) - (VarDecl - (Identifier))) - (Export - (VarAssignment - (Identifier) - (Identifier)) - (VarAssignment - (Identifier) - (Identifier)) - (VarDecl - (Identifier)) - (VarDecl - (Identifier))) - (Export - (Identifier)) - (Export - (Function - (Identifier) - (Params))) - (Export - (Function - (Params))) - (Export - (Other "export_specifier" - (Identifier) - (Identifier))) - (Export - (StringLiteral)) - (Export - (StringLiteral) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier))) - (Export - (StringLiteral) - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier))))+} diff --git a/test/fixtures/javascript/false.diff+B.txt b/test/fixtures/javascript/false.diff+B.txt deleted file mode 100644 index 4ec96172b..000000000 --- a/test/fixtures/javascript/false.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Return - (Boolean)))+} diff --git a/test/fixtures/javascript/for-in-statement.diff+B.txt b/test/fixtures/javascript/for-in-statement.diff+B.txt deleted file mode 100644 index c0c0e6b07..000000000 --- a/test/fixtures/javascript/for-in-statement.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (For - (Identifier) - (Identifier) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/javascript/for-loop-with-in-statement.diff+B.txt b/test/fixtures/javascript/for-loop-with-in-statement.diff+B.txt deleted file mode 100644 index 3782d7650..000000000 --- a/test/fixtures/javascript/for-loop-with-in-statement.diff+B.txt +++ /dev/null @@ -1,22 +0,0 @@ -{+(Program - (For - (BooleanOperator - (Operator - (Identifier) - (Other "in") - (Identifier)) - (Other "&&") - (Assignment - (Identifier) - (NumberLiteral))) - (RelationalOperator - (Identifier) - (Other "<") - (Identifier)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/javascript/for-of-statement.diff+B.txt b/test/fixtures/javascript/for-of-statement.diff+B.txt deleted file mode 100644 index f009c06c8..000000000 --- a/test/fixtures/javascript/for-of-statement.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (For - (Identifier) - (Identifier) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/javascript/for-statement.diff+B.txt b/test/fixtures/javascript/for-statement.diff+B.txt deleted file mode 100644 index 455cc3235..000000000 --- a/test/fixtures/javascript/for-statement.diff+B.txt +++ /dev/null @@ -1,19 +0,0 @@ -{+(Program - (For - (Assignment - (Identifier) - (NumberLiteral)) - (FunctionCall - (Identifier)) - (RelationalOperator - (Identifier) - (Other "<") - (NumberLiteral)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/javascript/function-call-args.diff+B.txt b/test/fixtures/javascript/function-call-args.diff+B.txt deleted file mode 100644 index f127e8b6f..000000000 --- a/test/fixtures/javascript/function-call-args.diff+B.txt +++ /dev/null @@ -1,20 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (NumberLiteral) - (StringLiteral) - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier))) - (Return - (Identifier))) - (Boolean))))+} diff --git a/test/fixtures/javascript/function-call.diff+B.txt b/test/fixtures/javascript/function-call.diff+B.txt deleted file mode 100644 index f9d7ee2e5..000000000 --- a/test/fixtures/javascript/function-call.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (StringLiteral))))+} diff --git a/test/fixtures/javascript/function.diff+B.txt b/test/fixtures/javascript/function.diff+B.txt deleted file mode 100644 index 81bc1795c..000000000 --- a/test/fixtures/javascript/function.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (Identifier))))+} diff --git a/test/fixtures/javascript/generator-function.diff+B.txt b/test/fixtures/javascript/generator-function.diff+B.txt deleted file mode 100644 index de51860c6..000000000 --- a/test/fixtures/javascript/generator-function.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (Yield)) - (ExpressionStatements - (Yield - (Identifier)))))+} diff --git a/test/fixtures/javascript/identifier.diff+B.txt b/test/fixtures/javascript/identifier.diff+B.txt deleted file mode 100644 index b14755f30..000000000 --- a/test/fixtures/javascript/identifier.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (Identifier)))+} diff --git a/test/fixtures/javascript/if-else.diff+B.txt b/test/fixtures/javascript/if-else.diff+B.txt deleted file mode 100644 index d3d761de8..000000000 --- a/test/fixtures/javascript/if-else.diff+B.txt +++ /dev/null @@ -1,21 +0,0 @@ -{+(Program - (If - (Identifier) - (ExpressionStatements - (Identifier)) - (If - (Identifier) - (ExpressionStatements - (ExpressionStatements - (Identifier))) - (If - (Identifier) - (ExpressionStatements - (Identifier)) - (If - (Identifier) - (ExpressionStatements - (ExpressionStatements - (Identifier))) - (ExpressionStatements - (Identifier)))))))+} diff --git a/test/fixtures/javascript/if.diff+B.txt b/test/fixtures/javascript/if.diff+B.txt deleted file mode 100644 index 8fc5a37fe..000000000 --- a/test/fixtures/javascript/if.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (If - (MemberAccess - (Identifier) - (Identifier)) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier))) - (ExpressionStatements - (Identifier)))))+} diff --git a/test/fixtures/javascript/import.diff+B.txt b/test/fixtures/javascript/import.diff+B.txt deleted file mode 100644 index b8ef359de..000000000 --- a/test/fixtures/javascript/import.diff+B.txt +++ /dev/null @@ -1,44 +0,0 @@ -{+(Program - (Import - (StringLiteral) - (Identifier)) - (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)))+} diff --git a/test/fixtures/javascript/math-assignment-operator.diff+B.txt b/test/fixtures/javascript/math-assignment-operator.diff+B.txt deleted file mode 100644 index 809e5b8f1..000000000 --- a/test/fixtures/javascript/math-assignment-operator.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (MathAssignment - (Identifier) - (NumberLiteral))))+} diff --git a/test/fixtures/javascript/math-operator.diff+B.txt b/test/fixtures/javascript/math-operator.diff+B.txt deleted file mode 100644 index 4beb99059..000000000 --- a/test/fixtures/javascript/math-operator.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (ExpressionStatements - (MathOperator - (MathOperator - (Identifier) - (Other "+") - (MathOperator - (Identifier) - (Other "*") - (NumberLiteral))) - (Other "-") - (MathOperator - (Identifier) - (Other "%") - (NumberLiteral)))))+} diff --git a/test/fixtures/javascript/member-access-assignment.diff+B.txt b/test/fixtures/javascript/member-access-assignment.diff+B.txt deleted file mode 100644 index 3b24be4fa..000000000 --- a/test/fixtures/javascript/member-access-assignment.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (MemberAccess - (Identifier) - (Identifier)) - (NumberLiteral))))+} diff --git a/test/fixtures/javascript/member-access.diff+B.txt b/test/fixtures/javascript/member-access.diff+B.txt deleted file mode 100644 index 79a41282c..000000000 --- a/test/fixtures/javascript/member-access.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (MemberAccess - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/javascript/method-call.diff+B.txt b/test/fixtures/javascript/method-call.diff+B.txt deleted file mode 100644 index 5efa89824..000000000 --- a/test/fixtures/javascript/method-call.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier) - (StringLiteral))))+} diff --git a/test/fixtures/javascript/named-function.diff+B.txt b/test/fixtures/javascript/named-function.diff+B.txt deleted file mode 100644 index 857f82f9c..000000000 --- a/test/fixtures/javascript/named-function.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Function - (Identifier) - (Params) - (Return - (Boolean))))+} diff --git a/test/fixtures/javascript/nested-do-while-in-function.diff+B.txt b/test/fixtures/javascript/nested-do-while-in-function.diff+B.txt deleted file mode 100644 index 884198792..000000000 --- a/test/fixtures/javascript/nested-do-while-in-function.diff+B.txt +++ /dev/null @@ -1,16 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (DoWhile - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier)))) - (Identifier)))))+} diff --git a/test/fixtures/javascript/nested-functions.diff+B.txt b/test/fixtures/javascript/nested-functions.diff+B.txt deleted file mode 100644 index 884de19d9..000000000 --- a/test/fixtures/javascript/nested-functions.diff+B.txt +++ /dev/null @@ -1,27 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier))) - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier))))))))+} diff --git a/test/fixtures/javascript/number.diff+B.txt b/test/fixtures/javascript/number.diff+B.txt deleted file mode 100644 index 096b23dfc..000000000 --- a/test/fixtures/javascript/number.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (NumberLiteral)))+} diff --git a/test/fixtures/javascript/object.diff+B.txt b/test/fixtures/javascript/object.diff+B.txt deleted file mode 100644 index 2735303e6..000000000 --- a/test/fixtures/javascript/object.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (ExpressionStatements - (Object - (Pair - (StringLiteral) - (StringLiteral)) - (Pair - (StringLiteral) - (StringLiteral)) - (Pair - (StringLiteral) - (StringLiteral)))))+} diff --git a/test/fixtures/javascript/objects-with-methods.diff+B.txt b/test/fixtures/javascript/objects-with-methods.diff+B.txt deleted file mode 100644 index 214ea973e..000000000 --- a/test/fixtures/javascript/objects-with-methods.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (ExpressionStatements - (Object - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (Return - (MathOperator - (Identifier) - (Other "-") - (Identifier)))))))+} diff --git a/test/fixtures/javascript/regex.diff+B.txt b/test/fixtures/javascript/regex.diff+B.txt deleted file mode 100644 index 827170365..000000000 --- a/test/fixtures/javascript/regex.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (Regex)))+} diff --git a/test/fixtures/javascript/relational-operator.diff+B.txt b/test/fixtures/javascript/relational-operator.diff+B.txt deleted file mode 100644 index 0bca19de5..000000000 --- a/test/fixtures/javascript/relational-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (RelationalOperator - (Identifier) - (Other "<=") - (Identifier))))+} diff --git a/test/fixtures/javascript/return-statement.diff+B.txt b/test/fixtures/javascript/return-statement.diff+B.txt deleted file mode 100644 index dd095ae80..000000000 --- a/test/fixtures/javascript/return-statement.diff+B.txt +++ /dev/null @@ -1,2 +0,0 @@ -{+(Program - (Return))+} diff --git a/test/fixtures/javascript/string.diff+B.txt b/test/fixtures/javascript/string.diff+B.txt deleted file mode 100644 index 58b9fe434..000000000 --- a/test/fixtures/javascript/string.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (StringLiteral)))+} diff --git a/test/fixtures/javascript/subscript-access-assignment.diff+B.txt b/test/fixtures/javascript/subscript-access-assignment.diff+B.txt deleted file mode 100644 index 06c0618cb..000000000 --- a/test/fixtures/javascript/subscript-access-assignment.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (SubscriptAccess - (Identifier) - (StringLiteral)) - (NumberLiteral))))+} diff --git a/test/fixtures/javascript/subscript-access-string.diff+B.txt b/test/fixtures/javascript/subscript-access-string.diff+B.txt deleted file mode 100644 index abd4af3f5..000000000 --- a/test/fixtures/javascript/subscript-access-string.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (SubscriptAccess - (Identifier) - (StringLiteral))))+} diff --git a/test/fixtures/javascript/subscript-access-variable.diff+B.txt b/test/fixtures/javascript/subscript-access-variable.diff+B.txt deleted file mode 100644 index 166a258c9..000000000 --- a/test/fixtures/javascript/subscript-access-variable.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (SubscriptAccess - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/javascript/switch-statement.diff+B.txt b/test/fixtures/javascript/switch-statement.diff+B.txt deleted file mode 100644 index 2766c8490..000000000 --- a/test/fixtures/javascript/switch-statement.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Switch - (NumberLiteral) - (Case - (NumberLiteral) - (ExpressionStatements - (NumberLiteral))) - (Case - (NumberLiteral) - (ExpressionStatements - (NumberLiteral))) - (Case - (NumberLiteral) - (ExpressionStatements - (NumberLiteral)))))+} diff --git a/test/fixtures/javascript/template-string.diff+B.txt b/test/fixtures/javascript/template-string.diff+B.txt deleted file mode 100644 index 7a7bda735..000000000 --- a/test/fixtures/javascript/template-string.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (TemplateString)))+} diff --git a/test/fixtures/javascript/ternary.diff+B.txt b/test/fixtures/javascript/ternary.diff+B.txt deleted file mode 100644 index 426cf71d8..000000000 --- a/test/fixtures/javascript/ternary.diff+B.txt +++ /dev/null @@ -1,18 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (MemberAccess - (Identifier) - (Identifier)) - (Ternary - (MemberAccess - (Identifier) - (Identifier)) - (MemberAccess - (Identifier) - (Identifier)) - (MemberAccess - (MemberAccess - (Identifier) - (Identifier)) - (Identifier))))))+} diff --git a/test/fixtures/javascript/throw-statement.diff+B.txt b/test/fixtures/javascript/throw-statement.diff+B.txt deleted file mode 100644 index 3b60dc073..000000000 --- a/test/fixtures/javascript/throw-statement.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Throw - (Constructor - (FunctionCall - (Identifier) - (StringLiteral)))))+} diff --git a/test/fixtures/javascript/true.diff+B.txt b/test/fixtures/javascript/true.diff+B.txt deleted file mode 100644 index 4ec96172b..000000000 --- a/test/fixtures/javascript/true.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Return - (Boolean)))+} diff --git a/test/fixtures/javascript/try-statement.diff+B.txt b/test/fixtures/javascript/try-statement.diff+B.txt deleted file mode 100644 index 0f3989999..000000000 --- a/test/fixtures/javascript/try-statement.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Try - (ExpressionStatements - (ExpressionStatements - (Identifier))) - (Catch - (ExpressionStatements - (ExpressionStatements - (Identifier)))) - (Finally - (ExpressionStatements - (ExpressionStatements - (Identifier))))))+} diff --git a/test/fixtures/javascript/type-operator.diff+B.txt b/test/fixtures/javascript/type-operator.diff+B.txt deleted file mode 100644 index f106b1fe1..000000000 --- a/test/fixtures/javascript/type-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (Operator - (Identifier) - (Other "instanceof") - (Identifier))))+} diff --git a/test/fixtures/javascript/var-declaration.diff+B.txt b/test/fixtures/javascript/var-declaration.diff+B.txt deleted file mode 100644 index af8cc6661..000000000 --- a/test/fixtures/javascript/var-declaration.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Other "variable_declaration" - (VarDecl - (Identifier)) - (VarAssignment - (Identifier) - (Object)) - (VarDecl - (Identifier))))+} diff --git a/test/fixtures/javascript/variable.diff+B.txt b/test/fixtures/javascript/variable.diff+B.txt deleted file mode 100644 index b14755f30..000000000 --- a/test/fixtures/javascript/variable.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (Identifier)))+} diff --git a/test/fixtures/javascript/void-operator.diff+B.txt b/test/fixtures/javascript/void-operator.diff+B.txt deleted file mode 100644 index 637d443dd..000000000 --- a/test/fixtures/javascript/void-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (Operator - (Other "void") - (FunctionCall - (Identifier)))))+} diff --git a/test/fixtures/javascript/while-statement.diff+B.txt b/test/fixtures/javascript/while-statement.diff+B.txt deleted file mode 100644 index babf8d9a8..000000000 --- a/test/fixtures/javascript/while-statement.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (While - (Identifier) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/javascript/yield.diff+B.txt b/test/fixtures/javascript/yield.diff+B.txt deleted file mode 100644 index c2bee77f9..000000000 --- a/test/fixtures/javascript/yield.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Identifier) - (Params) - (Other "variable_declaration" - (VarAssignment - (Identifier) - (NumberLiteral))) - (ExpressionStatements - (Yield - (MathOperator - (Identifier) - (Other "++")))))))+} diff --git a/test/fixtures/python/assert-statement.A.py b/test/fixtures/python/assert-statement.A.py index f6e3aed93..3fe7d1165 100644 --- a/test/fixtures/python/assert-statement.A.py +++ b/test/fixtures/python/assert-statement.A.py @@ -1,2 +1,2 @@ -assert a +assert a # comment assert b, c diff --git a/test/fixtures/python/assert-statement.B.py b/test/fixtures/python/assert-statement.B.py index 537b05862..792ef6f6e 100644 --- a/test/fixtures/python/assert-statement.B.py +++ b/test/fixtures/python/assert-statement.B.py @@ -1,2 +1,2 @@ assert c, a -assert b +assert b # comment diff --git a/test/fixtures/python/assert-statement.diff+A.txt b/test/fixtures/python/assert-statement.diff+A.txt new file mode 100644 index 000000000..e1f09d636 --- /dev/null +++ b/test/fixtures/python/assert-statement.diff+A.txt @@ -0,0 +1,11 @@ +{+(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Comment) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)))+} diff --git a/test/fixtures/python/assert-statement.diff-A.txt b/test/fixtures/python/assert-statement.diff-A.txt new file mode 100644 index 000000000..1522db3ed --- /dev/null +++ b/test/fixtures/python/assert-statement.diff-A.txt @@ -0,0 +1,11 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Comment) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/assert-statement.diff-B.txt b/test/fixtures/python/assert-statement.diff-B.txt new file mode 100644 index 000000000..57538c12c --- /dev/null +++ b/test/fixtures/python/assert-statement.diff-B.txt @@ -0,0 +1,11 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Comment))-} diff --git a/test/fixtures/python/assert-statement.diffA-B.txt b/test/fixtures/python/assert-statement.diffA-B.txt new file mode 100644 index 000000000..3b74c522c --- /dev/null +++ b/test/fixtures/python/assert-statement.diffA-B.txt @@ -0,0 +1,16 @@ +(Program + (Call + (Identifier) + {+(Identifier)+} + (Identifier) + (Empty)) +{+(Call + (Identifier) + (Identifier) + (Empty))+} + (Comment) +{-(Call + (Identifier) + (Identifier) + (Identifier) + (Empty))-}) diff --git a/test/fixtures/python/assert-statement.diffB-A.txt b/test/fixtures/python/assert-statement.diffB-A.txt new file mode 100644 index 000000000..f2a168f46 --- /dev/null +++ b/test/fixtures/python/assert-statement.diffB-A.txt @@ -0,0 +1,16 @@ +(Program + (Call + (Identifier) + {-(Identifier)-} + (Identifier) + (Empty)) +{-(Call + (Identifier) + (Identifier) + (Empty))-} + (Comment) +{+(Call + (Identifier) + (Identifier) + (Identifier) + (Empty))+}) diff --git a/test/fixtures/python/assert-statement.parseA.txt b/test/fixtures/python/assert-statement.parseA.txt new file mode 100644 index 000000000..9647dc146 --- /dev/null +++ b/test/fixtures/python/assert-statement.parseA.txt @@ -0,0 +1,11 @@ +(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Comment) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/assert-statement.parseB.txt b/test/fixtures/python/assert-statement.parseB.txt new file mode 100644 index 000000000..29354e15f --- /dev/null +++ b/test/fixtures/python/assert-statement.parseB.txt @@ -0,0 +1,11 @@ +(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Comment)) diff --git a/test/fixtures/python/assignment.diff+A.txt b/test/fixtures/python/assignment.diff+A.txt new file mode 100644 index 000000000..d3f756732 --- /dev/null +++ b/test/fixtures/python/assignment.diff+A.txt @@ -0,0 +1,16 @@ +{+(Program + (Assignment + (Identifier) + (Integer)) + (Assignment + ( + (Identifier) + (Identifier)) + ( + (Integer) + (Integer))) + (Assignment + (Identifier) + ( + (Integer) + (Integer))))+} diff --git a/test/fixtures/python/assignment.diff-A.txt b/test/fixtures/python/assignment.diff-A.txt new file mode 100644 index 000000000..2aef29993 --- /dev/null +++ b/test/fixtures/python/assignment.diff-A.txt @@ -0,0 +1,16 @@ +{-(Program + (Assignment + (Identifier) + (Integer)) + (Assignment + ( + (Identifier) + (Identifier)) + ( + (Integer) + (Integer))) + (Assignment + (Identifier) + ( + (Integer) + (Integer))))-} diff --git a/test/fixtures/python/assignment.diff-B.txt b/test/fixtures/python/assignment.diff-B.txt new file mode 100644 index 000000000..b00c0e1d6 --- /dev/null +++ b/test/fixtures/python/assignment.diff-B.txt @@ -0,0 +1,16 @@ +{-(Program + (Assignment + ( + (Identifier) + (Identifier)) + ( + (Integer) + (Integer))) + (Assignment + (Identifier) + (Integer)) + (Assignment + (Identifier) + ( + (Integer) + (Integer))))-} diff --git a/test/fixtures/python/assignment.diffA-B.txt b/test/fixtures/python/assignment.diffA-B.txt new file mode 100644 index 000000000..47a3c34d1 --- /dev/null +++ b/test/fixtures/python/assignment.diffA-B.txt @@ -0,0 +1,25 @@ +(Program +{+(Assignment + ( + (Identifier) + (Identifier)) + ( + (Integer) + (Integer)))+} + (Assignment + { (Identifier) + ->(Identifier) } + (Integer)) + (Assignment + { ( + (Identifier) + (Identifier)) + ->(Identifier) } + ( + (Integer) + (Integer))) +{-(Assignment + (Identifier) + ( + (Integer) + (Integer)))-}) diff --git a/test/fixtures/python/assignment.diffB-A.txt b/test/fixtures/python/assignment.diffB-A.txt new file mode 100644 index 000000000..fb5c544ce --- /dev/null +++ b/test/fixtures/python/assignment.diffB-A.txt @@ -0,0 +1,25 @@ +(Program +{+(Assignment + (Identifier) + (Integer))+} + (Assignment + ( + (Identifier) + (Identifier)) + ( + { (Integer) + ->(Integer) } + { (Integer) + ->(Integer) })) + (Assignment + { (Identifier) + ->(Identifier) } + { (Integer) + ->( + (Integer) + (Integer)) }) +{-(Assignment + (Identifier) + ( + (Integer) + (Integer)))-}) diff --git a/test/fixtures/python/assignment.parseA.txt b/test/fixtures/python/assignment.parseA.txt new file mode 100644 index 000000000..d93fb0821 --- /dev/null +++ b/test/fixtures/python/assignment.parseA.txt @@ -0,0 +1,16 @@ +(Program + (Assignment + (Identifier) + (Integer)) + (Assignment + ( + (Identifier) + (Identifier)) + ( + (Integer) + (Integer))) + (Assignment + (Identifier) + ( + (Integer) + (Integer)))) diff --git a/test/fixtures/python/assignment.parseB.txt b/test/fixtures/python/assignment.parseB.txt new file mode 100644 index 000000000..38f765e34 --- /dev/null +++ b/test/fixtures/python/assignment.parseB.txt @@ -0,0 +1,16 @@ +(Program + (Assignment + ( + (Identifier) + (Identifier)) + ( + (Integer) + (Integer))) + (Assignment + (Identifier) + (Integer)) + (Assignment + (Identifier) + ( + (Integer) + (Integer)))) diff --git a/test/fixtures/python/async-function-definition.diff+A.txt b/test/fixtures/python/async-function-definition.diff+A.txt new file mode 100644 index 000000000..836ce3d23 --- /dev/null +++ b/test/fixtures/python/async-function-definition.diff+A.txt @@ -0,0 +1,28 @@ +{+(Program + (Annotation + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)))+} diff --git a/test/fixtures/python/async-function-definition.diff-A.txt b/test/fixtures/python/async-function-definition.diff-A.txt new file mode 100644 index 000000000..269535aef --- /dev/null +++ b/test/fixtures/python/async-function-definition.diff-A.txt @@ -0,0 +1,28 @@ +{-(Program + (Annotation + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)))-} diff --git a/test/fixtures/python/async-function-definition.diff-B.txt b/test/fixtures/python/async-function-definition.diff-B.txt new file mode 100644 index 000000000..d40a1cd11 --- /dev/null +++ b/test/fixtures/python/async-function-definition.diff-B.txt @@ -0,0 +1,28 @@ +{-(Program + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)))-} diff --git a/test/fixtures/python/async-function-definition.diffA-B.txt b/test/fixtures/python/async-function-definition.diffA-B.txt new file mode 100644 index 000000000..c4510cb34 --- /dev/null +++ b/test/fixtures/python/async-function-definition.diffA-B.txt @@ -0,0 +1,42 @@ +(Program +{+(Annotation + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier))+} + (Annotation + (Annotation + (Function + (Identifier) + ( + { (Identifier) + ->(Identifier) })) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + {-(Identifier)-} + {-(Identifier)-} + ( + { (Identifier) + ->(Identifier) })) + (Empty)) + (Identifier)) +{-(Annotation + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier))-}) diff --git a/test/fixtures/python/async-function-definition.diffB-A.txt b/test/fixtures/python/async-function-definition.diffB-A.txt new file mode 100644 index 000000000..deba1e74b --- /dev/null +++ b/test/fixtures/python/async-function-definition.diffB-A.txt @@ -0,0 +1,42 @@ +(Program +{+(Annotation + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier))+} + (Annotation + (Annotation + (Function + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + (Identifier) + {-(Identifier)-} + ( + { (Identifier) + ->(Identifier) })) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + ( + { (Identifier) + ->(Identifier) })) + (Empty)) + (Identifier)) +{-(Annotation + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier))-}) diff --git a/test/fixtures/python/async-function-definition.parseA.txt b/test/fixtures/python/async-function-definition.parseA.txt new file mode 100644 index 000000000..d1cd80ef1 --- /dev/null +++ b/test/fixtures/python/async-function-definition.parseA.txt @@ -0,0 +1,28 @@ +(Program + (Annotation + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier))) diff --git a/test/fixtures/python/async-function-definition.parseB.txt b/test/fixtures/python/async-function-definition.parseB.txt new file mode 100644 index 000000000..55b0b7db9 --- /dev/null +++ b/test/fixtures/python/async-function-definition.parseB.txt @@ -0,0 +1,28 @@ +(Program + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier)) + (Annotation + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Identifier))) diff --git a/test/fixtures/ruby/if-unless-modifiers.diff+B.txt b/test/fixtures/python/attribute.diff+A.txt similarity index 75% rename from test/fixtures/ruby/if-unless-modifiers.diff+B.txt rename to test/fixtures/python/attribute.diff+A.txt index 6853e051d..181f0e3a0 100644 --- a/test/fixtures/ruby/if-unless-modifiers.diff+B.txt +++ b/test/fixtures/python/attribute.diff+A.txt @@ -1,4 +1,4 @@ {+(Program - (Modifier If + (MemberAccess (Identifier) (Identifier)))+} diff --git a/test/fixtures/python/attribute.diff-A.txt b/test/fixtures/python/attribute.diff-A.txt new file mode 100644 index 000000000..51bfe4c57 --- /dev/null +++ b/test/fixtures/python/attribute.diff-A.txt @@ -0,0 +1,4 @@ +{-(Program + (MemberAccess + (Identifier) + (Identifier)))-} diff --git a/test/fixtures/python/attribute.diff-B.txt b/test/fixtures/python/attribute.diff-B.txt new file mode 100644 index 000000000..1f994281c --- /dev/null +++ b/test/fixtures/python/attribute.diff-B.txt @@ -0,0 +1,6 @@ +{-(Program + (MemberAccess + (MemberAccess + (Identifier) + (Identifier)) + (Identifier)))-} diff --git a/test/fixtures/python/attribute.diffA-B.txt b/test/fixtures/python/attribute.diffA-B.txt new file mode 100644 index 000000000..f9209aefd --- /dev/null +++ b/test/fixtures/python/attribute.diffA-B.txt @@ -0,0 +1,8 @@ +(Program + (MemberAccess + { (Identifier) + ->(MemberAccess + (Identifier) + (Identifier)) } + { (Identifier) + ->(Identifier) })) diff --git a/test/fixtures/python/attribute.diffB-A.txt b/test/fixtures/python/attribute.diffB-A.txt new file mode 100644 index 000000000..28a54a33e --- /dev/null +++ b/test/fixtures/python/attribute.diffB-A.txt @@ -0,0 +1,8 @@ +(Program + (MemberAccess + { (MemberAccess + (Identifier) + (Identifier)) + ->(Identifier) } + { (Identifier) + ->(Identifier) })) diff --git a/test/fixtures/python/attribute.parseA.txt b/test/fixtures/python/attribute.parseA.txt new file mode 100644 index 000000000..3a5c9e565 --- /dev/null +++ b/test/fixtures/python/attribute.parseA.txt @@ -0,0 +1,4 @@ +(Program + (MemberAccess + (Identifier) + (Identifier))) diff --git a/test/fixtures/python/attribute.parseB.txt b/test/fixtures/python/attribute.parseB.txt new file mode 100644 index 000000000..4a53ec17f --- /dev/null +++ b/test/fixtures/python/attribute.parseB.txt @@ -0,0 +1,6 @@ +(Program + (MemberAccess + (MemberAccess + (Identifier) + (Identifier)) + (Identifier))) diff --git a/test/fixtures/python/augmented-assignment.diff+A.txt b/test/fixtures/python/augmented-assignment.diff+A.txt new file mode 100644 index 000000000..6dd4147c8 --- /dev/null +++ b/test/fixtures/python/augmented-assignment.diff+A.txt @@ -0,0 +1,16 @@ +{+(Program + (Assignment + (Identifier) + (Plus + (Identifier) + (Integer))) + (Assignment + (Identifier) + (RShift + (Identifier) + (Integer))) + (Assignment + (Identifier) + (DividedBy + (Identifier) + (Integer))))+} diff --git a/test/fixtures/python/augmented-assignment.diff-A.txt b/test/fixtures/python/augmented-assignment.diff-A.txt new file mode 100644 index 000000000..696438860 --- /dev/null +++ b/test/fixtures/python/augmented-assignment.diff-A.txt @@ -0,0 +1,16 @@ +{-(Program + (Assignment + (Identifier) + (Plus + (Identifier) + (Integer))) + (Assignment + (Identifier) + (RShift + (Identifier) + (Integer))) + (Assignment + (Identifier) + (DividedBy + (Identifier) + (Integer))))-} diff --git a/test/fixtures/python/augmented-assignment.diff-B.txt b/test/fixtures/python/augmented-assignment.diff-B.txt new file mode 100644 index 000000000..f59377eef --- /dev/null +++ b/test/fixtures/python/augmented-assignment.diff-B.txt @@ -0,0 +1,16 @@ +{-(Program + (Assignment + (Identifier) + (RShift + (Identifier) + (Integer))) + (Assignment + (Identifier) + (DividedBy + (Identifier) + (Integer))) + (Assignment + (Identifier) + (Plus + (Identifier) + (Integer))))-} diff --git a/test/fixtures/python/augmented-assignment.diffA-B.txt b/test/fixtures/python/augmented-assignment.diffA-B.txt new file mode 100644 index 000000000..bec31bce8 --- /dev/null +++ b/test/fixtures/python/augmented-assignment.diffA-B.txt @@ -0,0 +1,28 @@ +(Program + (Assignment + (Identifier) + { (Plus + (Identifier) + (Integer)) + ->(RShift + (Identifier) + (Integer)) }) + (Assignment + { (Identifier) + ->(Identifier) } + { (RShift + (Identifier) + (Integer)) + ->(DividedBy + (Identifier) + (Integer)) }) +{+(Assignment + (Identifier) + (Plus + (Identifier) + (Integer)))+} +{-(Assignment + (Identifier) + (DividedBy + (Identifier) + (Integer)))-}) diff --git a/test/fixtures/python/augmented-assignment.diffB-A.txt b/test/fixtures/python/augmented-assignment.diffB-A.txt new file mode 100644 index 000000000..b62dfd4a5 --- /dev/null +++ b/test/fixtures/python/augmented-assignment.diffB-A.txt @@ -0,0 +1,28 @@ +(Program + (Assignment + (Identifier) + { (RShift + (Identifier) + (Integer)) + ->(Plus + (Identifier) + (Integer)) }) + (Assignment + { (Identifier) + ->(Identifier) } + { (DividedBy + (Identifier) + (Integer)) + ->(RShift + (Identifier) + (Integer)) }) +{+(Assignment + (Identifier) + (DividedBy + (Identifier) + (Integer)))+} +{-(Assignment + (Identifier) + (Plus + (Identifier) + (Integer)))-}) diff --git a/test/fixtures/python/augmented-assignment.parseA.txt b/test/fixtures/python/augmented-assignment.parseA.txt new file mode 100644 index 000000000..190b55103 --- /dev/null +++ b/test/fixtures/python/augmented-assignment.parseA.txt @@ -0,0 +1,16 @@ +(Program + (Assignment + (Identifier) + (Plus + (Identifier) + (Integer))) + (Assignment + (Identifier) + (RShift + (Identifier) + (Integer))) + (Assignment + (Identifier) + (DividedBy + (Identifier) + (Integer)))) diff --git a/test/fixtures/python/augmented-assignment.parseB.txt b/test/fixtures/python/augmented-assignment.parseB.txt new file mode 100644 index 000000000..aa2045ee3 --- /dev/null +++ b/test/fixtures/python/augmented-assignment.parseB.txt @@ -0,0 +1,16 @@ +(Program + (Assignment + (Identifier) + (RShift + (Identifier) + (Integer))) + (Assignment + (Identifier) + (DividedBy + (Identifier) + (Integer))) + (Assignment + (Identifier) + (Plus + (Identifier) + (Integer)))) diff --git a/test/fixtures/python/await.diff+A.txt b/test/fixtures/python/await.diff+A.txt new file mode 100644 index 000000000..ebe5eb3f3 --- /dev/null +++ b/test/fixtures/python/await.diff+A.txt @@ -0,0 +1,12 @@ +{+(Program + (Call + (Identifier) + (Plus + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)))+} diff --git a/test/fixtures/python/await.diff-A.txt b/test/fixtures/python/await.diff-A.txt new file mode 100644 index 000000000..e2fdf5afd --- /dev/null +++ b/test/fixtures/python/await.diff-A.txt @@ -0,0 +1,12 @@ +{-(Program + (Call + (Identifier) + (Plus + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/await.diff-B.txt b/test/fixtures/python/await.diff-B.txt new file mode 100644 index 000000000..e2fdf5afd --- /dev/null +++ b/test/fixtures/python/await.diff-B.txt @@ -0,0 +1,12 @@ +{-(Program + (Call + (Identifier) + (Plus + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/await.diffA-B.txt b/test/fixtures/python/await.diffA-B.txt new file mode 100644 index 000000000..11f531fa8 --- /dev/null +++ b/test/fixtures/python/await.diffA-B.txt @@ -0,0 +1,14 @@ +(Program + (Call + (Identifier) + (Plus + { (Integer) + ->(Integer) } + ( + (Integer))) + (Empty)) + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + (Empty))) diff --git a/test/fixtures/python/await.diffB-A.txt b/test/fixtures/python/await.diffB-A.txt new file mode 100644 index 000000000..11f531fa8 --- /dev/null +++ b/test/fixtures/python/await.diffB-A.txt @@ -0,0 +1,14 @@ +(Program + (Call + (Identifier) + (Plus + { (Integer) + ->(Integer) } + ( + (Integer))) + (Empty)) + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + (Empty))) diff --git a/test/fixtures/python/await.parseA.txt b/test/fixtures/python/await.parseA.txt new file mode 100644 index 000000000..094d02721 --- /dev/null +++ b/test/fixtures/python/await.parseA.txt @@ -0,0 +1,12 @@ +(Program + (Call + (Identifier) + (Plus + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/await.parseB.txt b/test/fixtures/python/await.parseB.txt new file mode 100644 index 000000000..094d02721 --- /dev/null +++ b/test/fixtures/python/await.parseB.txt @@ -0,0 +1,12 @@ +(Program + (Call + (Identifier) + (Plus + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/binary-operator.diff+A.txt b/test/fixtures/python/binary-operator.diff+A.txt new file mode 100644 index 000000000..cc1ec933a --- /dev/null +++ b/test/fixtures/python/binary-operator.diff+A.txt @@ -0,0 +1,49 @@ +{+(Program + (Plus + (Identifier) + ( + (Identifier))) + (Minus + (Identifier) + ( + (Identifier))) + (Times + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Modulo + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Power + (Identifier) + ( + (Identifier))) + (BOr + (Identifier) + ( + (Identifier))) + (BAnd + (Identifier) + ( + (Identifier))) + (BXOr + (Identifier) + ( + (Identifier))) + (LShift + (Identifier) + ( + (Identifier))) + (RShift + (Identifier) + ( + (Identifier))))+} diff --git a/test/fixtures/python/binary-operator.diff-A.txt b/test/fixtures/python/binary-operator.diff-A.txt new file mode 100644 index 000000000..6a4f377e2 --- /dev/null +++ b/test/fixtures/python/binary-operator.diff-A.txt @@ -0,0 +1,49 @@ +{-(Program + (Plus + (Identifier) + ( + (Identifier))) + (Minus + (Identifier) + ( + (Identifier))) + (Times + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Modulo + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Power + (Identifier) + ( + (Identifier))) + (BOr + (Identifier) + ( + (Identifier))) + (BAnd + (Identifier) + ( + (Identifier))) + (BXOr + (Identifier) + ( + (Identifier))) + (LShift + (Identifier) + ( + (Identifier))) + (RShift + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/binary-operator.diff-B.txt b/test/fixtures/python/binary-operator.diff-B.txt new file mode 100644 index 000000000..e0566c0e5 --- /dev/null +++ b/test/fixtures/python/binary-operator.diff-B.txt @@ -0,0 +1,49 @@ +{-(Program + (RShift + (Identifier) + ( + (Identifier))) + (LShift + (Identifier) + ( + (Identifier))) + (BXOr + (Identifier) + ( + (Identifier))) + (BAnd + (Identifier) + ( + (Identifier))) + (Modulo + (Identifier) + ( + (Identifier))) + (Power + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Modulo + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Times + (Identifier) + ( + (Identifier))) + (Minus + (Identifier) + ( + (Identifier))) + (Plus + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/binary-operator.diffA-B.txt b/test/fixtures/python/binary-operator.diffA-B.txt new file mode 100644 index 000000000..7223aee76 --- /dev/null +++ b/test/fixtures/python/binary-operator.diffA-B.txt @@ -0,0 +1,93 @@ +(Program +{+(RShift + (Identifier) + ( + (Identifier)))+} +{+(LShift + (Identifier) + ( + (Identifier)))+} +{+(BXOr + (Identifier) + ( + (Identifier)))+} +{+(BAnd + (Identifier) + ( + (Identifier)))+} +{-(Plus + (Identifier) + ( + (Identifier)))-} +{-(Minus + (Identifier) + ( + (Identifier)))-} +{-(Times + (Identifier) + ( + (Identifier)))-} +{-(DividedBy + (Identifier) + ( + (Identifier)))-} + (Modulo + (Identifier) + ( + (Identifier))) +{+(Power + (Identifier) + ( + (Identifier)))+} +{+(DividedBy + (Identifier) + ( + (Identifier)))+} +{+(Modulo + (Identifier) + ( + (Identifier)))+} +{+(DividedBy + (Identifier) + ( + (Identifier)))+} +{+(Times + (Identifier) + ( + (Identifier)))+} +{+(Minus + (Identifier) + ( + (Identifier)))+} +{+(Plus + (Identifier) + ( + (Identifier)))+} +{-(DividedBy + (Identifier) + ( + (Identifier)))-} +{-(Power + (Identifier) + ( + (Identifier)))-} +{-(BOr + (Identifier) + ( + (Identifier)))-} +{-(BAnd + (Identifier) + ( + (Identifier)))-} +{-(BXOr + (Identifier) + ( + (Identifier)))-} +{-(LShift + (Identifier) + ( + (Identifier)))-} +{-(RShift + (Identifier) + ( + (Identifier)))-}) diff --git a/test/fixtures/python/binary-operator.diffB-A.txt b/test/fixtures/python/binary-operator.diffB-A.txt new file mode 100644 index 000000000..b258101eb --- /dev/null +++ b/test/fixtures/python/binary-operator.diffB-A.txt @@ -0,0 +1,93 @@ +(Program +{+(Plus + (Identifier) + ( + (Identifier)))+} +{+(Minus + (Identifier) + ( + (Identifier)))+} +{+(Times + (Identifier) + ( + (Identifier)))+} +{+(DividedBy + (Identifier) + ( + (Identifier)))+} +{-(RShift + (Identifier) + ( + (Identifier)))-} +{-(LShift + (Identifier) + ( + (Identifier)))-} +{-(BXOr + (Identifier) + ( + (Identifier)))-} +{-(BAnd + (Identifier) + ( + (Identifier)))-} + (Modulo + (Identifier) + ( + (Identifier))) +{+(DividedBy + (Identifier) + ( + (Identifier)))+} +{+(Power + (Identifier) + ( + (Identifier)))+} +{+(BOr + (Identifier) + ( + (Identifier)))+} +{+(BAnd + (Identifier) + ( + (Identifier)))+} +{+(BXOr + (Identifier) + ( + (Identifier)))+} +{+(LShift + (Identifier) + ( + (Identifier)))+} +{+(RShift + (Identifier) + ( + (Identifier)))+} +{-(Power + (Identifier) + ( + (Identifier)))-} +{-(DividedBy + (Identifier) + ( + (Identifier)))-} +{-(Modulo + (Identifier) + ( + (Identifier)))-} +{-(DividedBy + (Identifier) + ( + (Identifier)))-} +{-(Times + (Identifier) + ( + (Identifier)))-} +{-(Minus + (Identifier) + ( + (Identifier)))-} +{-(Plus + (Identifier) + ( + (Identifier)))-}) diff --git a/test/fixtures/python/binary-operator.parseA.txt b/test/fixtures/python/binary-operator.parseA.txt new file mode 100644 index 000000000..fa344de1f --- /dev/null +++ b/test/fixtures/python/binary-operator.parseA.txt @@ -0,0 +1,49 @@ +(Program + (Plus + (Identifier) + ( + (Identifier))) + (Minus + (Identifier) + ( + (Identifier))) + (Times + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Modulo + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Power + (Identifier) + ( + (Identifier))) + (BOr + (Identifier) + ( + (Identifier))) + (BAnd + (Identifier) + ( + (Identifier))) + (BXOr + (Identifier) + ( + (Identifier))) + (LShift + (Identifier) + ( + (Identifier))) + (RShift + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/python/binary-operator.parseB.txt b/test/fixtures/python/binary-operator.parseB.txt new file mode 100644 index 000000000..dd8158f29 --- /dev/null +++ b/test/fixtures/python/binary-operator.parseB.txt @@ -0,0 +1,49 @@ +(Program + (RShift + (Identifier) + ( + (Identifier))) + (LShift + (Identifier) + ( + (Identifier))) + (BXOr + (Identifier) + ( + (Identifier))) + (BAnd + (Identifier) + ( + (Identifier))) + (Modulo + (Identifier) + ( + (Identifier))) + (Power + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Modulo + (Identifier) + ( + (Identifier))) + (DividedBy + (Identifier) + ( + (Identifier))) + (Times + (Identifier) + ( + (Identifier))) + (Minus + (Identifier) + ( + (Identifier))) + (Plus + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/python/boolean-operator.diff+A.txt b/test/fixtures/python/boolean-operator.diff+A.txt new file mode 100644 index 000000000..d548c182a --- /dev/null +++ b/test/fixtures/python/boolean-operator.diff+A.txt @@ -0,0 +1,9 @@ +{+(Program + (And + (Identifier) + ( + (Identifier))) + (Or + (Identifier) + ( + (Identifier))))+} diff --git a/test/fixtures/python/boolean-operator.diff-A.txt b/test/fixtures/python/boolean-operator.diff-A.txt new file mode 100644 index 000000000..54427db3b --- /dev/null +++ b/test/fixtures/python/boolean-operator.diff-A.txt @@ -0,0 +1,9 @@ +{-(Program + (And + (Identifier) + ( + (Identifier))) + (Or + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/boolean-operator.diff-B.txt b/test/fixtures/python/boolean-operator.diff-B.txt new file mode 100644 index 000000000..06e29a64e --- /dev/null +++ b/test/fixtures/python/boolean-operator.diff-B.txt @@ -0,0 +1,9 @@ +{-(Program + (Or + (Identifier) + ( + (Identifier))) + (And + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/boolean-operator.diffA-B.txt b/test/fixtures/python/boolean-operator.diffA-B.txt new file mode 100644 index 000000000..5dd955c7c --- /dev/null +++ b/test/fixtures/python/boolean-operator.diffA-B.txt @@ -0,0 +1,15 @@ +(Program +{+(Or + (Identifier) + ( + (Identifier)))+} + (And + { (Identifier) + ->(Identifier) } + ( + { (Identifier) + ->(Identifier) })) +{-(Or + (Identifier) + ( + (Identifier)))-}) diff --git a/test/fixtures/python/boolean-operator.diffB-A.txt b/test/fixtures/python/boolean-operator.diffB-A.txt new file mode 100644 index 000000000..e15e033f2 --- /dev/null +++ b/test/fixtures/python/boolean-operator.diffB-A.txt @@ -0,0 +1,15 @@ +(Program +{+(And + (Identifier) + ( + (Identifier)))+} + (Or + { (Identifier) + ->(Identifier) } + ( + { (Identifier) + ->(Identifier) })) +{-(And + (Identifier) + ( + (Identifier)))-}) diff --git a/test/fixtures/python/boolean-operator.parseA.txt b/test/fixtures/python/boolean-operator.parseA.txt new file mode 100644 index 000000000..7981e49d3 --- /dev/null +++ b/test/fixtures/python/boolean-operator.parseA.txt @@ -0,0 +1,9 @@ +(Program + (And + (Identifier) + ( + (Identifier))) + (Or + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/python/boolean-operator.parseB.txt b/test/fixtures/python/boolean-operator.parseB.txt new file mode 100644 index 000000000..403edd88e --- /dev/null +++ b/test/fixtures/python/boolean-operator.parseB.txt @@ -0,0 +1,9 @@ +(Program + (Or + (Identifier) + ( + (Identifier))) + (And + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/ruby/pseudo-variables.diff+B.txt b/test/fixtures/python/boolean.diff+A.txt similarity index 55% rename from test/fixtures/ruby/pseudo-variables.diff+B.txt rename to test/fixtures/python/boolean.diff+A.txt index 719454722..645e4277b 100644 --- a/test/fixtures/ruby/pseudo-variables.diff+B.txt +++ b/test/fixtures/python/boolean.diff+A.txt @@ -1,5 +1,4 @@ {+(Program - (Identifier) - (Identifier) + (Boolean) (Boolean) (Boolean))+} diff --git a/test/fixtures/python/boolean.diff-A.txt b/test/fixtures/python/boolean.diff-A.txt new file mode 100644 index 000000000..106a60029 --- /dev/null +++ b/test/fixtures/python/boolean.diff-A.txt @@ -0,0 +1,4 @@ +{-(Program + (Boolean) + (Boolean) + (Boolean))-} diff --git a/test/fixtures/python/boolean.diff-B.txt b/test/fixtures/python/boolean.diff-B.txt new file mode 100644 index 000000000..106a60029 --- /dev/null +++ b/test/fixtures/python/boolean.diff-B.txt @@ -0,0 +1,4 @@ +{-(Program + (Boolean) + (Boolean) + (Boolean))-} diff --git a/test/fixtures/python/boolean.diffA-B.txt b/test/fixtures/python/boolean.diffA-B.txt new file mode 100644 index 000000000..fd4a0f410 --- /dev/null +++ b/test/fixtures/python/boolean.diffA-B.txt @@ -0,0 +1,6 @@ +(Program +{-(Boolean)-} + (Boolean) +{+(Boolean)+} +{+(Boolean)+} +{-(Boolean)-}) diff --git a/test/fixtures/python/boolean.diffB-A.txt b/test/fixtures/python/boolean.diffB-A.txt new file mode 100644 index 000000000..fd4a0f410 --- /dev/null +++ b/test/fixtures/python/boolean.diffB-A.txt @@ -0,0 +1,6 @@ +(Program +{-(Boolean)-} + (Boolean) +{+(Boolean)+} +{+(Boolean)+} +{-(Boolean)-}) diff --git a/test/fixtures/python/boolean.parseA.txt b/test/fixtures/python/boolean.parseA.txt new file mode 100644 index 000000000..3a37d9b6c --- /dev/null +++ b/test/fixtures/python/boolean.parseA.txt @@ -0,0 +1,4 @@ +(Program + (Boolean) + (Boolean) + (Boolean)) diff --git a/test/fixtures/python/boolean.parseB.txt b/test/fixtures/python/boolean.parseB.txt new file mode 100644 index 000000000..3a37d9b6c --- /dev/null +++ b/test/fixtures/python/boolean.parseB.txt @@ -0,0 +1,4 @@ +(Program + (Boolean) + (Boolean) + (Boolean)) diff --git a/test/fixtures/javascript/this-expression.diff+B.txt b/test/fixtures/python/break-statement.diff+A.txt similarity index 76% rename from test/fixtures/javascript/this-expression.diff+B.txt rename to test/fixtures/python/break-statement.diff+A.txt index 986452908..3db8d946b 100644 --- a/test/fixtures/javascript/this-expression.diff+B.txt +++ b/test/fixtures/python/break-statement.diff+A.txt @@ -1,3 +1,3 @@ {+(Program - (Return + (Break (Identifier)))+} diff --git a/test/fixtures/python/break-statement.diff-A.txt b/test/fixtures/python/break-statement.diff-A.txt new file mode 100644 index 000000000..b4d6a10d3 --- /dev/null +++ b/test/fixtures/python/break-statement.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Break + (Identifier)))-} diff --git a/test/fixtures/python/break-statement.diff-B.txt b/test/fixtures/python/break-statement.diff-B.txt new file mode 100644 index 000000000..a5ff18d2b --- /dev/null +++ b/test/fixtures/python/break-statement.diff-B.txt @@ -0,0 +1,5 @@ +{-(Program + (Break + (Identifier)) + (Break + (Identifier)))-} diff --git a/test/fixtures/python/break-statement.diffA-B.txt b/test/fixtures/python/break-statement.diffA-B.txt new file mode 100644 index 000000000..7734f4620 --- /dev/null +++ b/test/fixtures/python/break-statement.diffA-B.txt @@ -0,0 +1,5 @@ +(Program + (Break + (Identifier)) +{+(Break + (Identifier))+}) diff --git a/test/fixtures/python/break-statement.diffB-A.txt b/test/fixtures/python/break-statement.diffB-A.txt new file mode 100644 index 000000000..bd2a3c076 --- /dev/null +++ b/test/fixtures/python/break-statement.diffB-A.txt @@ -0,0 +1,5 @@ +(Program + (Break + (Identifier)) +{-(Break + (Identifier))-}) diff --git a/test/fixtures/python/break-statement.parseA.txt b/test/fixtures/python/break-statement.parseA.txt new file mode 100644 index 000000000..f9576b379 --- /dev/null +++ b/test/fixtures/python/break-statement.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Break + (Identifier))) diff --git a/test/fixtures/python/break-statement.parseB.txt b/test/fixtures/python/break-statement.parseB.txt new file mode 100644 index 000000000..fa7b6f672 --- /dev/null +++ b/test/fixtures/python/break-statement.parseB.txt @@ -0,0 +1,5 @@ +(Program + (Break + (Identifier)) + (Break + (Identifier))) diff --git a/test/fixtures/python/call.diff+A.txt b/test/fixtures/python/call.diff+A.txt new file mode 100644 index 000000000..d4c7a77b6 --- /dev/null +++ b/test/fixtures/python/call.diff+A.txt @@ -0,0 +1,13 @@ +{+(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)))+} diff --git a/test/fixtures/python/call.diff-A.txt b/test/fixtures/python/call.diff-A.txt new file mode 100644 index 000000000..63dfa6ca3 --- /dev/null +++ b/test/fixtures/python/call.diff-A.txt @@ -0,0 +1,13 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/call.diff-B.txt b/test/fixtures/python/call.diff-B.txt new file mode 100644 index 000000000..eada9376f --- /dev/null +++ b/test/fixtures/python/call.diff-B.txt @@ -0,0 +1,19 @@ +{-(Program + (Call + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Integer) + (Empty)))-} diff --git a/test/fixtures/python/call.diffA-B.txt b/test/fixtures/python/call.diffA-B.txt new file mode 100644 index 000000000..1b001bd82 --- /dev/null +++ b/test/fixtures/python/call.diffA-B.txt @@ -0,0 +1,21 @@ +(Program + (Call + (Identifier) + {-(Identifier)-} + (Empty)) + (Call + (Identifier) + {+(Identifier)+} + (Empty)) + (Call + (Identifier) + {-(Identifier)-} + (Identifier) + {+(Identifier)+} + (Empty)) +{+(Call + (MemberAccess + (Identifier) + (Identifier)) + (Integer) + (Empty))+}) diff --git a/test/fixtures/python/call.diffB-A.txt b/test/fixtures/python/call.diffB-A.txt new file mode 100644 index 000000000..d91e5251f --- /dev/null +++ b/test/fixtures/python/call.diffB-A.txt @@ -0,0 +1,21 @@ +(Program + (Call + (Identifier) + {+(Identifier)+} + (Empty)) + (Call + (Identifier) + {-(Identifier)-} + (Empty)) + (Call + (Identifier) + {-(Identifier)-} + (Identifier) + {+(Identifier)+} + (Empty)) +{-(Call + (MemberAccess + (Identifier) + (Identifier)) + (Integer) + (Empty))-}) diff --git a/test/fixtures/python/call.parseA.txt b/test/fixtures/python/call.parseA.txt new file mode 100644 index 000000000..16a4376db --- /dev/null +++ b/test/fixtures/python/call.parseA.txt @@ -0,0 +1,13 @@ +(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/call.parseB.txt b/test/fixtures/python/call.parseB.txt new file mode 100644 index 000000000..64a3a2d9f --- /dev/null +++ b/test/fixtures/python/call.parseB.txt @@ -0,0 +1,19 @@ +(Program + (Call + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Integer) + (Empty))) diff --git a/test/fixtures/python/class-definition.diff+A.txt b/test/fixtures/python/class-definition.diff+A.txt new file mode 100644 index 000000000..1f0a10134 --- /dev/null +++ b/test/fixtures/python/class-definition.diff+A.txt @@ -0,0 +1,26 @@ +{+(Program + (Class + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Identifier)))) + (Empty))) + (Class + (Identifier) + (NoOp + (Identifier))) + (Class + (Identifier) + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Empty)))) + (Empty))))+} diff --git a/test/fixtures/python/class-definition.diff-A.txt b/test/fixtures/python/class-definition.diff-A.txt new file mode 100644 index 000000000..8df2ec830 --- /dev/null +++ b/test/fixtures/python/class-definition.diff-A.txt @@ -0,0 +1,26 @@ +{-(Program + (Class + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Identifier)))) + (Empty))) + (Class + (Identifier) + (NoOp + (Identifier))) + (Class + (Identifier) + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Empty)))) + (Empty))))-} diff --git a/test/fixtures/python/class-definition.diff-B.txt b/test/fixtures/python/class-definition.diff-B.txt new file mode 100644 index 000000000..58c3a9940 --- /dev/null +++ b/test/fixtures/python/class-definition.diff-B.txt @@ -0,0 +1,22 @@ +{-(Program + (Class + (Identifier) + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Empty)))) + (Empty))) + (Class + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Identifier)))) + (Empty))))-} diff --git a/test/fixtures/python/class-definition.diffA-B.txt b/test/fixtures/python/class-definition.diffA-B.txt new file mode 100644 index 000000000..0b989ee6c --- /dev/null +++ b/test/fixtures/python/class-definition.diffA-B.txt @@ -0,0 +1,40 @@ +(Program + (Class + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + (Annotation + (Function + { (Identifier) + ->(Identifier) } + (Identifier) + ( + (Return + { (Identifier) + ->(Empty) }))) + (Empty))) +{+(Class + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Identifier)))) + (Empty)))+} +{-(Class + (Identifier) + (NoOp + (Identifier)))-} +{-(Class + (Identifier) + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Empty)))) + (Empty)))-}) diff --git a/test/fixtures/python/class-definition.diffB-A.txt b/test/fixtures/python/class-definition.diffB-A.txt new file mode 100644 index 000000000..0f23d052f --- /dev/null +++ b/test/fixtures/python/class-definition.diffB-A.txt @@ -0,0 +1,32 @@ +(Program + (Class + { (Identifier) + ->(Identifier) } + {-(Identifier)-} + (Annotation + (Function + { (Identifier) + ->(Identifier) } + (Identifier) + ( + (Return + { (Empty) + ->(Identifier) }))) + (Empty))) +{+(Class + (Identifier) + (NoOp + (Identifier)))+} + (Class + (Identifier) + {+(Identifier)+} + (Annotation + (Function + { (Identifier) + ->(Identifier) } + (Identifier) + ( + (Return + { (Identifier) + ->(Empty) }))) + (Empty)))) diff --git a/test/fixtures/python/class-definition.parseA.txt b/test/fixtures/python/class-definition.parseA.txt new file mode 100644 index 000000000..b82bb8369 --- /dev/null +++ b/test/fixtures/python/class-definition.parseA.txt @@ -0,0 +1,26 @@ +(Program + (Class + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Identifier)))) + (Empty))) + (Class + (Identifier) + (NoOp + (Identifier))) + (Class + (Identifier) + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Empty)))) + (Empty)))) diff --git a/test/fixtures/python/class-definition.parseB.txt b/test/fixtures/python/class-definition.parseB.txt new file mode 100644 index 000000000..09a671228 --- /dev/null +++ b/test/fixtures/python/class-definition.parseB.txt @@ -0,0 +1,22 @@ +(Program + (Class + (Identifier) + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Empty)))) + (Empty))) + (Class + (Identifier) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Return + (Identifier)))) + (Empty)))) diff --git a/test/fixtures/javascript/comment.diff+B.txt b/test/fixtures/python/comment.diff+A.txt similarity index 68% rename from test/fixtures/javascript/comment.diff+B.txt rename to test/fixtures/python/comment.diff+A.txt index d81beabb3..bb7677838 100644 --- a/test/fixtures/javascript/comment.diff+B.txt +++ b/test/fixtures/python/comment.diff+A.txt @@ -1,2 +1,3 @@ {+(Program + (Comment) (Comment))+} diff --git a/test/fixtures/python/comment.diff-A.txt b/test/fixtures/python/comment.diff-A.txt new file mode 100644 index 000000000..13721e346 --- /dev/null +++ b/test/fixtures/python/comment.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Comment) + (Comment))-} diff --git a/test/fixtures/python/comment.diff-B.txt b/test/fixtures/python/comment.diff-B.txt new file mode 100644 index 000000000..9d2a76890 --- /dev/null +++ b/test/fixtures/python/comment.diff-B.txt @@ -0,0 +1,4 @@ +{-(Program + (Comment) + (Comment) + (Comment))-} diff --git a/test/fixtures/python/comment.diffA-B.txt b/test/fixtures/python/comment.diffA-B.txt new file mode 100644 index 000000000..9d28e9d6e --- /dev/null +++ b/test/fixtures/python/comment.diffA-B.txt @@ -0,0 +1,5 @@ +(Program +{-(Comment)-} + (Comment) +{+(Comment)+} +{+(Comment)+}) diff --git a/test/fixtures/python/comment.diffB-A.txt b/test/fixtures/python/comment.diffB-A.txt new file mode 100644 index 000000000..9e6152382 --- /dev/null +++ b/test/fixtures/python/comment.diffB-A.txt @@ -0,0 +1,5 @@ +(Program +{-(Comment)-} + (Comment) +{+(Comment)+} +{-(Comment)-}) diff --git a/test/fixtures/python/comment.parseA.txt b/test/fixtures/python/comment.parseA.txt new file mode 100644 index 000000000..1dbf5703b --- /dev/null +++ b/test/fixtures/python/comment.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Comment) + (Comment)) diff --git a/test/fixtures/python/comment.parseB.txt b/test/fixtures/python/comment.parseB.txt new file mode 100644 index 000000000..287a3fe0d --- /dev/null +++ b/test/fixtures/python/comment.parseB.txt @@ -0,0 +1,4 @@ +(Program + (Comment) + (Comment) + (Comment)) diff --git a/test/fixtures/python/comparison-operator.diff+A.txt b/test/fixtures/python/comparison-operator.diff+A.txt new file mode 100644 index 000000000..8eb5343f9 --- /dev/null +++ b/test/fixtures/python/comparison-operator.diff+A.txt @@ -0,0 +1,45 @@ +{+(Program + (LessThan + (Identifier) + ( + (Identifier))) + (LessThanEqual + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (GreaterThanEqual + (Identifier) + ( + (Identifier))) + (GreaterThan + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (Member + (Identifier) + ( + (Identifier))) + (Equal + (Identifier) + ( + (Identifier))) + (Not + (Member + (Identifier) + ( + (Identifier)))) + (Not + (Equal + (Identifier) + ( + (Identifier)))))+} diff --git a/test/fixtures/python/comparison-operator.diff-A.txt b/test/fixtures/python/comparison-operator.diff-A.txt new file mode 100644 index 000000000..dceef2c8f --- /dev/null +++ b/test/fixtures/python/comparison-operator.diff-A.txt @@ -0,0 +1,45 @@ +{-(Program + (LessThan + (Identifier) + ( + (Identifier))) + (LessThanEqual + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (GreaterThanEqual + (Identifier) + ( + (Identifier))) + (GreaterThan + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (Member + (Identifier) + ( + (Identifier))) + (Equal + (Identifier) + ( + (Identifier))) + (Not + (Member + (Identifier) + ( + (Identifier)))) + (Not + (Equal + (Identifier) + ( + (Identifier)))))-} diff --git a/test/fixtures/python/comparison-operator.diff-B.txt b/test/fixtures/python/comparison-operator.diff-B.txt new file mode 100644 index 000000000..8718ba79e --- /dev/null +++ b/test/fixtures/python/comparison-operator.diff-B.txt @@ -0,0 +1,45 @@ +{-(Program + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (Not + (Member + (Identifier) + ( + (Identifier)))) + (Equal + (Identifier) + ( + (Identifier))) + (Member + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (GreaterThan + (Identifier) + ( + (Identifier))) + (GreaterThanEqual + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (LessThanEqual + (Identifier) + ( + (Identifier))) + (LessThan + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/comparison-operator.diffA-B.txt b/test/fixtures/python/comparison-operator.diffA-B.txt new file mode 100644 index 000000000..a4c07486e --- /dev/null +++ b/test/fixtures/python/comparison-operator.diffA-B.txt @@ -0,0 +1,89 @@ +(Program +{+(Not + (Equal + (Identifier) + ( + (Identifier))))+} +{+(Not + (Member + (Identifier) + ( + (Identifier))))+} +{+(Equal + (Identifier) + ( + (Identifier)))+} +{+(Member + (Identifier) + ( + (Identifier)))+} +{+(Not + (Equal + (Identifier) + ( + (Identifier))))+} +{+(GreaterThan + (Identifier) + ( + (Identifier)))+} +{+(GreaterThanEqual + (Identifier) + ( + (Identifier)))+} +{+(Not + (Equal + (Identifier) + ( + (Identifier))))+} +{+(LessThanEqual + (Identifier) + ( + (Identifier)))+} +{+(LessThan + (Identifier) + ( + (Identifier)))+} +{-(LessThan + (Identifier) + ( + (Identifier)))-} +{-(LessThanEqual + (Identifier) + ( + (Identifier)))-} +{-(Not + (Equal + (Identifier) + ( + (Identifier))))-} +{-(GreaterThanEqual + (Identifier) + ( + (Identifier)))-} +{-(GreaterThan + (Identifier) + ( + (Identifier)))-} +{-(Not + (Equal + (Identifier) + ( + (Identifier))))-} +{-(Member + (Identifier) + ( + (Identifier)))-} +{-(Equal + (Identifier) + ( + (Identifier)))-} +{-(Not + (Member + (Identifier) + ( + (Identifier))))-} +{-(Not + (Equal + (Identifier) + ( + (Identifier))))-}) diff --git a/test/fixtures/python/comparison-operator.diffB-A.txt b/test/fixtures/python/comparison-operator.diffB-A.txt new file mode 100644 index 000000000..22a3338fd --- /dev/null +++ b/test/fixtures/python/comparison-operator.diffB-A.txt @@ -0,0 +1,86 @@ +(Program +{+(LessThan + (Identifier) + ( + (Identifier)))+} +{+(LessThanEqual + (Identifier) + ( + (Identifier)))+} +{+(Not + (Equal + (Identifier) + ( + (Identifier))))+} +{+(GreaterThanEqual + (Identifier) + ( + (Identifier)))+} +{+(GreaterThan + (Identifier) + ( + (Identifier)))+} +{+(Not + (Equal + (Identifier) + ( + (Identifier))))+} +{+(Member + (Identifier) + ( + (Identifier)))+} +{+(Equal + (Identifier) + ( + (Identifier)))+} +{+(Not + (Member + (Identifier) + ( + (Identifier))))+} + (Not + (Equal + { (Identifier) + ->(Identifier) } + ( + {+(Identifier)+} + {-(Identifier)-}))) +{-(Not + (Member + (Identifier) + ( + (Identifier))))-} +{-(Equal + (Identifier) + ( + (Identifier)))-} +{-(Member + (Identifier) + ( + (Identifier)))-} +{-(Not + (Equal + (Identifier) + ( + (Identifier))))-} +{-(GreaterThan + (Identifier) + ( + (Identifier)))-} +{-(GreaterThanEqual + (Identifier) + ( + (Identifier)))-} +{-(Not + (Equal + (Identifier) + ( + (Identifier))))-} +{-(LessThanEqual + (Identifier) + ( + (Identifier)))-} +{-(LessThan + (Identifier) + ( + (Identifier)))-}) diff --git a/test/fixtures/python/comparison-operator.parseA.txt b/test/fixtures/python/comparison-operator.parseA.txt new file mode 100644 index 000000000..f8aacc083 --- /dev/null +++ b/test/fixtures/python/comparison-operator.parseA.txt @@ -0,0 +1,45 @@ +(Program + (LessThan + (Identifier) + ( + (Identifier))) + (LessThanEqual + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (GreaterThanEqual + (Identifier) + ( + (Identifier))) + (GreaterThan + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (Member + (Identifier) + ( + (Identifier))) + (Equal + (Identifier) + ( + (Identifier))) + (Not + (Member + (Identifier) + ( + (Identifier)))) + (Not + (Equal + (Identifier) + ( + (Identifier))))) diff --git a/test/fixtures/python/comparison-operator.parseB.txt b/test/fixtures/python/comparison-operator.parseB.txt new file mode 100644 index 000000000..7987bba3d --- /dev/null +++ b/test/fixtures/python/comparison-operator.parseB.txt @@ -0,0 +1,45 @@ +(Program + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (Not + (Member + (Identifier) + ( + (Identifier)))) + (Equal + (Identifier) + ( + (Identifier))) + (Member + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (GreaterThan + (Identifier) + ( + (Identifier))) + (GreaterThanEqual + (Identifier) + ( + (Identifier))) + (Not + (Equal + (Identifier) + ( + (Identifier)))) + (LessThanEqual + (Identifier) + ( + (Identifier))) + (LessThan + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/python/concatenated-string.diff+A.txt b/test/fixtures/python/concatenated-string.diff+A.txt new file mode 100644 index 000000000..1650688b1 --- /dev/null +++ b/test/fixtures/python/concatenated-string.diff+A.txt @@ -0,0 +1,2 @@ +{+(Program + (TextElement))+} diff --git a/test/fixtures/python/concatenated-string.diff-A.txt b/test/fixtures/python/concatenated-string.diff-A.txt new file mode 100644 index 000000000..2b93aea4a --- /dev/null +++ b/test/fixtures/python/concatenated-string.diff-A.txt @@ -0,0 +1,2 @@ +{-(Program + (TextElement))-} diff --git a/test/fixtures/python/concatenated-string.diff-B.txt b/test/fixtures/python/concatenated-string.diff-B.txt new file mode 100644 index 000000000..2b93aea4a --- /dev/null +++ b/test/fixtures/python/concatenated-string.diff-B.txt @@ -0,0 +1,2 @@ +{-(Program + (TextElement))-} diff --git a/test/fixtures/python/concatenated-string.diffA-B.txt b/test/fixtures/python/concatenated-string.diffA-B.txt new file mode 100644 index 000000000..0695d0f25 --- /dev/null +++ b/test/fixtures/python/concatenated-string.diffA-B.txt @@ -0,0 +1,3 @@ +(Program +{+(TextElement)+} +{-(TextElement)-}) diff --git a/test/fixtures/python/concatenated-string.diffB-A.txt b/test/fixtures/python/concatenated-string.diffB-A.txt new file mode 100644 index 000000000..0695d0f25 --- /dev/null +++ b/test/fixtures/python/concatenated-string.diffB-A.txt @@ -0,0 +1,3 @@ +(Program +{+(TextElement)+} +{-(TextElement)-}) diff --git a/test/fixtures/python/concatenated-string.parseA.txt b/test/fixtures/python/concatenated-string.parseA.txt new file mode 100644 index 000000000..7eb233a5b --- /dev/null +++ b/test/fixtures/python/concatenated-string.parseA.txt @@ -0,0 +1,2 @@ +(Program + (TextElement)) diff --git a/test/fixtures/python/concatenated-string.parseB.txt b/test/fixtures/python/concatenated-string.parseB.txt new file mode 100644 index 000000000..7eb233a5b --- /dev/null +++ b/test/fixtures/python/concatenated-string.parseB.txt @@ -0,0 +1,2 @@ +(Program + (TextElement)) diff --git a/test/fixtures/python/conditional-expression.A.py b/test/fixtures/python/conditional-expression.A.py index 1d684e705..e69ac182a 100644 --- a/test/fixtures/python/conditional-expression.A.py +++ b/test/fixtures/python/conditional-expression.A.py @@ -1,2 +1,2 @@ -foo() if a +foo() if a else g b = c if d else e diff --git a/test/fixtures/python/conditional-expression.B.py b/test/fixtures/python/conditional-expression.B.py index 84c332ca7..e797bee6d 100644 --- a/test/fixtures/python/conditional-expression.B.py +++ b/test/fixtures/python/conditional-expression.B.py @@ -1,2 +1,2 @@ e = d if f else g -foo() if b +foo() if b else c() diff --git a/test/fixtures/python/conditional-expression.diff+A.txt b/test/fixtures/python/conditional-expression.diff+A.txt new file mode 100644 index 000000000..1c53289a7 --- /dev/null +++ b/test/fixtures/python/conditional-expression.diff+A.txt @@ -0,0 +1,15 @@ +{+(Program + (If + (Identifier) + (Call + (Identifier) + (Empty)) + ( + (Identifier))) + (Assignment + (Identifier) + (If + (Identifier) + (Identifier) + ( + (Identifier)))))+} diff --git a/test/fixtures/python/conditional-expression.diff-A.txt b/test/fixtures/python/conditional-expression.diff-A.txt new file mode 100644 index 000000000..1bdcb1a7f --- /dev/null +++ b/test/fixtures/python/conditional-expression.diff-A.txt @@ -0,0 +1,15 @@ +{-(Program + (If + (Identifier) + (Call + (Identifier) + (Empty)) + ( + (Identifier))) + (Assignment + (Identifier) + (If + (Identifier) + (Identifier) + ( + (Identifier)))))-} diff --git a/test/fixtures/python/conditional-expression.diff-B.txt b/test/fixtures/python/conditional-expression.diff-B.txt new file mode 100644 index 000000000..be18bdf3f --- /dev/null +++ b/test/fixtures/python/conditional-expression.diff-B.txt @@ -0,0 +1,17 @@ +{-(Program + (Assignment + (Identifier) + (If + (Identifier) + (Identifier) + ( + (Identifier)))) + (If + (Identifier) + (Call + (Identifier) + (Empty)) + ( + (Call + (Identifier) + (Empty)))))-} diff --git a/test/fixtures/python/conditional-expression.diffA-B.txt b/test/fixtures/python/conditional-expression.diffA-B.txt new file mode 100644 index 000000000..1a8b86df8 --- /dev/null +++ b/test/fixtures/python/conditional-expression.diffA-B.txt @@ -0,0 +1,26 @@ +(Program +{+(Assignment + (Identifier) + (If + (Identifier) + (Identifier) + ( + (Identifier))))+} + (If + { (Identifier) + ->(Identifier) } + (Call + (Identifier) + (Empty)) + ( + { (Identifier) + ->(Call + (Identifier) + (Empty)) })) +{-(Assignment + (Identifier) + (If + (Identifier) + (Identifier) + ( + (Identifier))))-}) diff --git a/test/fixtures/python/conditional-expression.diffB-A.txt b/test/fixtures/python/conditional-expression.diffB-A.txt new file mode 100644 index 000000000..f0f08fdc1 --- /dev/null +++ b/test/fixtures/python/conditional-expression.diffB-A.txt @@ -0,0 +1,28 @@ +(Program +{+(If + (Identifier) + (Call + (Identifier) + (Empty)) + ( + (Identifier)))+} + (Assignment + { (Identifier) + ->(Identifier) } + (If + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) } + ( + {+(Identifier)+} + {-(Identifier)-}))) +{-(If + (Identifier) + (Call + (Identifier) + (Empty)) + ( + (Call + (Identifier) + (Empty))))-}) diff --git a/test/fixtures/python/conditional-expression.parseA.txt b/test/fixtures/python/conditional-expression.parseA.txt new file mode 100644 index 000000000..3933e1afd --- /dev/null +++ b/test/fixtures/python/conditional-expression.parseA.txt @@ -0,0 +1,15 @@ +(Program + (If + (Identifier) + (Call + (Identifier) + (Empty)) + ( + (Identifier))) + (Assignment + (Identifier) + (If + (Identifier) + (Identifier) + ( + (Identifier))))) diff --git a/test/fixtures/python/conditional-expression.parseB.txt b/test/fixtures/python/conditional-expression.parseB.txt new file mode 100644 index 000000000..0b377af84 --- /dev/null +++ b/test/fixtures/python/conditional-expression.parseB.txt @@ -0,0 +1,17 @@ +(Program + (Assignment + (Identifier) + (If + (Identifier) + (Identifier) + ( + (Identifier)))) + (If + (Identifier) + (Call + (Identifier) + (Empty)) + ( + (Call + (Identifier) + (Empty))))) diff --git a/test/fixtures/javascript/null.diff+B.txt b/test/fixtures/python/continue-statement.diff+A.txt similarity index 72% rename from test/fixtures/javascript/null.diff+B.txt rename to test/fixtures/python/continue-statement.diff+A.txt index 986452908..c290413ff 100644 --- a/test/fixtures/javascript/null.diff+B.txt +++ b/test/fixtures/python/continue-statement.diff+A.txt @@ -1,3 +1,3 @@ {+(Program - (Return + (Continue (Identifier)))+} diff --git a/test/fixtures/python/continue-statement.diff-A.txt b/test/fixtures/python/continue-statement.diff-A.txt new file mode 100644 index 000000000..006786ef4 --- /dev/null +++ b/test/fixtures/python/continue-statement.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Continue + (Identifier)))-} diff --git a/test/fixtures/python/continue-statement.diff-B.txt b/test/fixtures/python/continue-statement.diff-B.txt new file mode 100644 index 000000000..1e0fed9cf --- /dev/null +++ b/test/fixtures/python/continue-statement.diff-B.txt @@ -0,0 +1,5 @@ +{-(Program + (Continue + (Identifier)) + (Continue + (Identifier)))-} diff --git a/test/fixtures/python/continue-statement.diffA-B.txt b/test/fixtures/python/continue-statement.diffA-B.txt new file mode 100644 index 000000000..11fe8d3ce --- /dev/null +++ b/test/fixtures/python/continue-statement.diffA-B.txt @@ -0,0 +1,5 @@ +(Program + (Continue + (Identifier)) +{+(Continue + (Identifier))+}) diff --git a/test/fixtures/python/continue-statement.diffB-A.txt b/test/fixtures/python/continue-statement.diffB-A.txt new file mode 100644 index 000000000..c47540dd9 --- /dev/null +++ b/test/fixtures/python/continue-statement.diffB-A.txt @@ -0,0 +1,5 @@ +(Program + (Continue + (Identifier)) +{-(Continue + (Identifier))-}) diff --git a/test/fixtures/python/continue-statement.parseA.txt b/test/fixtures/python/continue-statement.parseA.txt new file mode 100644 index 000000000..2ca3bd830 --- /dev/null +++ b/test/fixtures/python/continue-statement.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Continue + (Identifier))) diff --git a/test/fixtures/python/continue-statement.parseB.txt b/test/fixtures/python/continue-statement.parseB.txt new file mode 100644 index 000000000..1641f0d8a --- /dev/null +++ b/test/fixtures/python/continue-statement.parseB.txt @@ -0,0 +1,5 @@ +(Program + (Continue + (Identifier)) + (Continue + (Identifier))) diff --git a/test/fixtures/python/decorated-definition.diff+A.txt b/test/fixtures/python/decorated-definition.diff+A.txt new file mode 100644 index 000000000..59148f4db --- /dev/null +++ b/test/fixtures/python/decorated-definition.diff+A.txt @@ -0,0 +1,55 @@ +{+(Program + (Decorator + (ScopeResolution + (Identifier) + (Identifier)) + (Class + (Identifier) + (Decorator + (ScopeResolution + (Identifier)) + ([]) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Integer)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Assignment + (Identifier) + (Boolean))) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Assignment + (Identifier) + (Boolean)) + (Identifier) + (Identifier)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty))))))))))))+} diff --git a/test/fixtures/python/decorated-definition.diff-A.txt b/test/fixtures/python/decorated-definition.diff-A.txt new file mode 100644 index 000000000..410f380ca --- /dev/null +++ b/test/fixtures/python/decorated-definition.diff-A.txt @@ -0,0 +1,55 @@ +{-(Program + (Decorator + (ScopeResolution + (Identifier) + (Identifier)) + (Class + (Identifier) + (Decorator + (ScopeResolution + (Identifier)) + ([]) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Integer)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Assignment + (Identifier) + (Boolean))) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Assignment + (Identifier) + (Boolean)) + (Identifier) + (Identifier)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty))))))))))))-} diff --git a/test/fixtures/python/decorated-definition.diff-B.txt b/test/fixtures/python/decorated-definition.diff-B.txt new file mode 100644 index 000000000..269c52b5d --- /dev/null +++ b/test/fixtures/python/decorated-definition.diff-B.txt @@ -0,0 +1,37 @@ +{-(Program + (Decorator + (ScopeResolution + (Identifier) + (Identifier)) + (Class + (Identifier) + (Decorator + (ScopeResolution + (Identifier)) + ([]) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Assignment + (Identifier) + (Boolean)) + (Identifier) + (Identifier)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)))))))))-} diff --git a/test/fixtures/python/decorated-definition.diffA-B.txt b/test/fixtures/python/decorated-definition.diffA-B.txt new file mode 100644 index 000000000..6dfe7b867 --- /dev/null +++ b/test/fixtures/python/decorated-definition.diffA-B.txt @@ -0,0 +1,70 @@ +(Program + (Decorator + (ScopeResolution + (Identifier) + (Identifier)) + (Class + { (Identifier) + ->(Identifier) } + (Decorator + (ScopeResolution + (Identifier)) + ([]) + (Decorator + (ScopeResolution + {+(Identifier)+} + {-(Identifier)-}) + ( + {+(Identifier)+} + {-(Integer)-}) + (Decorator + (ScopeResolution + { (Identifier) + ->(Identifier) }) + ( + {+(Identifier)+} + {-(Integer)-} + {-(Integer)-}) + (Decorator + (ScopeResolution + (Identifier)) + ( + {+(Integer)+} + (Assignment + { (Identifier) + ->(Identifier) } + (Boolean)) + {+(Identifier)+} + {+(Identifier)+}) + { (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Assignment + (Identifier) + (Boolean)) + (Identifier) + (Identifier)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty))))) + ->(Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) }))))))) diff --git a/test/fixtures/python/decorated-definition.diffB-A.txt b/test/fixtures/python/decorated-definition.diffB-A.txt new file mode 100644 index 000000000..d5ea320f7 --- /dev/null +++ b/test/fixtures/python/decorated-definition.diffB-A.txt @@ -0,0 +1,72 @@ +(Program + (Decorator + (ScopeResolution + (Identifier) + (Identifier)) + (Class + { (Identifier) + ->(Identifier) } + (Decorator + (ScopeResolution + (Identifier)) + ([]) + (Decorator + (ScopeResolution + {+(Identifier)+} + {-(Identifier)-}) + ( + {+(Integer)+} + {-(Identifier)-}) + (Decorator + (ScopeResolution + { (Identifier) + ->(Identifier) }) + ( + {+(Integer)+} + {+(Integer)+} + {-(Identifier)-}) + (Decorator + (ScopeResolution + (Identifier)) + ( + {+(Assignment + (Identifier) + (Boolean))+} + {-(Integer)-} + {-(Assignment + (Identifier) + (Boolean))-} + {-(Identifier)-} + {-(Identifier)-}) + { (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + ->(Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Assignment + (Identifier) + (Boolean)) + (Identifier) + (Identifier)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty))))) }))))))) diff --git a/test/fixtures/python/decorated-definition.parseA.txt b/test/fixtures/python/decorated-definition.parseA.txt new file mode 100644 index 000000000..455a7c31a --- /dev/null +++ b/test/fixtures/python/decorated-definition.parseA.txt @@ -0,0 +1,55 @@ +(Program + (Decorator + (ScopeResolution + (Identifier) + (Identifier)) + (Class + (Identifier) + (Decorator + (ScopeResolution + (Identifier)) + ([]) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Integer)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Assignment + (Identifier) + (Boolean))) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Assignment + (Identifier) + (Boolean)) + (Identifier) + (Identifier)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)))))))))))) diff --git a/test/fixtures/python/decorated-definition.parseB.txt b/test/fixtures/python/decorated-definition.parseB.txt new file mode 100644 index 000000000..723add9f6 --- /dev/null +++ b/test/fixtures/python/decorated-definition.parseB.txt @@ -0,0 +1,37 @@ +(Program + (Decorator + (ScopeResolution + (Identifier) + (Identifier)) + (Class + (Identifier) + (Decorator + (ScopeResolution + (Identifier)) + ([]) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Identifier)) + (Decorator + (ScopeResolution + (Identifier)) + ( + (Integer) + (Assignment + (Identifier) + (Boolean)) + (Identifier) + (Identifier)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty))))))))) diff --git a/test/fixtures/python/delete-statement.diff+A.txt b/test/fixtures/python/delete-statement.diff+A.txt new file mode 100644 index 000000000..2f91fdac9 --- /dev/null +++ b/test/fixtures/python/delete-statement.diff+A.txt @@ -0,0 +1,10 @@ +{+(Program + (Call + (Identifier) + (Subscript + (Identifier) + (Integer)) + (Subscript + (Identifier) + (Integer)) + (Empty)))+} diff --git a/test/fixtures/python/delete-statement.diff-A.txt b/test/fixtures/python/delete-statement.diff-A.txt new file mode 100644 index 000000000..59bf8fa31 --- /dev/null +++ b/test/fixtures/python/delete-statement.diff-A.txt @@ -0,0 +1,10 @@ +{-(Program + (Call + (Identifier) + (Subscript + (Identifier) + (Integer)) + (Subscript + (Identifier) + (Integer)) + (Empty)))-} diff --git a/test/fixtures/python/delete-statement.diff-B.txt b/test/fixtures/python/delete-statement.diff-B.txt new file mode 100644 index 000000000..59bf8fa31 --- /dev/null +++ b/test/fixtures/python/delete-statement.diff-B.txt @@ -0,0 +1,10 @@ +{-(Program + (Call + (Identifier) + (Subscript + (Identifier) + (Integer)) + (Subscript + (Identifier) + (Integer)) + (Empty)))-} diff --git a/test/fixtures/python/delete-statement.diffA-B.txt b/test/fixtures/python/delete-statement.diffA-B.txt new file mode 100644 index 000000000..7b3240632 --- /dev/null +++ b/test/fixtures/python/delete-statement.diffA-B.txt @@ -0,0 +1,12 @@ +(Program + (Call + (Identifier) + (Subscript + { (Identifier) + ->(Identifier) } + (Integer)) + (Subscript + { (Identifier) + ->(Identifier) } + (Integer)) + (Empty))) diff --git a/test/fixtures/python/delete-statement.diffB-A.txt b/test/fixtures/python/delete-statement.diffB-A.txt new file mode 100644 index 000000000..7b3240632 --- /dev/null +++ b/test/fixtures/python/delete-statement.diffB-A.txt @@ -0,0 +1,12 @@ +(Program + (Call + (Identifier) + (Subscript + { (Identifier) + ->(Identifier) } + (Integer)) + (Subscript + { (Identifier) + ->(Identifier) } + (Integer)) + (Empty))) diff --git a/test/fixtures/python/delete-statement.parseA.txt b/test/fixtures/python/delete-statement.parseA.txt new file mode 100644 index 000000000..9f3c646c7 --- /dev/null +++ b/test/fixtures/python/delete-statement.parseA.txt @@ -0,0 +1,10 @@ +(Program + (Call + (Identifier) + (Subscript + (Identifier) + (Integer)) + (Subscript + (Identifier) + (Integer)) + (Empty))) diff --git a/test/fixtures/python/delete-statement.parseB.txt b/test/fixtures/python/delete-statement.parseB.txt new file mode 100644 index 000000000..9f3c646c7 --- /dev/null +++ b/test/fixtures/python/delete-statement.parseB.txt @@ -0,0 +1,10 @@ +(Program + (Call + (Identifier) + (Subscript + (Identifier) + (Integer)) + (Subscript + (Identifier) + (Integer)) + (Empty))) diff --git a/test/fixtures/python/dictionary-comprehension.A.py b/test/fixtures/python/dictionary-comprehension.A.py index 52265bfcc..c326bdc34 100644 --- a/test/fixtures/python/dictionary-comprehension.A.py +++ b/test/fixtures/python/dictionary-comprehension.A.py @@ -1,2 +1,2 @@ { c : d for b in a } -{ d : g for e in f } +{ d : g for e in f if d } diff --git a/test/fixtures/python/dictionary-comprehension.B.py b/test/fixtures/python/dictionary-comprehension.B.py index 8c43faf9f..da9e2620f 100644 --- a/test/fixtures/python/dictionary-comprehension.B.py +++ b/test/fixtures/python/dictionary-comprehension.B.py @@ -1,2 +1,2 @@ -{ f : g for e in d } +{ f : g for e in d if g } { c : 1 for b in a } diff --git a/test/fixtures/python/dictionary-comprehension.diff+A.txt b/test/fixtures/python/dictionary-comprehension.diff+A.txt new file mode 100644 index 000000000..e519b2c5f --- /dev/null +++ b/test/fixtures/python/dictionary-comprehension.diff+A.txt @@ -0,0 +1,21 @@ +{+(Program + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier)))))+} diff --git a/test/fixtures/python/dictionary-comprehension.diff-A.txt b/test/fixtures/python/dictionary-comprehension.diff-A.txt new file mode 100644 index 000000000..27c7e6a00 --- /dev/null +++ b/test/fixtures/python/dictionary-comprehension.diff-A.txt @@ -0,0 +1,21 @@ +{-(Program + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier)))))-} diff --git a/test/fixtures/python/dictionary-comprehension.diff-B.txt b/test/fixtures/python/dictionary-comprehension.diff-B.txt new file mode 100644 index 000000000..c8c423a74 --- /dev/null +++ b/test/fixtures/python/dictionary-comprehension.diff-B.txt @@ -0,0 +1,21 @@ +{-(Program + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier)))) + (Comprehension + (KeyValue + (Identifier) + (Integer)) + ( + ( + ( + (Identifier)) + (Identifier)))))-} diff --git a/test/fixtures/python/dictionary-comprehension.diffA-B.txt b/test/fixtures/python/dictionary-comprehension.diffA-B.txt new file mode 100644 index 000000000..ef185b22c --- /dev/null +++ b/test/fixtures/python/dictionary-comprehension.diffA-B.txt @@ -0,0 +1,31 @@ +(Program + (Comprehension + (KeyValue + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) }) + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {+( + (Identifier))+})) + (Comprehension + (KeyValue + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Integer) }) + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {-( + (Identifier))-}))) diff --git a/test/fixtures/python/dictionary-comprehension.diffB-A.txt b/test/fixtures/python/dictionary-comprehension.diffB-A.txt new file mode 100644 index 000000000..0e2227206 --- /dev/null +++ b/test/fixtures/python/dictionary-comprehension.diffB-A.txt @@ -0,0 +1,31 @@ +(Program + (Comprehension + (KeyValue + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) }) + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {-( + (Identifier))-})) + (Comprehension + (KeyValue + { (Identifier) + ->(Identifier) } + { (Integer) + ->(Identifier) }) + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {+( + (Identifier))+}))) diff --git a/test/fixtures/python/dictionary-comprehension.parseA.txt b/test/fixtures/python/dictionary-comprehension.parseA.txt new file mode 100644 index 000000000..6059c5bbf --- /dev/null +++ b/test/fixtures/python/dictionary-comprehension.parseA.txt @@ -0,0 +1,21 @@ +(Program + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier))))) diff --git a/test/fixtures/python/dictionary-comprehension.parseB.txt b/test/fixtures/python/dictionary-comprehension.parseB.txt new file mode 100644 index 000000000..6a1d1b780 --- /dev/null +++ b/test/fixtures/python/dictionary-comprehension.parseB.txt @@ -0,0 +1,21 @@ +(Program + (Comprehension + (KeyValue + (Identifier) + (Identifier)) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier)))) + (Comprehension + (KeyValue + (Identifier) + (Integer)) + ( + ( + ( + (Identifier)) + (Identifier))))) diff --git a/test/fixtures/python/dictionary.diff+A.txt b/test/fixtures/python/dictionary.diff+A.txt new file mode 100644 index 000000000..3ecc83e42 --- /dev/null +++ b/test/fixtures/python/dictionary.diff+A.txt @@ -0,0 +1,13 @@ +{+(Program + (Hash) + (Hash + (KeyValue + (Identifier) + (Integer))) + (Hash + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier))))+} diff --git a/test/fixtures/python/dictionary.diff-A.txt b/test/fixtures/python/dictionary.diff-A.txt new file mode 100644 index 000000000..190fa3928 --- /dev/null +++ b/test/fixtures/python/dictionary.diff-A.txt @@ -0,0 +1,13 @@ +{-(Program + (Hash) + (Hash + (KeyValue + (Identifier) + (Integer))) + (Hash + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier))))-} diff --git a/test/fixtures/python/dictionary.diff-B.txt b/test/fixtures/python/dictionary.diff-B.txt new file mode 100644 index 000000000..00d6a9145 --- /dev/null +++ b/test/fixtures/python/dictionary.diff-B.txt @@ -0,0 +1,16 @@ +{-(Program + (Hash + (KeyValue + (Identifier) + (Integer))) + (Hash) + (Assignment + (Identifier) + (Hash + (Comment) + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier)))))-} diff --git a/test/fixtures/python/dictionary.diffA-B.txt b/test/fixtures/python/dictionary.diffA-B.txt new file mode 100644 index 000000000..c8d170f4d --- /dev/null +++ b/test/fixtures/python/dictionary.diffA-B.txt @@ -0,0 +1,25 @@ +(Program + (Hash + (KeyValue + { (Identifier) + ->(Identifier) } + { (Integer) + ->(Integer) })) + (Hash) +{+(Assignment + (Identifier) + (Hash + (Comment) + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier))))+} +{-(Hash + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier)))-}) diff --git a/test/fixtures/python/dictionary.diffB-A.txt b/test/fixtures/python/dictionary.diffB-A.txt new file mode 100644 index 000000000..a81845841 --- /dev/null +++ b/test/fixtures/python/dictionary.diffB-A.txt @@ -0,0 +1,27 @@ +(Program +{-(Hash + (KeyValue + (Identifier) + (Integer)))-} + (Hash) +{+(Hash + (KeyValue + (Identifier) + (Integer)))+} +{+(Hash + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier)))+} +{-(Assignment + (Identifier) + (Hash + (Comment) + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier))))-}) diff --git a/test/fixtures/python/dictionary.parseA.txt b/test/fixtures/python/dictionary.parseA.txt new file mode 100644 index 000000000..7735051c2 --- /dev/null +++ b/test/fixtures/python/dictionary.parseA.txt @@ -0,0 +1,13 @@ +(Program + (Hash) + (Hash + (KeyValue + (Identifier) + (Integer))) + (Hash + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier)))) diff --git a/test/fixtures/python/dictionary.parseB.txt b/test/fixtures/python/dictionary.parseB.txt new file mode 100644 index 000000000..891922be5 --- /dev/null +++ b/test/fixtures/python/dictionary.parseB.txt @@ -0,0 +1,16 @@ +(Program + (Hash + (KeyValue + (Identifier) + (Integer))) + (Hash) + (Assignment + (Identifier) + (Hash + (Comment) + (KeyValue + (Identifier) + (Identifier)) + (KeyValue + (Identifier) + (Identifier))))) diff --git a/test/fixtures/ruby/and-or.diff+B.txt b/test/fixtures/python/dotted-name.diff+A.txt similarity index 55% rename from test/fixtures/ruby/and-or.diff+B.txt rename to test/fixtures/python/dotted-name.diff+A.txt index ff74ee701..41c1e89cc 100644 --- a/test/fixtures/ruby/and-or.diff+B.txt +++ b/test/fixtures/python/dotted-name.diff+A.txt @@ -1,12 +1,9 @@ {+(Program - (Binary + (MemberAccess (Identifier) - (Other "or") (Identifier)) - (Binary - (Binary + (MemberAccess + (MemberAccess (Identifier) - (Other "or") (Identifier)) - (Other "and") (Identifier)))+} diff --git a/test/fixtures/python/dotted-name.diff-A.txt b/test/fixtures/python/dotted-name.diff-A.txt new file mode 100644 index 000000000..db78e7dde --- /dev/null +++ b/test/fixtures/python/dotted-name.diff-A.txt @@ -0,0 +1,9 @@ +{-(Program + (MemberAccess + (Identifier) + (Identifier)) + (MemberAccess + (MemberAccess + (Identifier) + (Identifier)) + (Identifier)))-} diff --git a/test/fixtures/python/dotted-name.diff-B.txt b/test/fixtures/python/dotted-name.diff-B.txt new file mode 100644 index 000000000..77d78bf56 --- /dev/null +++ b/test/fixtures/python/dotted-name.diff-B.txt @@ -0,0 +1,9 @@ +{-(Program + (MemberAccess + (MemberAccess + (Identifier) + (Identifier)) + (Identifier)) + (MemberAccess + (Identifier) + (Identifier)))-} diff --git a/test/fixtures/python/dotted-name.diffA-B.txt b/test/fixtures/python/dotted-name.diffA-B.txt new file mode 100644 index 000000000..3c61c411c --- /dev/null +++ b/test/fixtures/python/dotted-name.diffA-B.txt @@ -0,0 +1,15 @@ +(Program + (MemberAccess + { (Identifier) + ->(MemberAccess + (Identifier) + (Identifier)) } + { (Identifier) + ->(Identifier) }) + (MemberAccess + { (MemberAccess + (Identifier) + (Identifier)) + ->(Identifier) } + { (Identifier) + ->(Identifier) })) diff --git a/test/fixtures/python/dotted-name.diffB-A.txt b/test/fixtures/python/dotted-name.diffB-A.txt new file mode 100644 index 000000000..2eaa3df2a --- /dev/null +++ b/test/fixtures/python/dotted-name.diffB-A.txt @@ -0,0 +1,15 @@ +(Program + (MemberAccess + { (MemberAccess + (Identifier) + (Identifier)) + ->(Identifier) } + { (Identifier) + ->(Identifier) }) + (MemberAccess + { (Identifier) + ->(MemberAccess + (Identifier) + (Identifier)) } + { (Identifier) + ->(Identifier) })) diff --git a/test/fixtures/python/dotted-name.parseA.txt b/test/fixtures/python/dotted-name.parseA.txt new file mode 100644 index 000000000..faab106f1 --- /dev/null +++ b/test/fixtures/python/dotted-name.parseA.txt @@ -0,0 +1,9 @@ +(Program + (MemberAccess + (Identifier) + (Identifier)) + (MemberAccess + (MemberAccess + (Identifier) + (Identifier)) + (Identifier))) diff --git a/test/fixtures/python/dotted-name.parseB.txt b/test/fixtures/python/dotted-name.parseB.txt new file mode 100644 index 000000000..0bcbcc68d --- /dev/null +++ b/test/fixtures/python/dotted-name.parseB.txt @@ -0,0 +1,9 @@ +(Program + (MemberAccess + (MemberAccess + (Identifier) + (Identifier)) + (Identifier)) + (MemberAccess + (Identifier) + (Identifier))) diff --git a/test/fixtures/python/ellipsis.diff+A.txt b/test/fixtures/python/ellipsis.diff+A.txt new file mode 100644 index 000000000..d0ba267ed --- /dev/null +++ b/test/fixtures/python/ellipsis.diff+A.txt @@ -0,0 +1,3 @@ +{+(Program + (Ellipsis) + (Ellipsis))+} diff --git a/test/fixtures/python/ellipsis.diff-A.txt b/test/fixtures/python/ellipsis.diff-A.txt new file mode 100644 index 000000000..367c8058d --- /dev/null +++ b/test/fixtures/python/ellipsis.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Ellipsis) + (Ellipsis))-} diff --git a/test/fixtures/python/ellipsis.diff-B.txt b/test/fixtures/python/ellipsis.diff-B.txt new file mode 100644 index 000000000..f85a2709b --- /dev/null +++ b/test/fixtures/python/ellipsis.diff-B.txt @@ -0,0 +1,2 @@ +{-(Program + (Ellipsis))-} diff --git a/test/fixtures/python/ellipsis.diffA-B.txt b/test/fixtures/python/ellipsis.diffA-B.txt new file mode 100644 index 000000000..8f748760a --- /dev/null +++ b/test/fixtures/python/ellipsis.diffA-B.txt @@ -0,0 +1,3 @@ +(Program + (Ellipsis) +{-(Ellipsis)-}) diff --git a/test/fixtures/python/ellipsis.diffB-A.txt b/test/fixtures/python/ellipsis.diffB-A.txt new file mode 100644 index 000000000..522926cc7 --- /dev/null +++ b/test/fixtures/python/ellipsis.diffB-A.txt @@ -0,0 +1,3 @@ +(Program + (Ellipsis) +{+(Ellipsis)+}) diff --git a/test/fixtures/python/ellipsis.parseA.txt b/test/fixtures/python/ellipsis.parseA.txt new file mode 100644 index 000000000..3f9d9ebac --- /dev/null +++ b/test/fixtures/python/ellipsis.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Ellipsis) + (Ellipsis)) diff --git a/test/fixtures/python/ellipsis.parseB.txt b/test/fixtures/python/ellipsis.parseB.txt new file mode 100644 index 000000000..d17f8d8fa --- /dev/null +++ b/test/fixtures/python/ellipsis.parseB.txt @@ -0,0 +1,2 @@ +(Program + (Ellipsis)) diff --git a/test/fixtures/python/exec-statement.diff+A.txt b/test/fixtures/python/exec-statement.diff+A.txt new file mode 100644 index 000000000..8b6a08cc6 --- /dev/null +++ b/test/fixtures/python/exec-statement.diff+A.txt @@ -0,0 +1,16 @@ +{+(Program + (Call + (Identifier) + (TextElement) + (Empty)) + (Call + (Identifier) + (TextElement) + (Null) + (Empty)) + (Call + (Identifier) + (TextElement) + (Identifier) + (Identifier) + (Empty)))+} diff --git a/test/fixtures/python/exec-statement.diff-A.txt b/test/fixtures/python/exec-statement.diff-A.txt new file mode 100644 index 000000000..fa7bbda3c --- /dev/null +++ b/test/fixtures/python/exec-statement.diff-A.txt @@ -0,0 +1,16 @@ +{-(Program + (Call + (Identifier) + (TextElement) + (Empty)) + (Call + (Identifier) + (TextElement) + (Null) + (Empty)) + (Call + (Identifier) + (TextElement) + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/exec-statement.diff-B.txt b/test/fixtures/python/exec-statement.diff-B.txt new file mode 100644 index 000000000..b29332565 --- /dev/null +++ b/test/fixtures/python/exec-statement.diff-B.txt @@ -0,0 +1,16 @@ +{-(Program + (Call + (Identifier) + (TextElement) + (Identifier) + (Empty)) + (Call + (Identifier) + (TextElement) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (TextElement) + (Empty)))-} diff --git a/test/fixtures/python/exec-statement.diffA-B.txt b/test/fixtures/python/exec-statement.diffA-B.txt new file mode 100644 index 000000000..8f047d8d7 --- /dev/null +++ b/test/fixtures/python/exec-statement.diffA-B.txt @@ -0,0 +1,28 @@ +(Program +{+(Call + (Identifier) + (TextElement) + (Identifier) + (Empty))+} +{+(Call + (Identifier) + (TextElement) + (Identifier) + (Identifier) + (Empty))+} + (Call + (Identifier) + {+(TextElement)+} + {-(TextElement)-} + (Empty)) +{-(Call + (Identifier) + (TextElement) + (Null) + (Empty))-} +{-(Call + (Identifier) + (TextElement) + (Identifier) + (Identifier) + (Empty))-}) diff --git a/test/fixtures/python/exec-statement.diffB-A.txt b/test/fixtures/python/exec-statement.diffB-A.txt new file mode 100644 index 000000000..1f3e4f29b --- /dev/null +++ b/test/fixtures/python/exec-statement.diffB-A.txt @@ -0,0 +1,22 @@ +(Program +{+(Call + (Identifier) + (TextElement) + (Empty))+} + (Call + (Identifier) + (TextElement) + {+(Null)+} + {-(Identifier)-} + (Empty)) + (Call + (Identifier) + (TextElement) + {+(Identifier)+} + (Identifier) + {-(Identifier)-} + (Empty)) +{-(Call + (Identifier) + (TextElement) + (Empty))-}) diff --git a/test/fixtures/python/exec-statement.parseA.txt b/test/fixtures/python/exec-statement.parseA.txt new file mode 100644 index 000000000..d305b08ab --- /dev/null +++ b/test/fixtures/python/exec-statement.parseA.txt @@ -0,0 +1,16 @@ +(Program + (Call + (Identifier) + (TextElement) + (Empty)) + (Call + (Identifier) + (TextElement) + (Null) + (Empty)) + (Call + (Identifier) + (TextElement) + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/exec-statement.parseB.txt b/test/fixtures/python/exec-statement.parseB.txt new file mode 100644 index 000000000..df384a38e --- /dev/null +++ b/test/fixtures/python/exec-statement.parseB.txt @@ -0,0 +1,16 @@ +(Program + (Call + (Identifier) + (TextElement) + (Identifier) + (Empty)) + (Call + (Identifier) + (TextElement) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (TextElement) + (Empty))) diff --git a/test/fixtures/python/expression-statement.diff+A.txt b/test/fixtures/python/expression-statement.diff+A.txt new file mode 100644 index 000000000..0c299bc63 --- /dev/null +++ b/test/fixtures/python/expression-statement.diff+A.txt @@ -0,0 +1,14 @@ +{+(Program + (Identifier) + (Plus + (Identifier) + ( + (Identifier))) + ( + (Integer) + (Integer) + (Integer)) + ( + (Integer) + (Integer) + (Integer)))+} diff --git a/test/fixtures/python/expression-statement.diff-A.txt b/test/fixtures/python/expression-statement.diff-A.txt new file mode 100644 index 000000000..d0ae3e6de --- /dev/null +++ b/test/fixtures/python/expression-statement.diff-A.txt @@ -0,0 +1,14 @@ +{-(Program + (Identifier) + (Plus + (Identifier) + ( + (Identifier))) + ( + (Integer) + (Integer) + (Integer)) + ( + (Integer) + (Integer) + (Integer)))-} diff --git a/test/fixtures/python/expression-statement.diff-B.txt b/test/fixtures/python/expression-statement.diff-B.txt new file mode 100644 index 000000000..6eaec177f --- /dev/null +++ b/test/fixtures/python/expression-statement.diff-B.txt @@ -0,0 +1,14 @@ +{-(Program + ( + (Integer) + (Integer) + (Integer)) + (Identifier) + ( + (Integer) + (Integer) + (Integer)) + (Plus + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/expression-statement.diffA-B.txt b/test/fixtures/python/expression-statement.diffA-B.txt new file mode 100644 index 000000000..a440359be --- /dev/null +++ b/test/fixtures/python/expression-statement.diffA-B.txt @@ -0,0 +1,19 @@ +(Program +{-(Identifier)-} +{-(Plus + (Identifier) + ( + (Identifier)))-} + ( + (Integer) + (Integer) + (Integer)) +{+(Identifier)+} + ( + (Integer) + (Integer) + (Integer)) +{+(Plus + (Identifier) + ( + (Identifier)))+}) diff --git a/test/fixtures/python/expression-statement.diffB-A.txt b/test/fixtures/python/expression-statement.diffB-A.txt new file mode 100644 index 000000000..86838a3de --- /dev/null +++ b/test/fixtures/python/expression-statement.diffB-A.txt @@ -0,0 +1,23 @@ +(Program +{+(Identifier)+} +{+(Plus + (Identifier) + ( + (Identifier)))+} + ( + (Integer) + (Integer) + (Integer)) +{+( + (Integer) + (Integer) + (Integer))+} +{-(Identifier)-} +{-( + (Integer) + (Integer) + (Integer))-} +{-(Plus + (Identifier) + ( + (Identifier)))-}) diff --git a/test/fixtures/python/expression-statement.parseA.txt b/test/fixtures/python/expression-statement.parseA.txt new file mode 100644 index 000000000..8619eb154 --- /dev/null +++ b/test/fixtures/python/expression-statement.parseA.txt @@ -0,0 +1,14 @@ +(Program + (Identifier) + (Plus + (Identifier) + ( + (Identifier))) + ( + (Integer) + (Integer) + (Integer)) + ( + (Integer) + (Integer) + (Integer))) diff --git a/test/fixtures/python/expression-statement.parseB.txt b/test/fixtures/python/expression-statement.parseB.txt new file mode 100644 index 000000000..13c4bf2ab --- /dev/null +++ b/test/fixtures/python/expression-statement.parseB.txt @@ -0,0 +1,14 @@ +(Program + ( + (Integer) + (Integer) + (Integer)) + (Identifier) + ( + (Integer) + (Integer) + (Integer)) + (Plus + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/python/float.diff+A.txt b/test/fixtures/python/float.diff+A.txt new file mode 100644 index 000000000..438a5dd0e --- /dev/null +++ b/test/fixtures/python/float.diff+A.txt @@ -0,0 +1,12 @@ +{+(Program + (Negate + (Float)) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float))+} diff --git a/test/fixtures/python/float.diff-A.txt b/test/fixtures/python/float.diff-A.txt new file mode 100644 index 000000000..c7e6c6e6d --- /dev/null +++ b/test/fixtures/python/float.diff-A.txt @@ -0,0 +1,12 @@ +{-(Program + (Negate + (Float)) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float))-} diff --git a/test/fixtures/python/float.diff-B.txt b/test/fixtures/python/float.diff-B.txt new file mode 100644 index 000000000..c7e6c6e6d --- /dev/null +++ b/test/fixtures/python/float.diff-B.txt @@ -0,0 +1,12 @@ +{-(Program + (Negate + (Float)) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float))-} diff --git a/test/fixtures/python/float.diffA-B.txt b/test/fixtures/python/float.diffA-B.txt new file mode 100644 index 000000000..8c49b18b7 --- /dev/null +++ b/test/fixtures/python/float.diffA-B.txt @@ -0,0 +1,22 @@ +(Program + (Negate + { (Float) + ->(Float) }) +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-}) diff --git a/test/fixtures/python/float.diffB-A.txt b/test/fixtures/python/float.diffB-A.txt new file mode 100644 index 000000000..8c49b18b7 --- /dev/null +++ b/test/fixtures/python/float.diffB-A.txt @@ -0,0 +1,22 @@ +(Program + (Negate + { (Float) + ->(Float) }) +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{+(Float)+} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-} +{-(Float)-}) diff --git a/test/fixtures/python/float.parseA.txt b/test/fixtures/python/float.parseA.txt new file mode 100644 index 000000000..ffe9ae0e3 --- /dev/null +++ b/test/fixtures/python/float.parseA.txt @@ -0,0 +1,12 @@ +(Program + (Negate + (Float)) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float)) diff --git a/test/fixtures/python/float.parseB.txt b/test/fixtures/python/float.parseB.txt new file mode 100644 index 000000000..ffe9ae0e3 --- /dev/null +++ b/test/fixtures/python/float.parseB.txt @@ -0,0 +1,12 @@ +(Program + (Negate + (Float)) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float) + (Float)) diff --git a/test/fixtures/python/for-statement.diff+A.txt b/test/fixtures/python/for-statement.diff+A.txt new file mode 100644 index 000000000..6a1478e02 --- /dev/null +++ b/test/fixtures/python/for-statement.diff+A.txt @@ -0,0 +1,39 @@ +{+(Program + (Else + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + (Identifier) + (Empty)))) + (ForEach + ( + (Identifier)) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + (Identifier))))+} diff --git a/test/fixtures/python/for-statement.diff-A.txt b/test/fixtures/python/for-statement.diff-A.txt new file mode 100644 index 000000000..011e57f5a --- /dev/null +++ b/test/fixtures/python/for-statement.diff-A.txt @@ -0,0 +1,39 @@ +{-(Program + (Else + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + (Identifier) + (Empty)))) + (ForEach + ( + (Identifier)) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + (Identifier))))-} diff --git a/test/fixtures/python/for-statement.diff-B.txt b/test/fixtures/python/for-statement.diff-B.txt new file mode 100644 index 000000000..4f17d5d7c --- /dev/null +++ b/test/fixtures/python/for-statement.diff-B.txt @@ -0,0 +1,39 @@ +{-(Program + (ForEach + ( + (Identifier)) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + (Identifier))) + (Else + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))-} diff --git a/test/fixtures/python/for-statement.diffA-B.txt b/test/fixtures/python/for-statement.diffA-B.txt new file mode 100644 index 000000000..f5aa4e3a1 --- /dev/null +++ b/test/fixtures/python/for-statement.diffA-B.txt @@ -0,0 +1,54 @@ +(Program +{+(ForEach + ( + (Identifier)) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + (Identifier)))+} + (Else + (ForEach + ( + (Identifier) + {+(Identifier)+} + {-(Identifier)-}) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + { (Identifier) + ->(Identifier) }) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + (Empty)))) +{-(ForEach + ( + (Identifier)) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + (Identifier)))-}) diff --git a/test/fixtures/python/for-statement.diffB-A.txt b/test/fixtures/python/for-statement.diffB-A.txt new file mode 100644 index 000000000..852656bbe --- /dev/null +++ b/test/fixtures/python/for-statement.diffB-A.txt @@ -0,0 +1,67 @@ +(Program +{+(Else + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + (Identifier) + (Empty))))+} + (ForEach + ( + { (Identifier) + ->(Identifier) }) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + { (Identifier) + ->(Identifier) })) +{-(Else + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + (Identifier) + (Empty))))-}) diff --git a/test/fixtures/python/for-statement.parseA.txt b/test/fixtures/python/for-statement.parseA.txt new file mode 100644 index 000000000..64846c930 --- /dev/null +++ b/test/fixtures/python/for-statement.parseA.txt @@ -0,0 +1,39 @@ +(Program + (Else + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + (Identifier) + (Empty)))) + (ForEach + ( + (Identifier)) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + (Identifier)))) diff --git a/test/fixtures/python/for-statement.parseB.txt b/test/fixtures/python/for-statement.parseB.txt new file mode 100644 index 000000000..afc42cc95 --- /dev/null +++ b/test/fixtures/python/for-statement.parseB.txt @@ -0,0 +1,39 @@ +(Program + (ForEach + ( + (Identifier)) + (Array + (Tuple + (Integer)) + (Tuple + (Integer)) + (Tuple + (Integer))) + ( + (Identifier))) + (Else + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)) + (ForEach + ( + (Identifier) + (Identifier)) + (Identifier) + ( + (Call + (Identifier) + (Identifier) + (Empty)))))) + ( + (Call + (Identifier) + (Identifier) + (Empty))))) diff --git a/test/fixtures/python/function-definition.diff+A.txt b/test/fixtures/python/function-definition.diff+A.txt new file mode 100644 index 000000000..f14ce36e4 --- /dev/null +++ b/test/fixtures/python/function-definition.diff+A.txt @@ -0,0 +1,43 @@ +{+(Program + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Assignment + (Identifier) + (Identifier)) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (TextElement)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty)))+} diff --git a/test/fixtures/python/function-definition.diff-A.txt b/test/fixtures/python/function-definition.diff-A.txt new file mode 100644 index 000000000..3b97ceec1 --- /dev/null +++ b/test/fixtures/python/function-definition.diff-A.txt @@ -0,0 +1,43 @@ +{-(Program + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Assignment + (Identifier) + (Identifier)) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (TextElement)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty)))-} diff --git a/test/fixtures/python/function-definition.diff-B.txt b/test/fixtures/python/function-definition.diff-B.txt new file mode 100644 index 000000000..8648c3e9d --- /dev/null +++ b/test/fixtures/python/function-definition.diff-B.txt @@ -0,0 +1,34 @@ +{-(Program + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (Integer)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty)))-} diff --git a/test/fixtures/python/function-definition.diffA-B.txt b/test/fixtures/python/function-definition.diffA-B.txt new file mode 100644 index 000000000..9e6e8e9a4 --- /dev/null +++ b/test/fixtures/python/function-definition.diffA-B.txt @@ -0,0 +1,67 @@ +(Program +{+(Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty))+} + (Annotation + (Function + { (Identifier) + ->(Identifier) } + ( + (Identifier))) + (Empty)) + (Annotation + (Function + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) } + ( + {+(Identifier)+} + {-(Identifier)-})) + (Empty)) +{+(Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (Integer)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty))+} +{-(Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty))-} +{-(Annotation + (Function + (Identifier) + (Assignment + (Identifier) + (Identifier)) + ( + (Identifier))) + (Empty))-} +{-(Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (TextElement)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty))-}) diff --git a/test/fixtures/python/function-definition.diffB-A.txt b/test/fixtures/python/function-definition.diffB-A.txt new file mode 100644 index 000000000..371a15dc6 --- /dev/null +++ b/test/fixtures/python/function-definition.diffB-A.txt @@ -0,0 +1,71 @@ +(Program +{+(Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty))+} +{+(Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty))+} + (Annotation + (Function + (Identifier) + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) } + ( + {+(Identifier)+} + {-(Identifier)-})) + (Empty)) +{+(Annotation + (Function + (Identifier) + (Assignment + (Identifier) + (Identifier)) + ( + (Identifier))) + (Empty))+} +{+(Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (TextElement)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty))+} +{-(Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty))-} +{-(Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty))-} +{-(Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (Integer)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty))-}) diff --git a/test/fixtures/python/function-definition.parseA.txt b/test/fixtures/python/function-definition.parseA.txt new file mode 100644 index 000000000..6aff7c44f --- /dev/null +++ b/test/fixtures/python/function-definition.parseA.txt @@ -0,0 +1,43 @@ +(Program + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Assignment + (Identifier) + (Identifier)) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (TextElement)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty))) diff --git a/test/fixtures/python/function-definition.parseB.txt b/test/fixtures/python/function-definition.parseB.txt new file mode 100644 index 000000000..9e27729d4 --- /dev/null +++ b/test/fixtures/python/function-definition.parseB.txt @@ -0,0 +1,34 @@ +(Program + (Annotation + (Function + (Identifier) + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Identifier))) + (Empty)) + (Annotation + (Function + (Identifier) + (Annotation + (Assignment + (Identifier) + (Integer)) + (Identifier)) + (Identifier) + ( + (Identifier))) + (Empty))) diff --git a/test/fixtures/python/generator-expression.diff+A.txt b/test/fixtures/python/generator-expression.diff+A.txt new file mode 100644 index 000000000..f44f999e0 --- /dev/null +++ b/test/fixtures/python/generator-expression.diff+A.txt @@ -0,0 +1,15 @@ +{+(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))))+} diff --git a/test/fixtures/python/generator-expression.diff-A.txt b/test/fixtures/python/generator-expression.diff-A.txt new file mode 100644 index 000000000..08aff59dc --- /dev/null +++ b/test/fixtures/python/generator-expression.diff-A.txt @@ -0,0 +1,15 @@ +{-(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))))-} diff --git a/test/fixtures/python/generator-expression.diff-B.txt b/test/fixtures/python/generator-expression.diff-B.txt new file mode 100644 index 000000000..3425c4b82 --- /dev/null +++ b/test/fixtures/python/generator-expression.diff-B.txt @@ -0,0 +1,18 @@ +{-(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Plus + (Identifier) + ( + (Integer))) + ( + ( + ( + (Identifier)) + (Identifier)))))-} diff --git a/test/fixtures/python/generator-expression.diffA-B.txt b/test/fixtures/python/generator-expression.diffA-B.txt new file mode 100644 index 000000000..0a4b71749 --- /dev/null +++ b/test/fixtures/python/generator-expression.diffA-B.txt @@ -0,0 +1,24 @@ +(Program + (Comprehension + { (Identifier) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}))) + (Comprehension + { (Identifier) + ->(Plus + (Identifier) + ( + (Integer))) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-})))) diff --git a/test/fixtures/python/generator-expression.diffB-A.txt b/test/fixtures/python/generator-expression.diffB-A.txt new file mode 100644 index 000000000..c4db750b2 --- /dev/null +++ b/test/fixtures/python/generator-expression.diffB-A.txt @@ -0,0 +1,24 @@ +(Program + (Comprehension + { (Identifier) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}))) + (Comprehension + { (Plus + (Identifier) + ( + (Integer))) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-})))) diff --git a/test/fixtures/python/generator-expression.parseA.txt b/test/fixtures/python/generator-expression.parseA.txt new file mode 100644 index 000000000..d72257bea --- /dev/null +++ b/test/fixtures/python/generator-expression.parseA.txt @@ -0,0 +1,15 @@ +(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier))))) diff --git a/test/fixtures/python/generator-expression.parseB.txt b/test/fixtures/python/generator-expression.parseB.txt new file mode 100644 index 000000000..4146ba18c --- /dev/null +++ b/test/fixtures/python/generator-expression.parseB.txt @@ -0,0 +1,18 @@ +(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Plus + (Identifier) + ( + (Integer))) + ( + ( + ( + (Identifier)) + (Identifier))))) diff --git a/test/fixtures/python/global-statement.diff+A.txt b/test/fixtures/python/global-statement.diff+A.txt new file mode 100644 index 000000000..08a933b0b --- /dev/null +++ b/test/fixtures/python/global-statement.diff+A.txt @@ -0,0 +1,10 @@ +{+(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)))+} diff --git a/test/fixtures/python/global-statement.diff-A.txt b/test/fixtures/python/global-statement.diff-A.txt new file mode 100644 index 000000000..dc2517428 --- /dev/null +++ b/test/fixtures/python/global-statement.diff-A.txt @@ -0,0 +1,10 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/global-statement.diff-B.txt b/test/fixtures/python/global-statement.diff-B.txt new file mode 100644 index 000000000..cf13adf6e --- /dev/null +++ b/test/fixtures/python/global-statement.diff-B.txt @@ -0,0 +1,10 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/global-statement.diffA-B.txt b/test/fixtures/python/global-statement.diffA-B.txt new file mode 100644 index 000000000..aeba128f4 --- /dev/null +++ b/test/fixtures/python/global-statement.diffA-B.txt @@ -0,0 +1,12 @@ +(Program + (Call + (Identifier) + {+(Identifier)+} + (Identifier) + (Empty)) + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + {-(Identifier)-} + (Empty))) diff --git a/test/fixtures/python/global-statement.diffB-A.txt b/test/fixtures/python/global-statement.diffB-A.txt new file mode 100644 index 000000000..1b90b4ec1 --- /dev/null +++ b/test/fixtures/python/global-statement.diffB-A.txt @@ -0,0 +1,12 @@ +(Program + (Call + (Identifier) + {-(Identifier)-} + (Identifier) + (Empty)) + (Call + (Identifier) + {+(Identifier)+} + {+(Identifier)+} + {-(Identifier)-} + (Empty))) diff --git a/test/fixtures/python/global-statement.parseA.txt b/test/fixtures/python/global-statement.parseA.txt new file mode 100644 index 000000000..84107fae6 --- /dev/null +++ b/test/fixtures/python/global-statement.parseA.txt @@ -0,0 +1,10 @@ +(Program + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/global-statement.parseB.txt b/test/fixtures/python/global-statement.parseB.txt new file mode 100644 index 000000000..04a22e553 --- /dev/null +++ b/test/fixtures/python/global-statement.parseB.txt @@ -0,0 +1,10 @@ +(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/identifier.diff+A.txt b/test/fixtures/python/identifier.diff+A.txt new file mode 100644 index 000000000..34d10f2c2 --- /dev/null +++ b/test/fixtures/python/identifier.diff+A.txt @@ -0,0 +1,2 @@ +{+(Program + (Identifier))+} diff --git a/test/fixtures/python/identifier.diff-A.txt b/test/fixtures/python/identifier.diff-A.txt new file mode 100644 index 000000000..090dfdffe --- /dev/null +++ b/test/fixtures/python/identifier.diff-A.txt @@ -0,0 +1,2 @@ +{-(Program + (Identifier))-} diff --git a/test/fixtures/python/identifier.diff-B.txt b/test/fixtures/python/identifier.diff-B.txt new file mode 100644 index 000000000..3cebf713c --- /dev/null +++ b/test/fixtures/python/identifier.diff-B.txt @@ -0,0 +1,3 @@ +{-(Program + (Identifier) + (Identifier))-} diff --git a/test/fixtures/python/identifier.diffA-B.txt b/test/fixtures/python/identifier.diffA-B.txt new file mode 100644 index 000000000..e350145f7 --- /dev/null +++ b/test/fixtures/python/identifier.diffA-B.txt @@ -0,0 +1,4 @@ +(Program +{+(Identifier)+} +{+(Identifier)+} +{-(Identifier)-}) diff --git a/test/fixtures/python/identifier.diffB-A.txt b/test/fixtures/python/identifier.diffB-A.txt new file mode 100644 index 000000000..34ff44b49 --- /dev/null +++ b/test/fixtures/python/identifier.diffB-A.txt @@ -0,0 +1,4 @@ +(Program +{+(Identifier)+} +{-(Identifier)-} +{-(Identifier)-}) diff --git a/test/fixtures/python/identifier.parseA.txt b/test/fixtures/python/identifier.parseA.txt new file mode 100644 index 000000000..67b75f388 --- /dev/null +++ b/test/fixtures/python/identifier.parseA.txt @@ -0,0 +1,2 @@ +(Program + (Identifier)) diff --git a/test/fixtures/python/identifier.parseB.txt b/test/fixtures/python/identifier.parseB.txt new file mode 100644 index 000000000..1002352c1 --- /dev/null +++ b/test/fixtures/python/identifier.parseB.txt @@ -0,0 +1,3 @@ +(Program + (Identifier) + (Identifier)) diff --git a/test/fixtures/python/if-statement.diff+A.txt b/test/fixtures/python/if-statement.diff+A.txt new file mode 100644 index 000000000..cc18dd728 --- /dev/null +++ b/test/fixtures/python/if-statement.diff+A.txt @@ -0,0 +1,14 @@ +{+(Program + (If + (Identifier) + ( + (Identifier) + (Identifier)) + (If + (Identifier) + ( + (Identifier) + (Identifier)) + ( + (Identifier) + (Identifier)))))+} diff --git a/test/fixtures/python/if-statement.diff-A.txt b/test/fixtures/python/if-statement.diff-A.txt new file mode 100644 index 000000000..603f779fc --- /dev/null +++ b/test/fixtures/python/if-statement.diff-A.txt @@ -0,0 +1,14 @@ +{-(Program + (If + (Identifier) + ( + (Identifier) + (Identifier)) + (If + (Identifier) + ( + (Identifier) + (Identifier)) + ( + (Identifier) + (Identifier)))))-} diff --git a/test/fixtures/python/if-statement.diff-B.txt b/test/fixtures/python/if-statement.diff-B.txt new file mode 100644 index 000000000..136df723b --- /dev/null +++ b/test/fixtures/python/if-statement.diff-B.txt @@ -0,0 +1,7 @@ +{-(Program + (If + (Identifier) + ( + (Identifier) + (Identifier)) + (Empty)))-} diff --git a/test/fixtures/python/if-statement.diffA-B.txt b/test/fixtures/python/if-statement.diffA-B.txt new file mode 100644 index 000000000..25615691f --- /dev/null +++ b/test/fixtures/python/if-statement.diffA-B.txt @@ -0,0 +1,18 @@ +(Program + (If + { (Identifier) + ->(Identifier) } + ( + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) }) + { (If + (Identifier) + ( + (Identifier) + (Identifier)) + ( + (Identifier) + (Identifier))) + ->(Empty) })) diff --git a/test/fixtures/python/if-statement.diffB-A.txt b/test/fixtures/python/if-statement.diffB-A.txt new file mode 100644 index 000000000..8ca9507ac --- /dev/null +++ b/test/fixtures/python/if-statement.diffB-A.txt @@ -0,0 +1,18 @@ +(Program + (If + { (Identifier) + ->(Identifier) } + ( + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) }) + { (Empty) + ->(If + (Identifier) + ( + (Identifier) + (Identifier)) + ( + (Identifier) + (Identifier))) })) diff --git a/test/fixtures/python/if-statement.parseA.txt b/test/fixtures/python/if-statement.parseA.txt new file mode 100644 index 000000000..fb5df2197 --- /dev/null +++ b/test/fixtures/python/if-statement.parseA.txt @@ -0,0 +1,14 @@ +(Program + (If + (Identifier) + ( + (Identifier) + (Identifier)) + (If + (Identifier) + ( + (Identifier) + (Identifier)) + ( + (Identifier) + (Identifier))))) diff --git a/test/fixtures/python/if-statement.parseB.txt b/test/fixtures/python/if-statement.parseB.txt new file mode 100644 index 000000000..7bde4e191 --- /dev/null +++ b/test/fixtures/python/if-statement.parseB.txt @@ -0,0 +1,7 @@ +(Program + (If + (Identifier) + ( + (Identifier) + (Identifier)) + (Empty))) diff --git a/test/fixtures/python/import-from-statement.diff+A.txt b/test/fixtures/python/import-from-statement.diff+A.txt new file mode 100644 index 000000000..c9780a2cc --- /dev/null +++ b/test/fixtures/python/import-from-statement.diff+A.txt @@ -0,0 +1,17 @@ +{+(Program + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (Identifier)))+} diff --git a/test/fixtures/python/import-from-statement.diff-A.txt b/test/fixtures/python/import-from-statement.diff-A.txt new file mode 100644 index 000000000..7615fa0c0 --- /dev/null +++ b/test/fixtures/python/import-from-statement.diff-A.txt @@ -0,0 +1,17 @@ +{-(Program + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (Identifier)))-} diff --git a/test/fixtures/python/import-from-statement.diff-B.txt b/test/fixtures/python/import-from-statement.diff-B.txt new file mode 100644 index 000000000..7615fa0c0 --- /dev/null +++ b/test/fixtures/python/import-from-statement.diff-B.txt @@ -0,0 +1,17 @@ +{-(Program + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (Identifier)))-} diff --git a/test/fixtures/python/import-from-statement.diffA-B.txt b/test/fixtures/python/import-from-statement.diffA-B.txt new file mode 100644 index 000000000..55a4e411f --- /dev/null +++ b/test/fixtures/python/import-from-statement.diffA-B.txt @@ -0,0 +1,22 @@ +(Program + (Import + {-(ScopeResolution + (Identifier))-} + (ScopeResolution + (Identifier)) + {+(ScopeResolution + (Identifier))+}) + (Import + {-(ScopeResolution + (Identifier))-} + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier)) + {+(ScopeResolution + (Identifier))+}) + (Import + (ScopeResolution + {+(Identifier)+} + {-(Identifier)-}) + (Identifier))) diff --git a/test/fixtures/python/import-from-statement.diffB-A.txt b/test/fixtures/python/import-from-statement.diffB-A.txt new file mode 100644 index 000000000..b60595036 --- /dev/null +++ b/test/fixtures/python/import-from-statement.diffB-A.txt @@ -0,0 +1,20 @@ +(Program + (Import + {-(ScopeResolution + (Identifier))-} + (ScopeResolution + (Identifier)) + {+(ScopeResolution + (Identifier))+}) + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + {+(Identifier)+} + {-(Identifier)-}) + (Identifier))) diff --git a/test/fixtures/python/import-from-statement.parseA.txt b/test/fixtures/python/import-from-statement.parseA.txt new file mode 100644 index 000000000..89b522021 --- /dev/null +++ b/test/fixtures/python/import-from-statement.parseA.txt @@ -0,0 +1,17 @@ +(Program + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (Identifier))) diff --git a/test/fixtures/python/import-from-statement.parseB.txt b/test/fixtures/python/import-from-statement.parseB.txt new file mode 100644 index 000000000..89b522021 --- /dev/null +++ b/test/fixtures/python/import-from-statement.parseB.txt @@ -0,0 +1,17 @@ +(Program + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (ScopeResolution + (Identifier)) + (Identifier))) diff --git a/test/fixtures/python/import-statement.diff+A.txt b/test/fixtures/python/import-statement.diff+A.txt new file mode 100644 index 000000000..4d694ce91 --- /dev/null +++ b/test/fixtures/python/import-statement.diff+A.txt @@ -0,0 +1,18 @@ +{+(Program + (Import + (ScopeResolution + (Identifier)) + (Let + (Identifier) + (ScopeResolution + (Identifier)) + (Empty))) + (Import + (Let + (Identifier) + (ScopeResolution + (Identifier) + (Identifier)) + (Empty)) + (ScopeResolution + (Identifier))))+} diff --git a/test/fixtures/python/import-statement.diff-A.txt b/test/fixtures/python/import-statement.diff-A.txt new file mode 100644 index 000000000..1d34b2ebf --- /dev/null +++ b/test/fixtures/python/import-statement.diff-A.txt @@ -0,0 +1,18 @@ +{-(Program + (Import + (ScopeResolution + (Identifier)) + (Let + (Identifier) + (ScopeResolution + (Identifier)) + (Empty))) + (Import + (Let + (Identifier) + (ScopeResolution + (Identifier) + (Identifier)) + (Empty)) + (ScopeResolution + (Identifier))))-} diff --git a/test/fixtures/python/import-statement.diff-B.txt b/test/fixtures/python/import-statement.diff-B.txt new file mode 100644 index 000000000..07e939470 --- /dev/null +++ b/test/fixtures/python/import-statement.diff-B.txt @@ -0,0 +1,13 @@ +{-(Program + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (Let + (Identifier) + (ScopeResolution + (Identifier) + (Identifier)) + (Empty))))-} diff --git a/test/fixtures/python/import-statement.diffA-B.txt b/test/fixtures/python/import-statement.diffA-B.txt new file mode 100644 index 000000000..202e330ad --- /dev/null +++ b/test/fixtures/python/import-statement.diffA-B.txt @@ -0,0 +1,22 @@ +(Program + (Import + {+(ScopeResolution + (Identifier))+} + (ScopeResolution + (Identifier)) + {-(Let + (Identifier) + (ScopeResolution + (Identifier)) + (Empty))-}) + (Import + (Let + { (Identifier) + ->(Identifier) } + (ScopeResolution + { (Identifier) + ->(Identifier) } + (Identifier)) + (Empty)) + {-(ScopeResolution + (Identifier))-})) diff --git a/test/fixtures/python/import-statement.diffB-A.txt b/test/fixtures/python/import-statement.diffB-A.txt new file mode 100644 index 000000000..a4cccaa8a --- /dev/null +++ b/test/fixtures/python/import-statement.diffB-A.txt @@ -0,0 +1,22 @@ +(Program + (Import + {-(ScopeResolution + (Identifier))-} + (ScopeResolution + (Identifier)) + {+(Let + (Identifier) + (ScopeResolution + (Identifier)) + (Empty))+}) + (Import + (Let + { (Identifier) + ->(Identifier) } + (ScopeResolution + { (Identifier) + ->(Identifier) } + (Identifier)) + (Empty)) + {+(ScopeResolution + (Identifier))+})) diff --git a/test/fixtures/python/import-statement.parseA.txt b/test/fixtures/python/import-statement.parseA.txt new file mode 100644 index 000000000..3f3c8a762 --- /dev/null +++ b/test/fixtures/python/import-statement.parseA.txt @@ -0,0 +1,18 @@ +(Program + (Import + (ScopeResolution + (Identifier)) + (Let + (Identifier) + (ScopeResolution + (Identifier)) + (Empty))) + (Import + (Let + (Identifier) + (ScopeResolution + (Identifier) + (Identifier)) + (Empty)) + (ScopeResolution + (Identifier)))) diff --git a/test/fixtures/python/import-statement.parseB.txt b/test/fixtures/python/import-statement.parseB.txt new file mode 100644 index 000000000..1a66f10ce --- /dev/null +++ b/test/fixtures/python/import-statement.parseB.txt @@ -0,0 +1,13 @@ +(Program + (Import + (ScopeResolution + (Identifier)) + (ScopeResolution + (Identifier))) + (Import + (Let + (Identifier) + (ScopeResolution + (Identifier) + (Identifier)) + (Empty)))) diff --git a/test/fixtures/python/integer.diff+A.txt b/test/fixtures/python/integer.diff+A.txt new file mode 100644 index 000000000..01c2d2e22 --- /dev/null +++ b/test/fixtures/python/integer.diff+A.txt @@ -0,0 +1,16 @@ +{+(Program + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer))+} diff --git a/test/fixtures/python/integer.diff-A.txt b/test/fixtures/python/integer.diff-A.txt new file mode 100644 index 000000000..4bfc9d06d --- /dev/null +++ b/test/fixtures/python/integer.diff-A.txt @@ -0,0 +1,16 @@ +{-(Program + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer))-} diff --git a/test/fixtures/python/integer.diff-B.txt b/test/fixtures/python/integer.diff-B.txt new file mode 100644 index 000000000..4bfc9d06d --- /dev/null +++ b/test/fixtures/python/integer.diff-B.txt @@ -0,0 +1,16 @@ +{-(Program + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer))-} diff --git a/test/fixtures/python/integer.diffA-B.txt b/test/fixtures/python/integer.diffA-B.txt new file mode 100644 index 000000000..4ee8d9bb3 --- /dev/null +++ b/test/fixtures/python/integer.diffA-B.txt @@ -0,0 +1,30 @@ +(Program + (Negate + { (Integer) + ->(Integer) }) +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Negate + (Integer))+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Negate + (Integer))-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-}) diff --git a/test/fixtures/python/integer.diffB-A.txt b/test/fixtures/python/integer.diffB-A.txt new file mode 100644 index 000000000..4ee8d9bb3 --- /dev/null +++ b/test/fixtures/python/integer.diffB-A.txt @@ -0,0 +1,30 @@ +(Program + (Negate + { (Integer) + ->(Integer) }) +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Negate + (Integer))+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{+(Integer)+} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Negate + (Integer))-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-} +{-(Integer)-}) diff --git a/test/fixtures/python/integer.parseA.txt b/test/fixtures/python/integer.parseA.txt new file mode 100644 index 000000000..1741f3139 --- /dev/null +++ b/test/fixtures/python/integer.parseA.txt @@ -0,0 +1,16 @@ +(Program + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer)) diff --git a/test/fixtures/python/integer.parseB.txt b/test/fixtures/python/integer.parseB.txt new file mode 100644 index 000000000..1741f3139 --- /dev/null +++ b/test/fixtures/python/integer.parseB.txt @@ -0,0 +1,16 @@ +(Program + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Negate + (Integer)) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer) + (Integer)) diff --git a/test/fixtures/python/keyword-identifier.diff+A.txt b/test/fixtures/python/keyword-identifier.diff+A.txt new file mode 100644 index 000000000..1a3508581 --- /dev/null +++ b/test/fixtures/python/keyword-identifier.diff+A.txt @@ -0,0 +1,3 @@ +{+(Program + (Identifier) + (Identifier))+} diff --git a/test/fixtures/python/keyword-identifier.diff-A.txt b/test/fixtures/python/keyword-identifier.diff-A.txt new file mode 100644 index 000000000..3cebf713c --- /dev/null +++ b/test/fixtures/python/keyword-identifier.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Identifier) + (Identifier))-} diff --git a/test/fixtures/python/keyword-identifier.diff-B.txt b/test/fixtures/python/keyword-identifier.diff-B.txt new file mode 100644 index 000000000..3cebf713c --- /dev/null +++ b/test/fixtures/python/keyword-identifier.diff-B.txt @@ -0,0 +1,3 @@ +{-(Program + (Identifier) + (Identifier))-} diff --git a/test/fixtures/python/keyword-identifier.diffA-B.txt b/test/fixtures/python/keyword-identifier.diffA-B.txt new file mode 100644 index 000000000..c76e21f67 --- /dev/null +++ b/test/fixtures/python/keyword-identifier.diffA-B.txt @@ -0,0 +1,4 @@ +(Program +{-(Identifier)-} + (Identifier) +{+(Identifier)+}) diff --git a/test/fixtures/python/keyword-identifier.diffB-A.txt b/test/fixtures/python/keyword-identifier.diffB-A.txt new file mode 100644 index 000000000..c76e21f67 --- /dev/null +++ b/test/fixtures/python/keyword-identifier.diffB-A.txt @@ -0,0 +1,4 @@ +(Program +{-(Identifier)-} + (Identifier) +{+(Identifier)+}) diff --git a/test/fixtures/python/keyword-identifier.parseA.txt b/test/fixtures/python/keyword-identifier.parseA.txt new file mode 100644 index 000000000..1002352c1 --- /dev/null +++ b/test/fixtures/python/keyword-identifier.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Identifier) + (Identifier)) diff --git a/test/fixtures/python/keyword-identifier.parseB.txt b/test/fixtures/python/keyword-identifier.parseB.txt new file mode 100644 index 000000000..1002352c1 --- /dev/null +++ b/test/fixtures/python/keyword-identifier.parseB.txt @@ -0,0 +1,3 @@ +(Program + (Identifier) + (Identifier)) diff --git a/test/fixtures/python/lambda.diff+A.txt b/test/fixtures/python/lambda.diff+A.txt new file mode 100644 index 000000000..385af3c3b --- /dev/null +++ b/test/fixtures/python/lambda.diff+A.txt @@ -0,0 +1,10 @@ +{+(Program + (Annotation + (Function + (Identifier) + ( + (Plus + (Integer) + ( + (Integer))))) + (Empty)))+} diff --git a/test/fixtures/python/lambda.diff-A.txt b/test/fixtures/python/lambda.diff-A.txt new file mode 100644 index 000000000..2fbb2a457 --- /dev/null +++ b/test/fixtures/python/lambda.diff-A.txt @@ -0,0 +1,10 @@ +{-(Program + (Annotation + (Function + (Identifier) + ( + (Plus + (Integer) + ( + (Integer))))) + (Empty)))-} diff --git a/test/fixtures/python/lambda.diff-B.txt b/test/fixtures/python/lambda.diff-B.txt new file mode 100644 index 000000000..98517fb6d --- /dev/null +++ b/test/fixtures/python/lambda.diff-B.txt @@ -0,0 +1,11 @@ +{-(Program + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Plus + (Identifier) + ( + (Integer))))) + (Empty)))-} diff --git a/test/fixtures/python/lambda.diffA-B.txt b/test/fixtures/python/lambda.diffA-B.txt new file mode 100644 index 000000000..356a9679c --- /dev/null +++ b/test/fixtures/python/lambda.diffA-B.txt @@ -0,0 +1,12 @@ +(Program + (Annotation + (Function + (Identifier) + {+(Identifier)+} + ( + (Plus + { (Integer) + ->(Identifier) } + ( + (Integer))))) + (Empty))) diff --git a/test/fixtures/python/lambda.diffB-A.txt b/test/fixtures/python/lambda.diffB-A.txt new file mode 100644 index 000000000..70b403bde --- /dev/null +++ b/test/fixtures/python/lambda.diffB-A.txt @@ -0,0 +1,12 @@ +(Program + (Annotation + (Function + (Identifier) + {-(Identifier)-} + ( + (Plus + { (Identifier) + ->(Integer) } + ( + (Integer))))) + (Empty))) diff --git a/test/fixtures/python/lambda.parseA.txt b/test/fixtures/python/lambda.parseA.txt new file mode 100644 index 000000000..67584183c --- /dev/null +++ b/test/fixtures/python/lambda.parseA.txt @@ -0,0 +1,10 @@ +(Program + (Annotation + (Function + (Identifier) + ( + (Plus + (Integer) + ( + (Integer))))) + (Empty))) diff --git a/test/fixtures/python/lambda.parseB.txt b/test/fixtures/python/lambda.parseB.txt new file mode 100644 index 000000000..255b34a82 --- /dev/null +++ b/test/fixtures/python/lambda.parseB.txt @@ -0,0 +1,11 @@ +(Program + (Annotation + (Function + (Identifier) + (Identifier) + ( + (Plus + (Identifier) + ( + (Integer))))) + (Empty))) diff --git a/test/fixtures/python/list-comprehension.A.py b/test/fixtures/python/list-comprehension.A.py index 062300f14..fb869cb1e 100644 --- a/test/fixtures/python/list-comprehension.A.py +++ b/test/fixtures/python/list-comprehension.A.py @@ -1,2 +1,2 @@ [ c for b in a ] -[ d for e in f ] +[ d for e in f if d] diff --git a/test/fixtures/python/list-comprehension.B.py b/test/fixtures/python/list-comprehension.B.py index 069cada06..99aed8548 100644 --- a/test/fixtures/python/list-comprehension.B.py +++ b/test/fixtures/python/list-comprehension.B.py @@ -1,2 +1,2 @@ -[ f for e in d ] +[ f for e in d if f() for g in h if g() ] [ c + 1 for b in a ] diff --git a/test/fixtures/python/list-comprehension.diff+A.txt b/test/fixtures/python/list-comprehension.diff+A.txt new file mode 100644 index 000000000..471c86cb4 --- /dev/null +++ b/test/fixtures/python/list-comprehension.diff+A.txt @@ -0,0 +1,17 @@ +{+(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier)))))+} diff --git a/test/fixtures/python/list-comprehension.diff-A.txt b/test/fixtures/python/list-comprehension.diff-A.txt new file mode 100644 index 000000000..689c96f62 --- /dev/null +++ b/test/fixtures/python/list-comprehension.diff-A.txt @@ -0,0 +1,17 @@ +{-(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier)))))-} diff --git a/test/fixtures/python/list-comprehension.diff-B.txt b/test/fixtures/python/list-comprehension.diff-B.txt new file mode 100644 index 000000000..088b3d5ac --- /dev/null +++ b/test/fixtures/python/list-comprehension.diff-B.txt @@ -0,0 +1,30 @@ +{-(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Call + (Identifier) + (Empty))) + ( + ( + (Identifier)) + (Identifier)) + ( + (Call + (Identifier) + (Empty))))) + (Comprehension + (Plus + (Identifier) + ( + (Integer))) + ( + ( + ( + (Identifier)) + (Identifier)))))-} diff --git a/test/fixtures/python/list-comprehension.diffA-B.txt b/test/fixtures/python/list-comprehension.diffA-B.txt new file mode 100644 index 000000000..9251166fc --- /dev/null +++ b/test/fixtures/python/list-comprehension.diffA-B.txt @@ -0,0 +1,38 @@ +(Program + (Comprehension + { (Identifier) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {+( + (Call + (Identifier) + (Empty)))+} + {+( + ( + (Identifier)) + (Identifier))+} + {+( + (Call + (Identifier) + (Empty)))+})) + (Comprehension + { (Identifier) + ->(Plus + (Identifier) + ( + (Integer))) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {-( + (Identifier))-}))) diff --git a/test/fixtures/python/list-comprehension.diffB-A.txt b/test/fixtures/python/list-comprehension.diffB-A.txt new file mode 100644 index 000000000..1ae62ebaa --- /dev/null +++ b/test/fixtures/python/list-comprehension.diffB-A.txt @@ -0,0 +1,38 @@ +(Program + (Comprehension + { (Identifier) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {-( + (Call + (Identifier) + (Empty)))-} + {-( + ( + (Identifier)) + (Identifier))-} + {-( + (Call + (Identifier) + (Empty)))-})) + (Comprehension + { (Plus + (Identifier) + ( + (Integer))) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}) + {+( + (Identifier))+}))) diff --git a/test/fixtures/python/list-comprehension.parseA.txt b/test/fixtures/python/list-comprehension.parseA.txt new file mode 100644 index 000000000..8ea6fae11 --- /dev/null +++ b/test/fixtures/python/list-comprehension.parseA.txt @@ -0,0 +1,17 @@ +(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Identifier))))) diff --git a/test/fixtures/python/list-comprehension.parseB.txt b/test/fixtures/python/list-comprehension.parseB.txt new file mode 100644 index 000000000..de056736c --- /dev/null +++ b/test/fixtures/python/list-comprehension.parseB.txt @@ -0,0 +1,30 @@ +(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)) + ( + (Call + (Identifier) + (Empty))) + ( + ( + (Identifier)) + (Identifier)) + ( + (Call + (Identifier) + (Empty))))) + (Comprehension + (Plus + (Identifier) + ( + (Integer))) + ( + ( + ( + (Identifier)) + (Identifier))))) diff --git a/test/fixtures/python/list.diff+A.txt b/test/fixtures/python/list.diff+A.txt new file mode 100644 index 000000000..db927f631 --- /dev/null +++ b/test/fixtures/python/list.diff+A.txt @@ -0,0 +1,10 @@ +{+(Program + (Array) + (Array + (Integer) + (Integer) + (Integer)) + (Array + (Identifier) + (Identifier) + (Identifier)))+} diff --git a/test/fixtures/python/list.diff-A.txt b/test/fixtures/python/list.diff-A.txt new file mode 100644 index 000000000..3d579a7e0 --- /dev/null +++ b/test/fixtures/python/list.diff-A.txt @@ -0,0 +1,10 @@ +{-(Program + (Array) + (Array + (Integer) + (Integer) + (Integer)) + (Array + (Identifier) + (Identifier) + (Identifier)))-} diff --git a/test/fixtures/python/list.diff-B.txt b/test/fixtures/python/list.diff-B.txt new file mode 100644 index 000000000..7d650a155 --- /dev/null +++ b/test/fixtures/python/list.diff-B.txt @@ -0,0 +1,8 @@ +{-(Program + (Array + (Identifier)) + (Array + (Integer) + (Integer)) + (Array + (Identifier)))-} diff --git a/test/fixtures/python/list.diffA-B.txt b/test/fixtures/python/list.diffA-B.txt new file mode 100644 index 000000000..98d27a18f --- /dev/null +++ b/test/fixtures/python/list.diffA-B.txt @@ -0,0 +1,11 @@ +(Program + (Array + {+(Identifier)+}) + (Array + (Integer) + {-(Integer)-} + (Integer)) + (Array + {-(Identifier)-} + (Identifier) + {-(Identifier)-})) diff --git a/test/fixtures/python/list.diffB-A.txt b/test/fixtures/python/list.diffB-A.txt new file mode 100644 index 000000000..0eedc09eb --- /dev/null +++ b/test/fixtures/python/list.diffB-A.txt @@ -0,0 +1,11 @@ +(Program + (Array + {-(Identifier)-}) + (Array + (Integer) + {+(Integer)+} + (Integer)) + (Array + {+(Identifier)+} + (Identifier) + {+(Identifier)+})) diff --git a/test/fixtures/python/list.parseA.txt b/test/fixtures/python/list.parseA.txt new file mode 100644 index 000000000..cd8c64524 --- /dev/null +++ b/test/fixtures/python/list.parseA.txt @@ -0,0 +1,10 @@ +(Program + (Array) + (Array + (Integer) + (Integer) + (Integer)) + (Array + (Identifier) + (Identifier) + (Identifier))) diff --git a/test/fixtures/python/list.parseB.txt b/test/fixtures/python/list.parseB.txt new file mode 100644 index 000000000..81b55aec9 --- /dev/null +++ b/test/fixtures/python/list.parseB.txt @@ -0,0 +1,8 @@ +(Program + (Array + (Identifier)) + (Array + (Integer) + (Integer)) + (Array + (Identifier))) diff --git a/test/fixtures/ruby/ternary.diff+B.txt b/test/fixtures/python/non-local-statement.diff+A.txt similarity index 58% rename from test/fixtures/ruby/ternary.diff+B.txt rename to test/fixtures/python/non-local-statement.diff+A.txt index e7a2a27af..ebe114540 100644 --- a/test/fixtures/ruby/ternary.diff+B.txt +++ b/test/fixtures/python/non-local-statement.diff+A.txt @@ -1,5 +1,5 @@ {+(Program - (Ternary + (Call (Identifier) (Identifier) - (Identifier)))+} + (Empty)))+} diff --git a/test/fixtures/python/non-local-statement.diff-A.txt b/test/fixtures/python/non-local-statement.diff-A.txt new file mode 100644 index 000000000..5a09a859d --- /dev/null +++ b/test/fixtures/python/non-local-statement.diff-A.txt @@ -0,0 +1,5 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/non-local-statement.diff-B.txt b/test/fixtures/python/non-local-statement.diff-B.txt new file mode 100644 index 000000000..5a09a859d --- /dev/null +++ b/test/fixtures/python/non-local-statement.diff-B.txt @@ -0,0 +1,5 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Empty)))-} diff --git a/test/fixtures/python/non-local-statement.diffA-B.txt b/test/fixtures/python/non-local-statement.diffA-B.txt new file mode 100644 index 000000000..51e9d1f45 --- /dev/null +++ b/test/fixtures/python/non-local-statement.diffA-B.txt @@ -0,0 +1,6 @@ +(Program + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + (Empty))) diff --git a/test/fixtures/python/non-local-statement.diffB-A.txt b/test/fixtures/python/non-local-statement.diffB-A.txt new file mode 100644 index 000000000..51e9d1f45 --- /dev/null +++ b/test/fixtures/python/non-local-statement.diffB-A.txt @@ -0,0 +1,6 @@ +(Program + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + (Empty))) diff --git a/test/fixtures/python/non-local-statement.parseA.txt b/test/fixtures/python/non-local-statement.parseA.txt new file mode 100644 index 000000000..8c6420c8a --- /dev/null +++ b/test/fixtures/python/non-local-statement.parseA.txt @@ -0,0 +1,5 @@ +(Program + (Call + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/non-local-statement.parseB.txt b/test/fixtures/python/non-local-statement.parseB.txt new file mode 100644 index 000000000..8c6420c8a --- /dev/null +++ b/test/fixtures/python/non-local-statement.parseB.txt @@ -0,0 +1,5 @@ +(Program + (Call + (Identifier) + (Identifier) + (Empty))) diff --git a/test/fixtures/python/none.diff+A.txt b/test/fixtures/python/none.diff+A.txt new file mode 100644 index 000000000..02c1e2cc3 --- /dev/null +++ b/test/fixtures/python/none.diff+A.txt @@ -0,0 +1,3 @@ +{+(Program + (Null) + (Null))+} diff --git a/test/fixtures/python/none.diff-A.txt b/test/fixtures/python/none.diff-A.txt new file mode 100644 index 000000000..0d8644276 --- /dev/null +++ b/test/fixtures/python/none.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Null) + (Null))-} diff --git a/test/fixtures/python/none.diff-B.txt b/test/fixtures/python/none.diff-B.txt new file mode 100644 index 000000000..3b5bc62c8 --- /dev/null +++ b/test/fixtures/python/none.diff-B.txt @@ -0,0 +1,2 @@ +{-(Program + (Null))-} diff --git a/test/fixtures/python/none.diffA-B.txt b/test/fixtures/python/none.diffA-B.txt new file mode 100644 index 000000000..15408d92c --- /dev/null +++ b/test/fixtures/python/none.diffA-B.txt @@ -0,0 +1,3 @@ +(Program + (Null) +{-(Null)-}) diff --git a/test/fixtures/python/none.diffB-A.txt b/test/fixtures/python/none.diffB-A.txt new file mode 100644 index 000000000..63cb0320e --- /dev/null +++ b/test/fixtures/python/none.diffB-A.txt @@ -0,0 +1,3 @@ +(Program + (Null) +{+(Null)+}) diff --git a/test/fixtures/python/none.parseA.txt b/test/fixtures/python/none.parseA.txt new file mode 100644 index 000000000..1d7363fea --- /dev/null +++ b/test/fixtures/python/none.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Null) + (Null)) diff --git a/test/fixtures/python/none.parseB.txt b/test/fixtures/python/none.parseB.txt new file mode 100644 index 000000000..d6499ddef --- /dev/null +++ b/test/fixtures/python/none.parseB.txt @@ -0,0 +1,2 @@ +(Program + (Null)) diff --git a/test/fixtures/javascript/undefined.diff+B.txt b/test/fixtures/python/not.diff+A.txt similarity index 76% rename from test/fixtures/javascript/undefined.diff+B.txt rename to test/fixtures/python/not.diff+A.txt index 986452908..f2f6f66f6 100644 --- a/test/fixtures/javascript/undefined.diff+B.txt +++ b/test/fixtures/python/not.diff+A.txt @@ -1,3 +1,3 @@ {+(Program - (Return + (Not (Identifier)))+} diff --git a/test/fixtures/python/not.diff-A.txt b/test/fixtures/python/not.diff-A.txt new file mode 100644 index 000000000..b482c0767 --- /dev/null +++ b/test/fixtures/python/not.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Not + (Identifier)))-} diff --git a/test/fixtures/python/not.diff-B.txt b/test/fixtures/python/not.diff-B.txt new file mode 100644 index 000000000..334d8b310 --- /dev/null +++ b/test/fixtures/python/not.diff-B.txt @@ -0,0 +1,5 @@ +{-(Program + (Not + (Identifier)) + (Not + (Identifier)))-} diff --git a/test/fixtures/python/not.diffA-B.txt b/test/fixtures/python/not.diffA-B.txt new file mode 100644 index 000000000..32cf3c573 --- /dev/null +++ b/test/fixtures/python/not.diffA-B.txt @@ -0,0 +1,6 @@ +(Program + (Not + { (Identifier) + ->(Identifier) }) +{+(Not + (Identifier))+}) diff --git a/test/fixtures/python/not.diffB-A.txt b/test/fixtures/python/not.diffB-A.txt new file mode 100644 index 000000000..273650b7e --- /dev/null +++ b/test/fixtures/python/not.diffB-A.txt @@ -0,0 +1,6 @@ +(Program + (Not + { (Identifier) + ->(Identifier) }) +{-(Not + (Identifier))-}) diff --git a/test/fixtures/python/not.parseA.txt b/test/fixtures/python/not.parseA.txt new file mode 100644 index 000000000..ba7207ca8 --- /dev/null +++ b/test/fixtures/python/not.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Not + (Identifier))) diff --git a/test/fixtures/python/not.parseB.txt b/test/fixtures/python/not.parseB.txt new file mode 100644 index 000000000..26535be9e --- /dev/null +++ b/test/fixtures/python/not.parseB.txt @@ -0,0 +1,5 @@ +(Program + (Not + (Identifier)) + (Not + (Identifier))) diff --git a/test/fixtures/typescript/export-assignments.diff+B.txt b/test/fixtures/python/pass-statement.diff+A.txt similarity index 76% rename from test/fixtures/typescript/export-assignments.diff+B.txt rename to test/fixtures/python/pass-statement.diff+A.txt index 986452908..1e1b131dc 100644 --- a/test/fixtures/typescript/export-assignments.diff+B.txt +++ b/test/fixtures/python/pass-statement.diff+A.txt @@ -1,3 +1,3 @@ {+(Program - (Return + (NoOp (Identifier)))+} diff --git a/test/fixtures/python/pass-statement.diff-A.txt b/test/fixtures/python/pass-statement.diff-A.txt new file mode 100644 index 000000000..cb20ebbd8 --- /dev/null +++ b/test/fixtures/python/pass-statement.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (NoOp + (Identifier)))-} diff --git a/test/fixtures/python/pass-statement.diff-B.txt b/test/fixtures/python/pass-statement.diff-B.txt new file mode 100644 index 000000000..1d4b65dfa --- /dev/null +++ b/test/fixtures/python/pass-statement.diff-B.txt @@ -0,0 +1,5 @@ +{-(Program + (NoOp + (Identifier)) + (NoOp + (Identifier)))-} diff --git a/test/fixtures/python/pass-statement.diffA-B.txt b/test/fixtures/python/pass-statement.diffA-B.txt new file mode 100644 index 000000000..7f0764e84 --- /dev/null +++ b/test/fixtures/python/pass-statement.diffA-B.txt @@ -0,0 +1,5 @@ +(Program + (NoOp + (Identifier)) +{+(NoOp + (Identifier))+}) diff --git a/test/fixtures/python/pass-statement.diffB-A.txt b/test/fixtures/python/pass-statement.diffB-A.txt new file mode 100644 index 000000000..014ed396e --- /dev/null +++ b/test/fixtures/python/pass-statement.diffB-A.txt @@ -0,0 +1,5 @@ +(Program + (NoOp + (Identifier)) +{-(NoOp + (Identifier))-}) diff --git a/test/fixtures/python/pass-statement.parseA.txt b/test/fixtures/python/pass-statement.parseA.txt new file mode 100644 index 000000000..c24c5f000 --- /dev/null +++ b/test/fixtures/python/pass-statement.parseA.txt @@ -0,0 +1,3 @@ +(Program + (NoOp + (Identifier))) diff --git a/test/fixtures/python/pass-statement.parseB.txt b/test/fixtures/python/pass-statement.parseB.txt new file mode 100644 index 000000000..b68d52aaa --- /dev/null +++ b/test/fixtures/python/pass-statement.parseB.txt @@ -0,0 +1,5 @@ +(Program + (NoOp + (Identifier)) + (NoOp + (Identifier))) diff --git a/test/fixtures/python/print-statement.diff+A.txt b/test/fixtures/python/print-statement.diff+A.txt new file mode 100644 index 000000000..f987bb865 --- /dev/null +++ b/test/fixtures/python/print-statement.diff+A.txt @@ -0,0 +1,28 @@ +{+(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Or + (Integer) + ( + (Integer))) + (Empty)))+} diff --git a/test/fixtures/python/print-statement.diff-A.txt b/test/fixtures/python/print-statement.diff-A.txt new file mode 100644 index 000000000..4d4508de5 --- /dev/null +++ b/test/fixtures/python/print-statement.diff-A.txt @@ -0,0 +1,28 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Or + (Integer) + ( + (Integer))) + (Empty)))-} diff --git a/test/fixtures/python/print-statement.diff-B.txt b/test/fixtures/python/print-statement.diff-B.txt new file mode 100644 index 000000000..4d4508de5 --- /dev/null +++ b/test/fixtures/python/print-statement.diff-B.txt @@ -0,0 +1,28 @@ +{-(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Or + (Integer) + ( + (Integer))) + (Empty)))-} diff --git a/test/fixtures/python/print-statement.diffA-B.txt b/test/fixtures/python/print-statement.diffA-B.txt new file mode 100644 index 000000000..73759c7e4 --- /dev/null +++ b/test/fixtures/python/print-statement.diffA-B.txt @@ -0,0 +1,34 @@ +(Program + (Call + (Identifier) + {+(Identifier)+} + (Identifier) + {-(Identifier)-} + (Empty)) + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + {-(Or + (Integer) + ( + (Integer)))-} + (Or + (Integer) + ( + (Integer))) + {+(Or + (Integer) + ( + (Integer)))+} + (Empty))) diff --git a/test/fixtures/python/print-statement.diffB-A.txt b/test/fixtures/python/print-statement.diffB-A.txt new file mode 100644 index 000000000..6eb1c9bbe --- /dev/null +++ b/test/fixtures/python/print-statement.diffB-A.txt @@ -0,0 +1,34 @@ +(Program + (Call + (Identifier) + {-(Identifier)-} + (Identifier) + {+(Identifier)+} + (Empty)) + (Call + (Identifier) + {+(Identifier)+} + {-(Identifier)-} + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + {-(Or + (Integer) + ( + (Integer)))-} + (Or + (Integer) + ( + (Integer))) + {+(Or + (Integer) + ( + (Integer)))+} + (Empty))) diff --git a/test/fixtures/python/print-statement.parseA.txt b/test/fixtures/python/print-statement.parseA.txt new file mode 100644 index 000000000..19eb7496a --- /dev/null +++ b/test/fixtures/python/print-statement.parseA.txt @@ -0,0 +1,28 @@ +(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Or + (Integer) + ( + (Integer))) + (Empty))) diff --git a/test/fixtures/python/print-statement.parseB.txt b/test/fixtures/python/print-statement.parseB.txt new file mode 100644 index 000000000..19eb7496a --- /dev/null +++ b/test/fixtures/python/print-statement.parseB.txt @@ -0,0 +1,28 @@ +(Program + (Call + (Identifier) + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Identifier) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Empty)) + (Call + (Identifier) + (Or + (Integer) + ( + (Integer))) + (Or + (Integer) + ( + (Integer))) + (Empty))) diff --git a/test/fixtures/python/raise-statement.diff+A.txt b/test/fixtures/python/raise-statement.diff+A.txt new file mode 100644 index 000000000..f838d0ff9 --- /dev/null +++ b/test/fixtures/python/raise-statement.diff+A.txt @@ -0,0 +1,16 @@ +{+(Program + (Throw + ([])) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)))) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)) + (Identifier))))+} diff --git a/test/fixtures/python/raise-statement.diff-A.txt b/test/fixtures/python/raise-statement.diff-A.txt new file mode 100644 index 000000000..c0bce3a7e --- /dev/null +++ b/test/fixtures/python/raise-statement.diff-A.txt @@ -0,0 +1,16 @@ +{-(Program + (Throw + ([])) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)))) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)) + (Identifier))))-} diff --git a/test/fixtures/python/raise-statement.diff-B.txt b/test/fixtures/python/raise-statement.diff-B.txt new file mode 100644 index 000000000..bab86626c --- /dev/null +++ b/test/fixtures/python/raise-statement.diff-B.txt @@ -0,0 +1,16 @@ +{-(Program + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)))) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)) + (Identifier))) + (Throw + ([])))-} diff --git a/test/fixtures/python/raise-statement.diffA-B.txt b/test/fixtures/python/raise-statement.diffA-B.txt new file mode 100644 index 000000000..4fbf8117f --- /dev/null +++ b/test/fixtures/python/raise-statement.diffA-B.txt @@ -0,0 +1,19 @@ +(Program + (Throw + ( + (Call + (Identifier) + {+(TextElement)+} + {-(TextElement)-} + (Empty)))) + (Throw + ( + (Call + (Identifier) + {+(TextElement)+} + {-(TextElement)-} + (Empty)) + { (Identifier) + ->(Identifier) })) + (Throw + ([]))) diff --git a/test/fixtures/python/raise-statement.diffB-A.txt b/test/fixtures/python/raise-statement.diffB-A.txt new file mode 100644 index 000000000..1fc4c3473 --- /dev/null +++ b/test/fixtures/python/raise-statement.diffB-A.txt @@ -0,0 +1,29 @@ +(Program +{-(Throw + ( + (Call + (Identifier) + (TextElement) + (Empty))))-} +{-(Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)) + (Identifier)))-} + (Throw + ([])) +{+(Throw + ( + (Call + (Identifier) + (TextElement) + (Empty))))+} +{+(Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)) + (Identifier)))+}) diff --git a/test/fixtures/python/raise-statement.parseA.txt b/test/fixtures/python/raise-statement.parseA.txt new file mode 100644 index 000000000..bc3d37f7b --- /dev/null +++ b/test/fixtures/python/raise-statement.parseA.txt @@ -0,0 +1,16 @@ +(Program + (Throw + ([])) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)))) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)) + (Identifier)))) diff --git a/test/fixtures/python/raise-statement.parseB.txt b/test/fixtures/python/raise-statement.parseB.txt new file mode 100644 index 000000000..f05adf394 --- /dev/null +++ b/test/fixtures/python/raise-statement.parseB.txt @@ -0,0 +1,16 @@ +(Program + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)))) + (Throw + ( + (Call + (Identifier) + (TextElement) + (Empty)) + (Identifier))) + (Throw + ([]))) diff --git a/test/fixtures/python/return-statement.diff+A.txt b/test/fixtures/python/return-statement.diff+A.txt new file mode 100644 index 000000000..644e7b7d7 --- /dev/null +++ b/test/fixtures/python/return-statement.diff+A.txt @@ -0,0 +1,13 @@ +{+(Program + (Return + (Empty)) + (Return + ( + (Plus + (Identifier) + ( + (Identifier))) + (Identifier))) + (Return + (Not + (Identifier))))+} diff --git a/test/fixtures/python/return-statement.diff-A.txt b/test/fixtures/python/return-statement.diff-A.txt new file mode 100644 index 000000000..4d5d4736d --- /dev/null +++ b/test/fixtures/python/return-statement.diff-A.txt @@ -0,0 +1,13 @@ +{-(Program + (Return + (Empty)) + (Return + ( + (Plus + (Identifier) + ( + (Identifier))) + (Identifier))) + (Return + (Not + (Identifier))))-} diff --git a/test/fixtures/python/return-statement.diff-B.txt b/test/fixtures/python/return-statement.diff-B.txt new file mode 100644 index 000000000..da7420b90 --- /dev/null +++ b/test/fixtures/python/return-statement.diff-B.txt @@ -0,0 +1,13 @@ +{-(Program + (Return + ( + (Plus + (Identifier) + ( + (Identifier))) + (Identifier))) + (Return + (Empty)) + (Return + (Not + (Identifier))))-} diff --git a/test/fixtures/python/return-statement.diffA-B.txt b/test/fixtures/python/return-statement.diffA-B.txt new file mode 100644 index 000000000..ff3dcc299 --- /dev/null +++ b/test/fixtures/python/return-statement.diffA-B.txt @@ -0,0 +1,19 @@ +(Program + (Return + ( + (Plus + { (Identifier) + ->(Identifier) } + ( + { (Identifier) + ->(Identifier) })) + { (Identifier) + ->(Identifier) })) + (Return + (Empty)) +{+(Return + (Not + (Identifier)))+} +{-(Return + (Not + (Identifier)))-}) diff --git a/test/fixtures/python/return-statement.diffB-A.txt b/test/fixtures/python/return-statement.diffB-A.txt new file mode 100644 index 000000000..1cc3f99e7 --- /dev/null +++ b/test/fixtures/python/return-statement.diffB-A.txt @@ -0,0 +1,22 @@ +(Program +{-(Return + ( + (Plus + (Identifier) + ( + (Identifier))) + (Identifier)))-} + (Return + (Empty)) + (Return + { (Not + (Identifier)) + ->( + (Plus + (Identifier) + ( + (Identifier))) + (Identifier)) }) +{+(Return + (Not + (Identifier)))+}) diff --git a/test/fixtures/python/return-statement.parseA.txt b/test/fixtures/python/return-statement.parseA.txt new file mode 100644 index 000000000..75160a87f --- /dev/null +++ b/test/fixtures/python/return-statement.parseA.txt @@ -0,0 +1,13 @@ +(Program + (Return + (Empty)) + (Return + ( + (Plus + (Identifier) + ( + (Identifier))) + (Identifier))) + (Return + (Not + (Identifier)))) diff --git a/test/fixtures/python/return-statement.parseB.txt b/test/fixtures/python/return-statement.parseB.txt new file mode 100644 index 000000000..bb4743919 --- /dev/null +++ b/test/fixtures/python/return-statement.parseB.txt @@ -0,0 +1,13 @@ +(Program + (Return + ( + (Plus + (Identifier) + ( + (Identifier))) + (Identifier))) + (Return + (Empty)) + (Return + (Not + (Identifier)))) diff --git a/test/fixtures/python/set-comprehension.diff+A.txt b/test/fixtures/python/set-comprehension.diff+A.txt new file mode 100644 index 000000000..f44f999e0 --- /dev/null +++ b/test/fixtures/python/set-comprehension.diff+A.txt @@ -0,0 +1,15 @@ +{+(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))))+} diff --git a/test/fixtures/python/set-comprehension.diff-A.txt b/test/fixtures/python/set-comprehension.diff-A.txt new file mode 100644 index 000000000..08aff59dc --- /dev/null +++ b/test/fixtures/python/set-comprehension.diff-A.txt @@ -0,0 +1,15 @@ +{-(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))))-} diff --git a/test/fixtures/python/set-comprehension.diff-B.txt b/test/fixtures/python/set-comprehension.diff-B.txt new file mode 100644 index 000000000..3425c4b82 --- /dev/null +++ b/test/fixtures/python/set-comprehension.diff-B.txt @@ -0,0 +1,18 @@ +{-(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Plus + (Identifier) + ( + (Integer))) + ( + ( + ( + (Identifier)) + (Identifier)))))-} diff --git a/test/fixtures/python/set-comprehension.diffA-B.txt b/test/fixtures/python/set-comprehension.diffA-B.txt new file mode 100644 index 000000000..0a4b71749 --- /dev/null +++ b/test/fixtures/python/set-comprehension.diffA-B.txt @@ -0,0 +1,24 @@ +(Program + (Comprehension + { (Identifier) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}))) + (Comprehension + { (Identifier) + ->(Plus + (Identifier) + ( + (Integer))) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-})))) diff --git a/test/fixtures/python/set-comprehension.diffB-A.txt b/test/fixtures/python/set-comprehension.diffB-A.txt new file mode 100644 index 000000000..c4db750b2 --- /dev/null +++ b/test/fixtures/python/set-comprehension.diffB-A.txt @@ -0,0 +1,24 @@ +(Program + (Comprehension + { (Identifier) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-}))) + (Comprehension + { (Plus + (Identifier) + ( + (Integer))) + ->(Identifier) } + ( + ( + ( + {+(Identifier)+} + {-(Identifier)-}) + {+(Identifier)+} + {-(Identifier)-})))) diff --git a/test/fixtures/python/set-comprehension.parseA.txt b/test/fixtures/python/set-comprehension.parseA.txt new file mode 100644 index 000000000..d72257bea --- /dev/null +++ b/test/fixtures/python/set-comprehension.parseA.txt @@ -0,0 +1,15 @@ +(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier))))) diff --git a/test/fixtures/python/set-comprehension.parseB.txt b/test/fixtures/python/set-comprehension.parseB.txt new file mode 100644 index 000000000..4146ba18c --- /dev/null +++ b/test/fixtures/python/set-comprehension.parseB.txt @@ -0,0 +1,18 @@ +(Program + (Comprehension + (Identifier) + ( + ( + ( + (Identifier)) + (Identifier)))) + (Comprehension + (Plus + (Identifier) + ( + (Integer))) + ( + ( + ( + (Identifier)) + (Identifier))))) diff --git a/test/fixtures/python/set.diff+A.txt b/test/fixtures/python/set.diff+A.txt new file mode 100644 index 000000000..5c4a21994 --- /dev/null +++ b/test/fixtures/python/set.diff+A.txt @@ -0,0 +1,6 @@ +{+(Program + (Hash) + (Set + (Integer) + (Integer) + (Integer)))+} diff --git a/test/fixtures/python/set.diff-A.txt b/test/fixtures/python/set.diff-A.txt new file mode 100644 index 000000000..650a8fb35 --- /dev/null +++ b/test/fixtures/python/set.diff-A.txt @@ -0,0 +1,6 @@ +{-(Program + (Hash) + (Set + (Integer) + (Integer) + (Integer)))-} diff --git a/test/fixtures/python/set.diff-B.txt b/test/fixtures/python/set.diff-B.txt new file mode 100644 index 000000000..745982c25 --- /dev/null +++ b/test/fixtures/python/set.diff-B.txt @@ -0,0 +1,7 @@ +{-(Program + (Set + (Integer)) + (Set + (Integer) + (Integer) + (Integer)))-} diff --git a/test/fixtures/python/set.diffA-B.txt b/test/fixtures/python/set.diffA-B.txt new file mode 100644 index 000000000..ebac3ba0d --- /dev/null +++ b/test/fixtures/python/set.diffA-B.txt @@ -0,0 +1,12 @@ +(Program +{+(Set + (Integer))+} +{+(Set + (Integer) + (Integer) + (Integer))+} +{-(Hash)-} +{-(Set + (Integer) + (Integer) + (Integer))-}) diff --git a/test/fixtures/python/set.diffB-A.txt b/test/fixtures/python/set.diffB-A.txt new file mode 100644 index 000000000..26ee5004e --- /dev/null +++ b/test/fixtures/python/set.diffB-A.txt @@ -0,0 +1,10 @@ +(Program +{+(Hash)+} + (Set + (Integer) + {+(Integer)+} + {+(Integer)+}) +{-(Set + (Integer) + (Integer) + (Integer))-}) diff --git a/test/fixtures/python/set.parseA.txt b/test/fixtures/python/set.parseA.txt new file mode 100644 index 000000000..d27462208 --- /dev/null +++ b/test/fixtures/python/set.parseA.txt @@ -0,0 +1,6 @@ +(Program + (Hash) + (Set + (Integer) + (Integer) + (Integer))) diff --git a/test/fixtures/python/set.parseB.txt b/test/fixtures/python/set.parseB.txt new file mode 100644 index 000000000..73c4a2cba --- /dev/null +++ b/test/fixtures/python/set.parseB.txt @@ -0,0 +1,7 @@ +(Program + (Set + (Integer)) + (Set + (Integer) + (Integer) + (Integer))) diff --git a/test/fixtures/python/slice.diff+A.txt b/test/fixtures/python/slice.diff+A.txt new file mode 100644 index 000000000..30733deb5 --- /dev/null +++ b/test/fixtures/python/slice.diff+A.txt @@ -0,0 +1,26 @@ +{+(Program + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis)) + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))))+} diff --git a/test/fixtures/python/slice.diff-A.txt b/test/fixtures/python/slice.diff-A.txt new file mode 100644 index 000000000..ad949f9e6 --- /dev/null +++ b/test/fixtures/python/slice.diff-A.txt @@ -0,0 +1,26 @@ +{-(Program + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis)) + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))))-} diff --git a/test/fixtures/python/slice.diff-B.txt b/test/fixtures/python/slice.diff-B.txt new file mode 100644 index 000000000..a500552f5 --- /dev/null +++ b/test/fixtures/python/slice.diff-B.txt @@ -0,0 +1,26 @@ +{-(Program + (Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis)) + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))))-} diff --git a/test/fixtures/python/slice.diffA-B.txt b/test/fixtures/python/slice.diffA-B.txt new file mode 100644 index 000000000..55b56385f --- /dev/null +++ b/test/fixtures/python/slice.diffA-B.txt @@ -0,0 +1,41 @@ +(Program +{+(Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis))+} + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))) + (Subscript + { (Identifier) + ->(Identifier) } + (Enumeration + { (Integer) + ->(Integer) } + (Empty) + (Empty))) +{+(Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty)))+} +{-(Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis))-} +{-(Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty)))-}) diff --git a/test/fixtures/python/slice.diffB-A.txt b/test/fixtures/python/slice.diffB-A.txt new file mode 100644 index 000000000..fafbebcd6 --- /dev/null +++ b/test/fixtures/python/slice.diffB-A.txt @@ -0,0 +1,36 @@ +(Program +{-(Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis))-} + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))) + (Subscript + { (Identifier) + ->(Identifier) } + (Enumeration + { (Integer) + ->(Integer) } + (Empty) + (Empty))) +{+(Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis))+} + (Subscript + { (Identifier) + ->(Identifier) } + (Enumeration + (Empty) + (Empty) + (Empty)))) diff --git a/test/fixtures/python/slice.parseA.txt b/test/fixtures/python/slice.parseA.txt new file mode 100644 index 000000000..00c917b88 --- /dev/null +++ b/test/fixtures/python/slice.parseA.txt @@ -0,0 +1,26 @@ +(Program + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis)) + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty)))) diff --git a/test/fixtures/python/slice.parseB.txt b/test/fixtures/python/slice.parseB.txt new file mode 100644 index 000000000..86e99a046 --- /dev/null +++ b/test/fixtures/python/slice.parseB.txt @@ -0,0 +1,26 @@ +(Program + (Subscript + (Identifier) + (Enumeration + (Integer) + (Integer) + (Empty)) + (Ellipsis)) + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Integer) + (Empty) + (Empty))) + (Subscript + (Identifier) + (Enumeration + (Empty) + (Empty) + (Empty)))) diff --git a/test/fixtures/python/string.diff+A.txt b/test/fixtures/python/string.diff+A.txt new file mode 100644 index 000000000..c756a7070 --- /dev/null +++ b/test/fixtures/python/string.diff+A.txt @@ -0,0 +1,10 @@ +{+(Program + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement))+} diff --git a/test/fixtures/python/string.diff-A.txt b/test/fixtures/python/string.diff-A.txt new file mode 100644 index 000000000..3c2db32c7 --- /dev/null +++ b/test/fixtures/python/string.diff-A.txt @@ -0,0 +1,10 @@ +{-(Program + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement))-} diff --git a/test/fixtures/python/string.diff-B.txt b/test/fixtures/python/string.diff-B.txt new file mode 100644 index 000000000..8db0080a8 --- /dev/null +++ b/test/fixtures/python/string.diff-B.txt @@ -0,0 +1,9 @@ +{-(Program + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement))-} diff --git a/test/fixtures/python/string.diffA-B.txt b/test/fixtures/python/string.diffA-B.txt new file mode 100644 index 000000000..afbe89b51 --- /dev/null +++ b/test/fixtures/python/string.diffA-B.txt @@ -0,0 +1,16 @@ +(Program +{+(TextElement)+} + (TextElement) +{+(TextElement)+} +{+(TextElement)+} +{+(TextElement)+} +{+(TextElement)+} +{+(TextElement)+} +{-(TextElement)-} +{-(TextElement)-} +{-(TextElement)-} +{-(TextElement)-} +{-(TextElement)-} +{-(TextElement)-} + (TextElement) +{-(TextElement)-}) diff --git a/test/fixtures/python/string.diffB-A.txt b/test/fixtures/python/string.diffB-A.txt new file mode 100644 index 000000000..3c7a825d6 --- /dev/null +++ b/test/fixtures/python/string.diffB-A.txt @@ -0,0 +1,16 @@ +(Program +{-(TextElement)-} + (TextElement) +{+(TextElement)+} +{+(TextElement)+} +{+(TextElement)+} +{+(TextElement)+} +{+(TextElement)+} +{+(TextElement)+} +{-(TextElement)-} +{-(TextElement)-} +{-(TextElement)-} +{-(TextElement)-} +{-(TextElement)-} + (TextElement) +{+(TextElement)+}) diff --git a/test/fixtures/python/string.parseA.txt b/test/fixtures/python/string.parseA.txt new file mode 100644 index 000000000..576378c44 --- /dev/null +++ b/test/fixtures/python/string.parseA.txt @@ -0,0 +1,10 @@ +(Program + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement)) diff --git a/test/fixtures/python/string.parseB.txt b/test/fixtures/python/string.parseB.txt new file mode 100644 index 000000000..a73b5ae21 --- /dev/null +++ b/test/fixtures/python/string.parseB.txt @@ -0,0 +1,9 @@ +(Program + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement) + (TextElement)) diff --git a/test/fixtures/ruby/while.diff+B.txt b/test/fixtures/python/subscript.diff+A.txt similarity index 79% rename from test/fixtures/ruby/while.diff+B.txt rename to test/fixtures/python/subscript.diff+A.txt index a8100afae..ad714ee01 100644 --- a/test/fixtures/ruby/while.diff+B.txt +++ b/test/fixtures/python/subscript.diff+A.txt @@ -1,4 +1,4 @@ {+(Program - (While + (Subscript (Identifier) (Identifier)))+} diff --git a/test/fixtures/python/subscript.diff-A.txt b/test/fixtures/python/subscript.diff-A.txt new file mode 100644 index 000000000..fd27202c0 --- /dev/null +++ b/test/fixtures/python/subscript.diff-A.txt @@ -0,0 +1,4 @@ +{-(Program + (Subscript + (Identifier) + (Identifier)))-} diff --git a/test/fixtures/python/subscript.diff-B.txt b/test/fixtures/python/subscript.diff-B.txt new file mode 100644 index 000000000..fd27202c0 --- /dev/null +++ b/test/fixtures/python/subscript.diff-B.txt @@ -0,0 +1,4 @@ +{-(Program + (Subscript + (Identifier) + (Identifier)))-} diff --git a/test/fixtures/python/subscript.diffA-B.txt b/test/fixtures/python/subscript.diffA-B.txt new file mode 100644 index 000000000..3b930367e --- /dev/null +++ b/test/fixtures/python/subscript.diffA-B.txt @@ -0,0 +1,6 @@ +(Program + (Subscript + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + {-(Identifier)-})) diff --git a/test/fixtures/python/subscript.diffB-A.txt b/test/fixtures/python/subscript.diffB-A.txt new file mode 100644 index 000000000..3b930367e --- /dev/null +++ b/test/fixtures/python/subscript.diffB-A.txt @@ -0,0 +1,6 @@ +(Program + (Subscript + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + {-(Identifier)-})) diff --git a/test/fixtures/python/subscript.parseA.txt b/test/fixtures/python/subscript.parseA.txt new file mode 100644 index 000000000..d51465cb0 --- /dev/null +++ b/test/fixtures/python/subscript.parseA.txt @@ -0,0 +1,4 @@ +(Program + (Subscript + (Identifier) + (Identifier))) diff --git a/test/fixtures/python/subscript.parseB.txt b/test/fixtures/python/subscript.parseB.txt new file mode 100644 index 000000000..d51465cb0 --- /dev/null +++ b/test/fixtures/python/subscript.parseB.txt @@ -0,0 +1,4 @@ +(Program + (Subscript + (Identifier) + (Identifier))) diff --git a/test/fixtures/python/try-statement.diff+A.txt b/test/fixtures/python/try-statement.diff+A.txt new file mode 100644 index 000000000..a762d4629 --- /dev/null +++ b/test/fixtures/python/try-statement.diff+A.txt @@ -0,0 +1,37 @@ +{+(Program + (Try + (Identifier) + (Identifier) + (Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier) + (Identifier))) + (Catch + ( + (Identifier) + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + ( + (Identifier) + (Identifier)) + ([]))) + (Try + (Identifier) + (Identifier) + (Finally + ( + (Identifier) + (Identifier)))))+} diff --git a/test/fixtures/python/try-statement.diff-A.txt b/test/fixtures/python/try-statement.diff-A.txt new file mode 100644 index 000000000..8daf50897 --- /dev/null +++ b/test/fixtures/python/try-statement.diff-A.txt @@ -0,0 +1,37 @@ +{-(Program + (Try + (Identifier) + (Identifier) + (Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier) + (Identifier))) + (Catch + ( + (Identifier) + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + ( + (Identifier) + (Identifier)) + ([]))) + (Try + (Identifier) + (Identifier) + (Finally + ( + (Identifier) + (Identifier)))))-} diff --git a/test/fixtures/python/try-statement.diff-B.txt b/test/fixtures/python/try-statement.diff-B.txt new file mode 100644 index 000000000..b1a029ada --- /dev/null +++ b/test/fixtures/python/try-statement.diff-B.txt @@ -0,0 +1,30 @@ +{-(Program + (Try + (Identifier) + (Finally + ( + (Identifier)))) + (Try + (Identifier) + (Catch + ( + (Identifier) + (Identifier)) + ([])) + (Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier))) + (Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + ( + (Identifier)) + ([]))))-} diff --git a/test/fixtures/python/try-statement.diffA-B.txt b/test/fixtures/python/try-statement.diffA-B.txt new file mode 100644 index 000000000..b45ff16b3 --- /dev/null +++ b/test/fixtures/python/try-statement.diffA-B.txt @@ -0,0 +1,64 @@ +(Program + (Try + { (Identifier) + ->(Identifier) } + {+(Finally + ( + (Identifier)))+} + {-(Identifier)-} + {-(Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([]))-} + {-(Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier) + (Identifier)))-} + {-(Catch + ( + (Identifier) + (Identifier) + (Identifier) + (Identifier)) + ([]))-} + {-(Catch + ( + (Identifier) + (Identifier)) + ([]))-}) + (Try + { (Identifier) + ->(Identifier) } + {+(Catch + ( + (Identifier) + (Identifier)) + ([]))+} + {+(Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier)))+} + {+(Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([]))+} + {+(Catch + ( + (Identifier)) + ([]))+} + {-(Identifier)-} + {-(Finally + ( + (Identifier) + (Identifier)))-})) diff --git a/test/fixtures/python/try-statement.diffB-A.txt b/test/fixtures/python/try-statement.diffB-A.txt new file mode 100644 index 000000000..c3a0cebe2 --- /dev/null +++ b/test/fixtures/python/try-statement.diffB-A.txt @@ -0,0 +1,64 @@ +(Program + (Try + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + {+(Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([]))+} + {+(Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier) + (Identifier)))+} + {+(Catch + ( + (Identifier) + (Identifier) + (Identifier) + (Identifier)) + ([]))+} + {+(Catch + ( + (Identifier) + (Identifier)) + ([]))+} + {-(Finally + ( + (Identifier)))-}) + (Try + { (Identifier) + ->(Identifier) } + {+(Identifier)+} + {+(Finally + ( + (Identifier) + (Identifier)))+} + {-(Catch + ( + (Identifier) + (Identifier)) + ([]))-} + {-(Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier)))-} + {-(Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([]))-} + {-(Catch + ( + (Identifier)) + ([]))-})) diff --git a/test/fixtures/python/try-statement.parseA.txt b/test/fixtures/python/try-statement.parseA.txt new file mode 100644 index 000000000..027fdec43 --- /dev/null +++ b/test/fixtures/python/try-statement.parseA.txt @@ -0,0 +1,37 @@ +(Program + (Try + (Identifier) + (Identifier) + (Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier) + (Identifier))) + (Catch + ( + (Identifier) + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + ( + (Identifier) + (Identifier)) + ([]))) + (Try + (Identifier) + (Identifier) + (Finally + ( + (Identifier) + (Identifier))))) diff --git a/test/fixtures/python/try-statement.parseB.txt b/test/fixtures/python/try-statement.parseB.txt new file mode 100644 index 000000000..1ff1030ff --- /dev/null +++ b/test/fixtures/python/try-statement.parseB.txt @@ -0,0 +1,30 @@ +(Program + (Try + (Identifier) + (Finally + ( + (Identifier)))) + (Try + (Identifier) + (Catch + ( + (Identifier) + (Identifier)) + ([])) + (Catch + (Let + (Identifier) + (Identifier) + (Empty)) + ( + (Identifier))) + (Catch + ( + (Identifier) + (Identifier) + (Identifier)) + ([])) + (Catch + ( + (Identifier)) + ([])))) diff --git a/test/fixtures/ruby/bitwise-operator.diff+B.txt b/test/fixtures/python/tuple.diff+A.txt similarity index 61% rename from test/fixtures/ruby/bitwise-operator.diff+B.txt rename to test/fixtures/python/tuple.diff+A.txt index 85c5a14b4..68252bbf7 100644 --- a/test/fixtures/ruby/bitwise-operator.diff+B.txt +++ b/test/fixtures/python/tuple.diff+A.txt @@ -1,9 +1,8 @@ {+(Program - (Binary + (Tuple (Identifier) - (Other "&") (Identifier)) - (Binary + (Tuple + (Identifier) (Identifier) - (Other "<<") (Identifier)))+} diff --git a/test/fixtures/python/tuple.diff-A.txt b/test/fixtures/python/tuple.diff-A.txt new file mode 100644 index 000000000..15557d2d3 --- /dev/null +++ b/test/fixtures/python/tuple.diff-A.txt @@ -0,0 +1,8 @@ +{-(Program + (Tuple + (Identifier) + (Identifier)) + (Tuple + (Identifier) + (Identifier) + (Identifier)))-} diff --git a/test/fixtures/python/tuple.diff-B.txt b/test/fixtures/python/tuple.diff-B.txt new file mode 100644 index 000000000..401ec5514 --- /dev/null +++ b/test/fixtures/python/tuple.diff-B.txt @@ -0,0 +1,10 @@ +{-(Program + (Tuple + (Identifier) + (Identifier) + (Identifier)) + (Tuple + (Identifier) + (Identifier)) + (Tuple + (Identifier)))-} diff --git a/test/fixtures/python/tuple.diffA-B.txt b/test/fixtures/python/tuple.diffA-B.txt new file mode 100644 index 000000000..9ee377f8c --- /dev/null +++ b/test/fixtures/python/tuple.diffA-B.txt @@ -0,0 +1,15 @@ +(Program +{+(Tuple + (Identifier) + (Identifier) + (Identifier))+} + (Tuple + {-(Identifier)-} + (Identifier) + {+(Identifier)+}) +{+(Tuple + (Identifier))+} +{-(Tuple + (Identifier) + (Identifier) + (Identifier))-}) diff --git a/test/fixtures/python/tuple.diffB-A.txt b/test/fixtures/python/tuple.diffB-A.txt new file mode 100644 index 000000000..6ea65742b --- /dev/null +++ b/test/fixtures/python/tuple.diffB-A.txt @@ -0,0 +1,13 @@ +(Program +{+(Tuple + (Identifier) + (Identifier))+} + (Tuple + (Identifier) + (Identifier) + (Identifier)) +{-(Tuple + (Identifier) + (Identifier))-} +{-(Tuple + (Identifier))-}) diff --git a/test/fixtures/python/tuple.parseA.txt b/test/fixtures/python/tuple.parseA.txt new file mode 100644 index 000000000..f935830d8 --- /dev/null +++ b/test/fixtures/python/tuple.parseA.txt @@ -0,0 +1,8 @@ +(Program + (Tuple + (Identifier) + (Identifier)) + (Tuple + (Identifier) + (Identifier) + (Identifier))) diff --git a/test/fixtures/python/tuple.parseB.txt b/test/fixtures/python/tuple.parseB.txt new file mode 100644 index 000000000..83a8c36a4 --- /dev/null +++ b/test/fixtures/python/tuple.parseB.txt @@ -0,0 +1,10 @@ +(Program + (Tuple + (Identifier) + (Identifier) + (Identifier)) + (Tuple + (Identifier) + (Identifier)) + (Tuple + (Identifier))) diff --git a/test/fixtures/ruby/if.diff+B.txt b/test/fixtures/python/unary-operator.diff+A.txt similarity index 56% rename from test/fixtures/ruby/if.diff+B.txt rename to test/fixtures/python/unary-operator.diff+A.txt index 04aa2c865..df65c3b40 100644 --- a/test/fixtures/ruby/if.diff+B.txt +++ b/test/fixtures/python/unary-operator.diff+A.txt @@ -1,5 +1,6 @@ {+(Program - (If + (Negate (Identifier)) - (If + (Identifier) + (Complement (Identifier)))+} diff --git a/test/fixtures/python/unary-operator.diff-A.txt b/test/fixtures/python/unary-operator.diff-A.txt new file mode 100644 index 000000000..ba8899327 --- /dev/null +++ b/test/fixtures/python/unary-operator.diff-A.txt @@ -0,0 +1,6 @@ +{-(Program + (Negate + (Identifier)) + (Identifier) + (Complement + (Identifier)))-} diff --git a/test/fixtures/python/unary-operator.diff-B.txt b/test/fixtures/python/unary-operator.diff-B.txt new file mode 100644 index 000000000..24cb60646 --- /dev/null +++ b/test/fixtures/python/unary-operator.diff-B.txt @@ -0,0 +1,6 @@ +{-(Program + (Complement + (Identifier)) + (Negate + (Identifier)) + (Identifier))-} diff --git a/test/fixtures/python/unary-operator.diffA-B.txt b/test/fixtures/python/unary-operator.diffA-B.txt new file mode 100644 index 000000000..8c1ef985b --- /dev/null +++ b/test/fixtures/python/unary-operator.diffA-B.txt @@ -0,0 +1,11 @@ +(Program +{+(Complement + (Identifier))+} +{+(Negate + (Identifier))+} +{+(Identifier)+} +{-(Negate + (Identifier))-} +{-(Identifier)-} +{-(Complement + (Identifier))-}) diff --git a/test/fixtures/python/unary-operator.diffB-A.txt b/test/fixtures/python/unary-operator.diffB-A.txt new file mode 100644 index 000000000..ade4a0bac --- /dev/null +++ b/test/fixtures/python/unary-operator.diffB-A.txt @@ -0,0 +1,10 @@ +(Program +{+(Negate + (Identifier))+} +{+(Identifier)+} + (Complement + { (Identifier) + ->(Identifier) }) +{-(Negate + (Identifier))-} +{-(Identifier)-}) diff --git a/test/fixtures/python/unary-operator.parseA.txt b/test/fixtures/python/unary-operator.parseA.txt new file mode 100644 index 000000000..1f12cb383 --- /dev/null +++ b/test/fixtures/python/unary-operator.parseA.txt @@ -0,0 +1,6 @@ +(Program + (Negate + (Identifier)) + (Identifier) + (Complement + (Identifier))) diff --git a/test/fixtures/python/unary-operator.parseB.txt b/test/fixtures/python/unary-operator.parseB.txt new file mode 100644 index 000000000..4fc5fea1c --- /dev/null +++ b/test/fixtures/python/unary-operator.parseB.txt @@ -0,0 +1,6 @@ +(Program + (Complement + (Identifier)) + (Negate + (Identifier)) + (Identifier)) diff --git a/test/fixtures/python/while-statement.diff+A.txt b/test/fixtures/python/while-statement.diff+A.txt new file mode 100644 index 000000000..e115371f3 --- /dev/null +++ b/test/fixtures/python/while-statement.diff+A.txt @@ -0,0 +1,10 @@ +{+(Program + (While + (Identifier) + ( + (NoOp + (Identifier)) + (Break + (Identifier)) + (Continue + (Identifier)))))+} diff --git a/test/fixtures/python/while-statement.diff-A.txt b/test/fixtures/python/while-statement.diff-A.txt new file mode 100644 index 000000000..e9fc1cf7e --- /dev/null +++ b/test/fixtures/python/while-statement.diff-A.txt @@ -0,0 +1,10 @@ +{-(Program + (While + (Identifier) + ( + (NoOp + (Identifier)) + (Break + (Identifier)) + (Continue + (Identifier)))))-} diff --git a/test/fixtures/python/while-statement.diff-B.txt b/test/fixtures/python/while-statement.diff-B.txt new file mode 100644 index 000000000..fb5ef33ac --- /dev/null +++ b/test/fixtures/python/while-statement.diff-B.txt @@ -0,0 +1,10 @@ +{-(Program + (While + (Identifier) + ( + (Break + (Identifier)) + (Continue + (Identifier)) + (NoOp + (Identifier)))))-} diff --git a/test/fixtures/python/while-statement.diffA-B.txt b/test/fixtures/python/while-statement.diffA-B.txt new file mode 100644 index 000000000..0f52bf113 --- /dev/null +++ b/test/fixtures/python/while-statement.diffA-B.txt @@ -0,0 +1,17 @@ +(Program + (While + { (Identifier) + ->(Identifier) } + ( + { (NoOp + (Identifier)) + ->(Break + (Identifier)) } + { (Break + (Identifier)) + ->(Continue + (Identifier)) } + { (Continue + (Identifier)) + ->(NoOp + (Identifier)) }))) diff --git a/test/fixtures/python/while-statement.diffB-A.txt b/test/fixtures/python/while-statement.diffB-A.txt new file mode 100644 index 000000000..7216e8f4a --- /dev/null +++ b/test/fixtures/python/while-statement.diffB-A.txt @@ -0,0 +1,17 @@ +(Program + (While + { (Identifier) + ->(Identifier) } + ( + { (Break + (Identifier)) + ->(NoOp + (Identifier)) } + { (Continue + (Identifier)) + ->(Break + (Identifier)) } + { (NoOp + (Identifier)) + ->(Continue + (Identifier)) }))) diff --git a/test/fixtures/python/while-statement.parseA.txt b/test/fixtures/python/while-statement.parseA.txt new file mode 100644 index 000000000..aca83c844 --- /dev/null +++ b/test/fixtures/python/while-statement.parseA.txt @@ -0,0 +1,10 @@ +(Program + (While + (Identifier) + ( + (NoOp + (Identifier)) + (Break + (Identifier)) + (Continue + (Identifier))))) diff --git a/test/fixtures/python/while-statement.parseB.txt b/test/fixtures/python/while-statement.parseB.txt new file mode 100644 index 000000000..878698fbd --- /dev/null +++ b/test/fixtures/python/while-statement.parseB.txt @@ -0,0 +1,10 @@ +(Program + (While + (Identifier) + ( + (Break + (Identifier)) + (Continue + (Identifier)) + (NoOp + (Identifier))))) diff --git a/test/fixtures/ruby/rescue-empty.diff+B.txt b/test/fixtures/python/with-statement.diff+A.txt similarity index 63% rename from test/fixtures/ruby/rescue-empty.diff+B.txt rename to test/fixtures/python/with-statement.diff+A.txt index f7b102157..2b241c5e0 100644 --- a/test/fixtures/ruby/rescue-empty.diff+B.txt +++ b/test/fixtures/python/with-statement.diff+A.txt @@ -1,5 +1,6 @@ {+(Program - (Begin + (Let (Identifier) - (Rescue + (Identifier) + ( (Identifier))))+} diff --git a/test/fixtures/python/with-statement.diff-A.txt b/test/fixtures/python/with-statement.diff-A.txt new file mode 100644 index 000000000..8ec0dea53 --- /dev/null +++ b/test/fixtures/python/with-statement.diff-A.txt @@ -0,0 +1,6 @@ +{-(Program + (Let + (Identifier) + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/with-statement.diff-B.txt b/test/fixtures/python/with-statement.diff-B.txt new file mode 100644 index 000000000..8ec0dea53 --- /dev/null +++ b/test/fixtures/python/with-statement.diff-B.txt @@ -0,0 +1,6 @@ +{-(Program + (Let + (Identifier) + (Identifier) + ( + (Identifier))))-} diff --git a/test/fixtures/python/with-statement.diffA-B.txt b/test/fixtures/python/with-statement.diffA-B.txt new file mode 100644 index 000000000..7e25d1e9e --- /dev/null +++ b/test/fixtures/python/with-statement.diffA-B.txt @@ -0,0 +1,9 @@ +(Program + (Let + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) } + ( + { (Identifier) + ->(Identifier) }))) diff --git a/test/fixtures/python/with-statement.diffB-A.txt b/test/fixtures/python/with-statement.diffB-A.txt new file mode 100644 index 000000000..7e25d1e9e --- /dev/null +++ b/test/fixtures/python/with-statement.diffB-A.txt @@ -0,0 +1,9 @@ +(Program + (Let + { (Identifier) + ->(Identifier) } + { (Identifier) + ->(Identifier) } + ( + { (Identifier) + ->(Identifier) }))) diff --git a/test/fixtures/python/with-statement.parseA.txt b/test/fixtures/python/with-statement.parseA.txt new file mode 100644 index 000000000..9491e1fd5 --- /dev/null +++ b/test/fixtures/python/with-statement.parseA.txt @@ -0,0 +1,6 @@ +(Program + (Let + (Identifier) + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/python/with-statement.parseB.txt b/test/fixtures/python/with-statement.parseB.txt new file mode 100644 index 000000000..9491e1fd5 --- /dev/null +++ b/test/fixtures/python/with-statement.parseB.txt @@ -0,0 +1,6 @@ +(Program + (Let + (Identifier) + (Identifier) + ( + (Identifier)))) diff --git a/test/fixtures/python/with.diff+A.txt b/test/fixtures/python/with.diff+A.txt new file mode 100644 index 000000000..91e697718 --- /dev/null +++ b/test/fixtures/python/with.diff+A.txt @@ -0,0 +1,20 @@ +{+(Program + (Let + (Identifier) + (Call + (Identifier) + (Identifier) + (TextElement) + (Empty)) + ( + (Assignment + (Identifier) + (Boolean)) + (ForEach + ( + (Identifier)) + (Identifier) + ( + (Assignment + (Identifier) + (Boolean)))))))+} diff --git a/test/fixtures/python/with.diff-A.txt b/test/fixtures/python/with.diff-A.txt new file mode 100644 index 000000000..b4ad484ea --- /dev/null +++ b/test/fixtures/python/with.diff-A.txt @@ -0,0 +1,20 @@ +{-(Program + (Let + (Identifier) + (Call + (Identifier) + (Identifier) + (TextElement) + (Empty)) + ( + (Assignment + (Identifier) + (Boolean)) + (ForEach + ( + (Identifier)) + (Identifier) + ( + (Assignment + (Identifier) + (Boolean)))))))-} diff --git a/test/fixtures/python/with.diff-B.txt b/test/fixtures/python/with.diff-B.txt new file mode 100644 index 000000000..054ec0f71 --- /dev/null +++ b/test/fixtures/python/with.diff-B.txt @@ -0,0 +1,34 @@ +{-(Program + (Let + (Empty) + (MemberAccess + (Identifier) + (Identifier)) + ( + (Assignment + (Identifier) + (Boolean)))) + ( + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ([])) + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ( + (Identifier)))))-} diff --git a/test/fixtures/python/with.diffA-B.txt b/test/fixtures/python/with.diffA-B.txt new file mode 100644 index 000000000..3e5b7c27a --- /dev/null +++ b/test/fixtures/python/with.diffA-B.txt @@ -0,0 +1,48 @@ +(Program + (Let + { (Identifier) + ->(Empty) } + { (Call + (Identifier) + (Identifier) + (TextElement) + (Empty)) + ->(MemberAccess + (Identifier) + (Identifier)) } + ( + (Assignment + (Identifier) + (Boolean)) + {-(ForEach + ( + (Identifier)) + (Identifier) + ( + (Assignment + (Identifier) + (Boolean))))-})) +{+( + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ([])) + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ( + (Identifier))))+}) diff --git a/test/fixtures/python/with.diffB-A.txt b/test/fixtures/python/with.diffB-A.txt new file mode 100644 index 000000000..0672f113d --- /dev/null +++ b/test/fixtures/python/with.diffB-A.txt @@ -0,0 +1,48 @@ +(Program + (Let + { (Empty) + ->(Identifier) } + { (MemberAccess + (Identifier) + (Identifier)) + ->(Call + (Identifier) + (Identifier) + (TextElement) + (Empty)) } + ( + (Assignment + (Identifier) + (Boolean)) + {+(ForEach + ( + (Identifier)) + (Identifier) + ( + (Assignment + (Identifier) + (Boolean))))+})) +{-( + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ([])) + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ( + (Identifier))))-}) diff --git a/test/fixtures/python/with.parseA.txt b/test/fixtures/python/with.parseA.txt new file mode 100644 index 000000000..3f73411a5 --- /dev/null +++ b/test/fixtures/python/with.parseA.txt @@ -0,0 +1,20 @@ +(Program + (Let + (Identifier) + (Call + (Identifier) + (Identifier) + (TextElement) + (Empty)) + ( + (Assignment + (Identifier) + (Boolean)) + (ForEach + ( + (Identifier)) + (Identifier) + ( + (Assignment + (Identifier) + (Boolean))))))) diff --git a/test/fixtures/python/with.parseB.txt b/test/fixtures/python/with.parseB.txt new file mode 100644 index 000000000..44dbdfaee --- /dev/null +++ b/test/fixtures/python/with.parseB.txt @@ -0,0 +1,34 @@ +(Program + (Let + (Empty) + (MemberAccess + (Identifier) + (Identifier)) + ( + (Assignment + (Identifier) + (Boolean)))) + ( + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ([])) + (Let + (Empty) + (Call + (MemberAccess + (Identifier) + (Identifier)) + (Identifier) + (TextElement) + (Identifier) + (Empty)) + ( + (Identifier))))) diff --git a/test/fixtures/python/yield.diff+A.txt b/test/fixtures/python/yield.diff+A.txt new file mode 100644 index 000000000..92e79d877 --- /dev/null +++ b/test/fixtures/python/yield.diff+A.txt @@ -0,0 +1,3 @@ +{+(Program + (Yield + (Empty)))+} diff --git a/test/fixtures/python/yield.diff-A.txt b/test/fixtures/python/yield.diff-A.txt new file mode 100644 index 000000000..11747d59a --- /dev/null +++ b/test/fixtures/python/yield.diff-A.txt @@ -0,0 +1,3 @@ +{-(Program + (Yield + (Empty)))-} diff --git a/test/fixtures/python/yield.diff-B.txt b/test/fixtures/python/yield.diff-B.txt new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/python/yield.diffA-B.txt b/test/fixtures/python/yield.diffA-B.txt new file mode 100644 index 000000000..11747d59a --- /dev/null +++ b/test/fixtures/python/yield.diffA-B.txt @@ -0,0 +1,3 @@ +{-(Program + (Yield + (Empty)))-} diff --git a/test/fixtures/python/yield.diffB-A.txt b/test/fixtures/python/yield.diffB-A.txt new file mode 100644 index 000000000..92e79d877 --- /dev/null +++ b/test/fixtures/python/yield.diffB-A.txt @@ -0,0 +1,3 @@ +{+(Program + (Yield + (Empty)))+} diff --git a/test/fixtures/python/yield.parseA.txt b/test/fixtures/python/yield.parseA.txt new file mode 100644 index 000000000..b8748d919 --- /dev/null +++ b/test/fixtures/python/yield.parseA.txt @@ -0,0 +1,3 @@ +(Program + (Yield + (Empty))) diff --git a/test/fixtures/python/yield.parseB.txt b/test/fixtures/python/yield.parseB.txt new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/ruby/array.diff+B.txt b/test/fixtures/ruby/array.diff+B.txt deleted file mode 100644 index 54990458e..000000000 --- a/test/fixtures/ruby/array.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ArrayLiteral - (StringLiteral) - (StringLiteral) - (StringLiteral)))+} diff --git a/test/fixtures/ruby/assignment.diff+B.txt b/test/fixtures/ruby/assignment.diff+B.txt deleted file mode 100644 index 756e5c806..000000000 --- a/test/fixtures/ruby/assignment.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (Assignment - (Identifier) - (IntegerLiteral)))+} diff --git a/test/fixtures/ruby/begin-block.diff+B.txt b/test/fixtures/ruby/begin-block.diff+B.txt deleted file mode 100644 index e24faffc5..000000000 --- a/test/fixtures/ruby/begin-block.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (Identifier) - (BeginBlock - (Identifier)))+} diff --git a/test/fixtures/ruby/begin.diff+B.txt b/test/fixtures/ruby/begin.diff+B.txt deleted file mode 100644 index eba658791..000000000 --- a/test/fixtures/ruby/begin.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Method - (Identifier) - (Begin - (MethodCall - (Identifier) - (StringLiteral)))))+} diff --git a/test/fixtures/ruby/boolean-operator.diff+B.txt b/test/fixtures/ruby/boolean-operator.diff+B.txt deleted file mode 100644 index 421ff9e23..000000000 --- a/test/fixtures/ruby/boolean-operator.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (Binary - (Identifier) - (Other "&&") - (Identifier)))+} diff --git a/test/fixtures/ruby/class.diff+B.txt b/test/fixtures/ruby/class.diff+B.txt deleted file mode 100644 index 2c92756e3..000000000 --- a/test/fixtures/ruby/class.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (Class - (Constant) - (Method - (Identifier))))+} diff --git a/test/fixtures/ruby/comment.diff+B.txt b/test/fixtures/ruby/comment.diff+B.txt deleted file mode 100644 index d81beabb3..000000000 --- a/test/fixtures/ruby/comment.diff+B.txt +++ /dev/null @@ -1,2 +0,0 @@ -{+(Program - (Comment))+} diff --git a/test/fixtures/ruby/comparision-operator.diff+B.txt b/test/fixtures/ruby/comparision-operator.diff+B.txt deleted file mode 100644 index 14d14f3e4..000000000 --- a/test/fixtures/ruby/comparision-operator.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Binary - (Identifier) - (Other "<=") - (Identifier)) - (Binary - (Identifier) - (Other ">=") - (Identifier)))+} diff --git a/test/fixtures/ruby/conditional-assignment.diff+B.txt b/test/fixtures/ruby/conditional-assignment.diff+B.txt deleted file mode 100644 index cdc785e1d..000000000 --- a/test/fixtures/ruby/conditional-assignment.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (OperatorAssignment - (Identifier) - (IntegerLiteral)))+} diff --git a/test/fixtures/ruby/delimiter.diff+B.txt b/test/fixtures/ruby/delimiter.diff+B.txt deleted file mode 100644 index 5bf40e93c..000000000 --- a/test/fixtures/ruby/delimiter.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (StringLiteral) - (StringLiteral) - (StringLiteral) - (StringLiteral) - (StringLiteral) - (StringLiteral))+} diff --git a/test/fixtures/ruby/element-reference.diff+B.txt b/test/fixtures/ruby/element-reference.diff+B.txt deleted file mode 100644 index 781ecb28f..000000000 --- a/test/fixtures/ruby/element-reference.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (SubscriptAccess - (Identifier) - (StringLiteral)) - (SubscriptAccess - (Identifier) - (SymbolLiteral)))+} diff --git a/test/fixtures/ruby/else.diff+B.txt b/test/fixtures/ruby/else.diff+B.txt deleted file mode 100644 index f425f7d87..000000000 --- a/test/fixtures/ruby/else.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Begin - (MethodCall - (Identifier)) - (Else - (MethodCall - (Identifier)))))+} diff --git a/test/fixtures/ruby/elsif.diff+B.txt b/test/fixtures/ruby/elsif.diff+B.txt deleted file mode 100644 index 30ee159da..000000000 --- a/test/fixtures/ruby/elsif.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (If - (Identifier) - (MethodCall - (Identifier)) - (Elsif - (Identifier) - (MethodCall - (Identifier)))))+} diff --git a/test/fixtures/ruby/end-block.diff+B.txt b/test/fixtures/ruby/end-block.diff+B.txt deleted file mode 100644 index d0a299e59..000000000 --- a/test/fixtures/ruby/end-block.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (Identifier) - (EndBlock - (Identifier)))+} diff --git a/test/fixtures/ruby/ensure.diff+B.txt b/test/fixtures/ruby/ensure.diff+B.txt deleted file mode 100644 index 8d367b7ff..000000000 --- a/test/fixtures/ruby/ensure.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (Begin - (Identifier) - (Ensure - (Identifier))))+} diff --git a/test/fixtures/ruby/for.diff+A.txt b/test/fixtures/ruby/for.diff+A.txt deleted file mode 100644 index 012973cfb..000000000 --- a/test/fixtures/ruby/for.diff+A.txt +++ /dev/null @@ -1,29 +0,0 @@ -{+(Program - (For - (Identifier) - (Other "in" - (Identifier)) - (Identifier)) - (For - (Identifier) - (Identifier) - (Other "in" - (Identifier)) - (Identifier)) - (For - (Identifier) - (Other "in" - (RangeExpression - (IntegerLiteral) - (Other "..") - (IntegerLiteral))) - (Boolean)) - (For - (Identifier) - (Identifier) - (Other "in" - (RangeExpression - (IntegerLiteral) - (Other "..") - (IntegerLiteral))) - (Boolean)))+} diff --git a/test/fixtures/ruby/for.diff+B.txt b/test/fixtures/ruby/for.diff+B.txt deleted file mode 100644 index 6092192e6..000000000 --- a/test/fixtures/ruby/for.diff+B.txt +++ /dev/null @@ -1,11 +0,0 @@ -{+(Program - (For - (Identifier) - (Other "in" - (ArrayLiteral - (IntegerLiteral) - (IntegerLiteral) - (IntegerLiteral))) - (MethodCall - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/ruby/for.diff-A.txt b/test/fixtures/ruby/for.diff-A.txt deleted file mode 100644 index 2ab7a10b4..000000000 --- a/test/fixtures/ruby/for.diff-A.txt +++ /dev/null @@ -1,29 +0,0 @@ -{-(Program - (For - (Identifier) - (Other "in" - (Identifier)) - (Identifier)) - (For - (Identifier) - (Identifier) - (Other "in" - (Identifier)) - (Identifier)) - (For - (Identifier) - (Other "in" - (RangeExpression - (IntegerLiteral) - (Other "..") - (IntegerLiteral))) - (Boolean)) - (For - (Identifier) - (Identifier) - (Other "in" - (RangeExpression - (IntegerLiteral) - (Other "..") - (IntegerLiteral))) - (Boolean)))-} diff --git a/test/fixtures/ruby/hash.diff+B.txt b/test/fixtures/ruby/hash.diff+B.txt deleted file mode 100644 index bbdcad468..000000000 --- a/test/fixtures/ruby/hash.diff+B.txt +++ /dev/null @@ -1,11 +0,0 @@ -{+(Program - (Object - (Pair - (Identifier) - (StringLiteral)) - (Pair - (Identifier) - (IntegerLiteral)) - (Pair - (Identifier) - (Boolean))))+} diff --git a/test/fixtures/ruby/heredoc.diff+B.txt b/test/fixtures/ruby/heredoc.diff+B.txt deleted file mode 100644 index 20f301ac1..000000000 --- a/test/fixtures/ruby/heredoc.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (MethodCall - (MethodCall - (Identifier) - (Other "heredoc_beginning") - (Other "heredoc_end")) - (Identifier)))+} diff --git a/test/fixtures/ruby/interpolation.diff+B.txt b/test/fixtures/ruby/interpolation.diff+B.txt deleted file mode 100644 index 4e21c8b79..000000000 --- a/test/fixtures/ruby/interpolation.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (SymbolLiteral - (Identifier)) - (StringLiteral - (Identifier)))+} diff --git a/test/fixtures/ruby/lambda-dash-rocket.diff+B.txt b/test/fixtures/ruby/lambda-dash-rocket.diff+B.txt deleted file mode 100644 index f0e0454d6..000000000 --- a/test/fixtures/ruby/lambda-dash-rocket.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (AnonymousFunction - (ExpressionStatements - (Identifier))))+} diff --git a/test/fixtures/ruby/lambda.diff+B.txt b/test/fixtures/ruby/lambda.diff+B.txt deleted file mode 100644 index 061379247..000000000 --- a/test/fixtures/ruby/lambda.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (AnonymousFunction - (ExpressionStatements - (Params - (Identifier)) - (Binary - (Identifier) - (Other "+") - (IntegerLiteral)))))+} diff --git a/test/fixtures/ruby/math-assignment.diff+B.txt b/test/fixtures/ruby/math-assignment.diff+B.txt deleted file mode 100644 index 1e10cacde..000000000 --- a/test/fixtures/ruby/math-assignment.diff+B.txt +++ /dev/null @@ -1,16 +0,0 @@ -{+(Program - (OperatorAssignment - (Identifier) - (IntegerLiteral)) - (OperatorAssignment - (Identifier) - (IntegerLiteral)) - (OperatorAssignment - (Identifier) - (IntegerLiteral)) - (OperatorAssignment - (Identifier) - (IntegerLiteral)) - (OperatorAssignment - (Identifier) - (IntegerLiteral)))+} diff --git a/test/fixtures/ruby/method-calls-hash-args.diff+B.txt b/test/fixtures/ruby/method-calls-hash-args.diff+B.txt deleted file mode 100644 index 3be376aab..000000000 --- a/test/fixtures/ruby/method-calls-hash-args.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (MethodCall - (Identifier) - (Pair - (SymbolLiteral) - (Boolean)) - (Pair - (SymbolLiteral) - (IntegerLiteral))))+} diff --git a/test/fixtures/ruby/method-calls-keyword-args.diff+B.txt b/test/fixtures/ruby/method-calls-keyword-args.diff+B.txt deleted file mode 100644 index ca880f090..000000000 --- a/test/fixtures/ruby/method-calls-keyword-args.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (MethodCall - (Identifier) - (Pair - (Identifier) - (Boolean)) - (Pair - (Identifier) - (IntegerLiteral))))+} diff --git a/test/fixtures/ruby/method-calls.diff+B.txt b/test/fixtures/ruby/method-calls.diff+B.txt deleted file mode 100644 index 4e95e69bd..000000000 --- a/test/fixtures/ruby/method-calls.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (MethodCall - (Identifier)))+} diff --git a/test/fixtures/ruby/method-declaration-keyword-param.diff+B.txt b/test/fixtures/ruby/method-declaration-keyword-param.diff+B.txt deleted file mode 100644 index 9bf5c703a..000000000 --- a/test/fixtures/ruby/method-declaration-keyword-param.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Method - (Identifier) - (Params - (KeywordParameter - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/ruby/method-declaration-param-default.diff+B.txt b/test/fixtures/ruby/method-declaration-param-default.diff+B.txt deleted file mode 100644 index fc8e229e5..000000000 --- a/test/fixtures/ruby/method-declaration-param-default.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Method - (Identifier) - (Params - (OptionalParameter - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/ruby/method-declaration-params.diff+B.txt b/test/fixtures/ruby/method-declaration-params.diff+B.txt deleted file mode 100644 index 3a12c3d7f..000000000 --- a/test/fixtures/ruby/method-declaration-params.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Method - (Identifier) - (Params - (Identifier) - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/ruby/method-declaration-required-keyword-param.diff+B.txt b/test/fixtures/ruby/method-declaration-required-keyword-param.diff+B.txt deleted file mode 100644 index b477d89fe..000000000 --- a/test/fixtures/ruby/method-declaration-required-keyword-param.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Method - (Identifier) - (Params - (KeywordParameter - (Identifier)))))+} diff --git a/test/fixtures/ruby/method-declaration-unnamed-param.diff+B.txt b/test/fixtures/ruby/method-declaration-unnamed-param.diff+B.txt deleted file mode 100644 index 95c5a0bf8..000000000 --- a/test/fixtures/ruby/method-declaration-unnamed-param.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Method - (Identifier) - (Params - (Identifier) - (HashSplatParameter))))+} diff --git a/test/fixtures/ruby/method-declaration.diff+B.txt b/test/fixtures/ruby/method-declaration.diff+B.txt deleted file mode 100644 index 529727b25..000000000 --- a/test/fixtures/ruby/method-declaration.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Method - (Identifier) - (Params - (Identifier)) - (Identifier)))+} diff --git a/test/fixtures/ruby/method-invocation.diff+B.txt b/test/fixtures/ruby/method-invocation.diff+B.txt deleted file mode 100644 index c4b82cfbe..000000000 --- a/test/fixtures/ruby/method-invocation.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (MethodCall - (Identifier) - (StringLiteral)) - (MethodCall - (Identifier) - (Identifier)) - (MethodCall - (Identifier) - (IntegerLiteral) - (IntegerLiteral)) - (MethodCall - (Identifier) - (IntegerLiteral) - (IntegerLiteral)))+} diff --git a/test/fixtures/ruby/module.diff+B.txt b/test/fixtures/ruby/module.diff+B.txt deleted file mode 100644 index 2a27e72c8..000000000 --- a/test/fixtures/ruby/module.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (Module - (Constant) - (Method - (Identifier))))+} diff --git a/test/fixtures/ruby/multiple-assignments.diff+B.txt b/test/fixtures/ruby/multiple-assignments.diff+B.txt deleted file mode 100644 index 67689a9c8..000000000 --- a/test/fixtures/ruby/multiple-assignments.diff+B.txt +++ /dev/null @@ -1,10 +0,0 @@ -{+(Program - (Assignment - (Args - (Identifier) - (SplatParameter - (Identifier))) - (ArrayLiteral - (IntegerLiteral) - (IntegerLiteral) - (IntegerLiteral))))+} diff --git a/test/fixtures/ruby/number.diff+B.txt b/test/fixtures/ruby/number.diff+B.txt deleted file mode 100644 index 1fa79a7fb..000000000 --- a/test/fixtures/ruby/number.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (IntegerLiteral) - (IntegerLiteral) - (IntegerLiteral) - (IntegerLiteral) - (IntegerLiteral) - (IntegerLiteral) - (NumberLiteral))+} diff --git a/test/fixtures/ruby/percent-array.diff+B.txt b/test/fixtures/ruby/percent-array.diff+B.txt deleted file mode 100644 index aea8da755..000000000 --- a/test/fixtures/ruby/percent-array.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ArrayLiteral - (Identifier)))+} diff --git a/test/fixtures/ruby/regex.diff+B.txt b/test/fixtures/ruby/regex.diff+B.txt deleted file mode 100644 index 6f66468a8..000000000 --- a/test/fixtures/ruby/regex.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Regex) - (Regex))+} diff --git a/test/fixtures/ruby/relational-operator.diff+B.txt b/test/fixtures/ruby/relational-operator.diff+B.txt deleted file mode 100644 index 683acf8c5..000000000 --- a/test/fixtures/ruby/relational-operator.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (Binary - (Identifier) - (Other "<=>") - (Identifier)) - (Binary - (Identifier) - (Other "=~") - (Identifier)) - (Assignment - (Identifier) - (Unary - (Other "!") - (Identifier))))+} diff --git a/test/fixtures/ruby/rescue-last-ex.diff+B.txt b/test/fixtures/ruby/rescue-last-ex.diff+B.txt deleted file mode 100644 index 418bd75cd..000000000 --- a/test/fixtures/ruby/rescue-last-ex.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (Begin - (Identifier) - (Rescue - (Constant) - (RescuedException - (Identifier)) - (Identifier))))+} diff --git a/test/fixtures/ruby/rescue-modifier.diff+B.txt b/test/fixtures/ruby/rescue-modifier.diff+B.txt deleted file mode 100644 index 3abc82e72..000000000 --- a/test/fixtures/ruby/rescue-modifier.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (Modifier Rescue - (Identifier) - (Boolean)))+} diff --git a/test/fixtures/ruby/rescue-modifier2.diff+B.txt b/test/fixtures/ruby/rescue-modifier2.diff+B.txt deleted file mode 100644 index 8090f9408..000000000 --- a/test/fixtures/ruby/rescue-modifier2.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (Modifier Rescue - (Identifier) - (Identifier)))+} diff --git a/test/fixtures/ruby/rescue.diff+B.txt b/test/fixtures/ruby/rescue.diff+B.txt deleted file mode 100644 index 4b3ae6b21..000000000 --- a/test/fixtures/ruby/rescue.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Begin - (Identifier) - (Rescue - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/ruby/return.diff+B.txt b/test/fixtures/ruby/return.diff+B.txt deleted file mode 100644 index dd095ae80..000000000 --- a/test/fixtures/ruby/return.diff+B.txt +++ /dev/null @@ -1,2 +0,0 @@ -{+(Program - (Return))+} diff --git a/test/fixtures/ruby/string.diff+B.txt b/test/fixtures/ruby/string.diff+B.txt deleted file mode 100644 index 86709608e..000000000 --- a/test/fixtures/ruby/string.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (StringLiteral) - (StringLiteral))+} diff --git a/test/fixtures/ruby/subshell.diff+B.txt b/test/fixtures/ruby/subshell.diff+B.txt deleted file mode 100644 index 9e942bff3..000000000 --- a/test/fixtures/ruby/subshell.diff+B.txt +++ /dev/null @@ -1,2 +0,0 @@ -{+(Program - (Subshell))+} diff --git a/test/fixtures/ruby/symbol.diff+B.txt b/test/fixtures/ruby/symbol.diff+B.txt deleted file mode 100644 index a35833b38..000000000 --- a/test/fixtures/ruby/symbol.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (SymbolLiteral) - (SymbolLiteral) - (SymbolLiteral))+} diff --git a/test/fixtures/ruby/unless.diff+B.txt b/test/fixtures/ruby/unless.diff+B.txt deleted file mode 100644 index 48c847ba8..000000000 --- a/test/fixtures/ruby/unless.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Unless - (Negate - (Identifier))) - (Unless - (Negate - (Identifier))))+} diff --git a/test/fixtures/ruby/until.diff+B.txt b/test/fixtures/ruby/until.diff+B.txt deleted file mode 100644 index 0abaa4806..000000000 --- a/test/fixtures/ruby/until.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (Until - (Negate - (Identifier)) - (Identifier)))+} diff --git a/test/fixtures/ruby/when-else.diff+B.txt b/test/fixtures/ruby/when-else.diff+B.txt deleted file mode 100644 index a1ff95bee..000000000 --- a/test/fixtures/ruby/when-else.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Case - (Identifier) - (When - (Args - (Identifier)) - (Identifier) - (Else - (Identifier)))))+} diff --git a/test/fixtures/ruby/when.diff+B.txt b/test/fixtures/ruby/when.diff+B.txt deleted file mode 100644 index da65c9762..000000000 --- a/test/fixtures/ruby/when.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (Case - (Identifier) - (When - (Args - (Identifier)) - (Identifier) - (When - (Args - (Identifier)) - (Args - (Identifier)) - (Else - (Identifier))))))+} diff --git a/test/fixtures/ruby/yield.diff+B.txt b/test/fixtures/ruby/yield.diff+B.txt deleted file mode 100644 index 0d0b378e8..000000000 --- a/test/fixtures/ruby/yield.diff+B.txt +++ /dev/null @@ -1,2 +0,0 @@ -{+(Program - (Yield))+} diff --git a/test/fixtures/typescript/ambient-declarations.diff+B.txt b/test/fixtures/typescript/ambient-declarations.diff+B.txt deleted file mode 100644 index d4858e557..000000000 --- a/test/fixtures/typescript/ambient-declarations.diff+B.txt +++ /dev/null @@ -1,38 +0,0 @@ -{+(Program - (Other "ambient_declaration" - (Namespace - (Identifier))) - (Other "ambient_declaration" - (Class - (Identifier))) - (Other "ambient_declaration" - (Interface - (Identifier))) - (Other "ambient_declaration" - (Class - (Identifier) - (Method - (Identifier) - (Other "call_signature" - (Params - (Other "required_parameter" - (Identifier) - (Ty - (Other "predefined_type")))))) - (FieldDecl - (Identifier) - (Ty - (Other "predefined_type"))) - (Method - (Identifier) - (Other "call_signature" - (Params) - (Ty - (Other "predefined_type")))))) - (Other "ambient_declaration" - (Other "ambient_function" - (Identifier) - (Other "call_signature" - (Params) - (Ty - (Identifier))))))+} diff --git a/test/fixtures/typescript/ambient-exports.diff+B.txt b/test/fixtures/typescript/ambient-exports.diff+B.txt deleted file mode 100644 index 396255df3..000000000 --- a/test/fixtures/typescript/ambient-exports.diff+B.txt +++ /dev/null @@ -1,17 +0,0 @@ -{+(Program - (Export - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier) - (Ty - (Other "predefined_type"))) - (Other "required_parameter" - (Identifier) - (Ty - (Other "predefined_type")))) - (Return - (Object - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/typescript/ambient-type-declarations.diff+B.txt b/test/fixtures/typescript/ambient-type-declarations.diff+B.txt deleted file mode 100644 index d05eb2a85..000000000 --- a/test/fixtures/typescript/ambient-type-declarations.diff+B.txt +++ /dev/null @@ -1,17 +0,0 @@ -{+(Program - (Other "type_alias_declaration" - (Identifier) - (Other "union_type" - (Other "union_type" - (Other "union_type" - (Other "predefined_type") - (Other "predefined_type")) - (Identifier)) - (Other "generic_type" - (Identifier) - (Other "type_arguments" - (Other "union_type" - (Other "union_type" - (Other "predefined_type") - (Other "predefined_type")) - (Identifier)))))))+} diff --git a/test/fixtures/typescript/anonymous-function.diff+B.txt b/test/fixtures/typescript/anonymous-function.diff+B.txt deleted file mode 100644 index 4d4ddc7bc..000000000 --- a/test/fixtures/typescript/anonymous-function.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (Return - (MathOperator - (Identifier) - (Other "*") - (Identifier))))))+} diff --git a/test/fixtures/typescript/anonymous-parameterless-function.diff+B.txt b/test/fixtures/typescript/anonymous-parameterless-function.diff+B.txt deleted file mode 100644 index 2dfcd30c4..000000000 --- a/test/fixtures/typescript/anonymous-parameterless-function.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Params) - (Return - (StringLiteral)))))+} diff --git a/test/fixtures/typescript/array-type.diff+B.txt b/test/fixtures/typescript/array-type.diff+B.txt deleted file mode 100644 index d774e3e44..000000000 --- a/test/fixtures/typescript/array-type.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (Other "lexical_declaration" - (VarAssignment - (Identifier) - (Ty - (Other "tuple_type" - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/typescript/array.diff+B.txt b/test/fixtures/typescript/array.diff+B.txt deleted file mode 100644 index 7918741f2..000000000 --- a/test/fixtures/typescript/array.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (ArrayLiteral - (StringLiteral) - (StringLiteral))))+} diff --git a/test/fixtures/typescript/arrow-function.diff+B.txt b/test/fixtures/typescript/arrow-function.diff+B.txt deleted file mode 100644 index c75e1cf97..000000000 --- a/test/fixtures/typescript/arrow-function.diff+B.txt +++ /dev/null @@ -1,10 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (Return - (Identifier)))))+} diff --git a/test/fixtures/typescript/assignment-pattern.diff+B.txt b/test/fixtures/typescript/assignment-pattern.diff+B.txt deleted file mode 100644 index ea330ea24..000000000 --- a/test/fixtures/typescript/assignment-pattern.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (Other "variable_declaration" - (VarAssignment - (Other "object_pattern" - (Other "assignment_pattern" - (Identifier) - (NumberLiteral))) - (Identifier))))+} diff --git a/test/fixtures/typescript/assignment.diff+B.txt b/test/fixtures/typescript/assignment.diff+B.txt deleted file mode 100644 index 276c0925b..000000000 --- a/test/fixtures/typescript/assignment.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (Identifier) - (NumberLiteral))))+} diff --git a/test/fixtures/typescript/bitwise-operator.diff+B.txt b/test/fixtures/typescript/bitwise-operator.diff+B.txt deleted file mode 100644 index ad803dbcf..000000000 --- a/test/fixtures/typescript/bitwise-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (BitwiseOperator - (Identifier) - (Other ">>") - (Identifier))))+} diff --git a/test/fixtures/typescript/boolean-operator.diff+B.txt b/test/fixtures/typescript/boolean-operator.diff+B.txt deleted file mode 100644 index 15aad38c7..000000000 --- a/test/fixtures/typescript/boolean-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (BooleanOperator - (Identifier) - (Other "&&") - (Identifier))))+} diff --git a/test/fixtures/typescript/break.diff+B.txt b/test/fixtures/typescript/break.diff+B.txt deleted file mode 100644 index 72fbf66f3..000000000 --- a/test/fixtures/typescript/break.diff+B.txt +++ /dev/null @@ -1,22 +0,0 @@ -{+(Program - (For - (Assignment - (Identifier) - (NumberLiteral)) - (RelationalOperator - (Identifier) - (Other "<") - (NumberLiteral)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (If - (RelationalOperator - (Identifier) - (Other "===") - (NumberLiteral)) - (ExpressionStatements - (Continue))) - (ExpressionStatements - (Identifier)))))+} diff --git a/test/fixtures/typescript/chained-callbacks.diff+B.txt b/test/fixtures/typescript/chained-callbacks.diff+B.txt deleted file mode 100644 index 426f44ba1..000000000 --- a/test/fixtures/typescript/chained-callbacks.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Function - (Params - (Other "required_parameter" - (Identifier))) - (Return - (MemberAccess - (Identifier) - (Identifier)))))))+} diff --git a/test/fixtures/typescript/chained-property-access.diff+B.txt b/test/fixtures/typescript/chained-property-access.diff+B.txt deleted file mode 100644 index 225a42371..000000000 --- a/test/fixtures/typescript/chained-property-access.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Return - (FunctionCall - (FunctionCall - (FunctionCall - (Identifier) - (Identifier)) - (Identifier) - (MemberAccess - (Identifier) - (Identifier))) - (Identifier) - (MemberAccess - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/typescript/class.diff+B.txt b/test/fixtures/typescript/class.diff+B.txt deleted file mode 100644 index 57f6f3145..000000000 --- a/test/fixtures/typescript/class.diff+B.txt +++ /dev/null @@ -1,31 +0,0 @@ -{+(Program - (ExpressionStatements - (Class - (Identifier) - (Other "type_parameters" - (Other "type_parameter" - (Identifier))) - (Other "class_heritage" - (Other "extends_clause" - (Identifier))) - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier))) - (Return - (Identifier))) - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier))) - (Return - (Identifier))) - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier))) - (Return - (Identifier))))))+} diff --git a/test/fixtures/typescript/comma-operator.diff+B.txt b/test/fixtures/typescript/comma-operator.diff+B.txt deleted file mode 100644 index b46734e8c..000000000 --- a/test/fixtures/typescript/comma-operator.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (Identifier) - (Object - (Pair - (Identifier) - (CommaOperator - (NumberLiteral) - (MathOperator - (NumberLiteral) - (Other "+") - (NumberLiteral)) - (NumberLiteral)))))))+} diff --git a/test/fixtures/typescript/comment.diff+B.txt b/test/fixtures/typescript/comment.diff+B.txt deleted file mode 100644 index d81beabb3..000000000 --- a/test/fixtures/typescript/comment.diff+B.txt +++ /dev/null @@ -1,2 +0,0 @@ -{+(Program - (Comment))+} diff --git a/test/fixtures/typescript/constructor-call.diff+B.txt b/test/fixtures/typescript/constructor-call.diff+B.txt deleted file mode 100644 index d92216c44..000000000 --- a/test/fixtures/typescript/constructor-call.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (ExpressionStatements - (Constructor - (FunctionCall - (Identifier) - (Identifier) - (NumberLiteral) - (StringLiteral)))))+} diff --git a/test/fixtures/typescript/continue.diff+B.txt b/test/fixtures/typescript/continue.diff+B.txt deleted file mode 100644 index 6471b643c..000000000 --- a/test/fixtures/typescript/continue.diff+B.txt +++ /dev/null @@ -1,22 +0,0 @@ -{+(Program - (For - (Assignment - (Identifier) - (NumberLiteral)) - (RelationalOperator - (Identifier) - (Other "<") - (NumberLiteral)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (If - (RelationalOperator - (Identifier) - (Other "===") - (NumberLiteral)) - (ExpressionStatements - (Break))) - (ExpressionStatements - (Identifier)))))+} diff --git a/test/fixtures/typescript/delete-operator.diff+B.txt b/test/fixtures/typescript/delete-operator.diff+B.txt deleted file mode 100644 index 11c3767b5..000000000 --- a/test/fixtures/typescript/delete-operator.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (Operator - (Other "delete") - (MemberAccess - (Identifier) - (Identifier)))))+} diff --git a/test/fixtures/typescript/do-while-statement.diff+B.txt b/test/fixtures/typescript/do-while-statement.diff+B.txt deleted file mode 100644 index c72c20799..000000000 --- a/test/fixtures/typescript/do-while-statement.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (DoWhile - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier)))) - (Boolean)))+} diff --git a/test/fixtures/typescript/export.diff+B.txt b/test/fixtures/typescript/export.diff+B.txt deleted file mode 100644 index 2826e794c..000000000 --- a/test/fixtures/typescript/export.diff+B.txt +++ /dev/null @@ -1,70 +0,0 @@ -{+(Program - (Export - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier))) - (Export - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier))) - (Export - (VarDecl - (Identifier)) - (VarDecl - (Identifier)) - (VarDecl - (Identifier))) - (Export - (VarAssignment - (Identifier) - (Identifier)) - (VarAssignment - (Identifier) - (Identifier)) - (VarDecl - (Identifier)) - (VarDecl - (Identifier))) - (Export - (Identifier)) - (Export - (Function - (Identifier) - (Params))) - (Export - (Function - (Params))) - (Export - (Other "export_specifier" - (Identifier) - (Identifier))) - (Export - (StringLiteral)) - (Export - (StringLiteral) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier)) - (Other "export_specifier" - (Identifier))) - (Export - (StringLiteral) - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier) - (Identifier)) - (Other "export_specifier" - (Identifier))))+} diff --git a/test/fixtures/typescript/false.diff+B.txt b/test/fixtures/typescript/false.diff+B.txt deleted file mode 100644 index 4ec96172b..000000000 --- a/test/fixtures/typescript/false.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Return - (Boolean)))+} diff --git a/test/fixtures/typescript/for-in-statement.diff+B.txt b/test/fixtures/typescript/for-in-statement.diff+B.txt deleted file mode 100644 index c0c0e6b07..000000000 --- a/test/fixtures/typescript/for-in-statement.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (For - (Identifier) - (Identifier) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/typescript/for-loop-with-in-statement.diff+B.txt b/test/fixtures/typescript/for-loop-with-in-statement.diff+B.txt deleted file mode 100644 index 3782d7650..000000000 --- a/test/fixtures/typescript/for-loop-with-in-statement.diff+B.txt +++ /dev/null @@ -1,22 +0,0 @@ -{+(Program - (For - (BooleanOperator - (Operator - (Identifier) - (Other "in") - (Identifier)) - (Other "&&") - (Assignment - (Identifier) - (NumberLiteral))) - (RelationalOperator - (Identifier) - (Other "<") - (Identifier)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/typescript/for-of-statement.diff+B.txt b/test/fixtures/typescript/for-of-statement.diff+B.txt deleted file mode 100644 index f009c06c8..000000000 --- a/test/fixtures/typescript/for-of-statement.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (For - (Identifier) - (Identifier) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/typescript/for-statement.diff+B.txt b/test/fixtures/typescript/for-statement.diff+B.txt deleted file mode 100644 index 455cc3235..000000000 --- a/test/fixtures/typescript/for-statement.diff+B.txt +++ /dev/null @@ -1,19 +0,0 @@ -{+(Program - (For - (Assignment - (Identifier) - (NumberLiteral)) - (FunctionCall - (Identifier)) - (RelationalOperator - (Identifier) - (Other "<") - (NumberLiteral)) - (MathOperator - (Identifier) - (Other "++")) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/typescript/function-call-args.diff+B.txt b/test/fixtures/typescript/function-call-args.diff+B.txt deleted file mode 100644 index f127e8b6f..000000000 --- a/test/fixtures/typescript/function-call-args.diff+B.txt +++ /dev/null @@ -1,20 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (NumberLiteral) - (StringLiteral) - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier))) - (Return - (Identifier))) - (Boolean))))+} diff --git a/test/fixtures/typescript/function-call.diff+B.txt b/test/fixtures/typescript/function-call.diff+B.txt deleted file mode 100644 index 77c06d2c7..000000000 --- a/test/fixtures/typescript/function-call.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (Other "type_arguments" - (Identifier)) - (Identifier) - (StringLiteral))))+} diff --git a/test/fixtures/typescript/function-type.diff+B.txt b/test/fixtures/typescript/function-type.diff+B.txt deleted file mode 100644 index 2d9298ea9..000000000 --- a/test/fixtures/typescript/function-type.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Other "lexical_declaration" - (VarAssignment - (Identifier) - (Ty - (Other "array_type" - (Identifier))))))+} diff --git a/test/fixtures/typescript/function.diff+B.txt b/test/fixtures/typescript/function.diff+B.txt deleted file mode 100644 index 771e89ea7..000000000 --- a/test/fixtures/typescript/function.diff+B.txt +++ /dev/null @@ -1,11 +0,0 @@ -{+(Program - (Function - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (Ty - (Identifier)) - (ExpressionStatements - (Identifier))))+} diff --git a/test/fixtures/typescript/generator-function.diff+B.txt b/test/fixtures/typescript/generator-function.diff+B.txt deleted file mode 100644 index de51860c6..000000000 --- a/test/fixtures/typescript/generator-function.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (Yield)) - (ExpressionStatements - (Yield - (Identifier)))))+} diff --git a/test/fixtures/typescript/identifier.diff+B.txt b/test/fixtures/typescript/identifier.diff+B.txt deleted file mode 100644 index b14755f30..000000000 --- a/test/fixtures/typescript/identifier.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (Identifier)))+} diff --git a/test/fixtures/typescript/if-else.diff+B.txt b/test/fixtures/typescript/if-else.diff+B.txt deleted file mode 100644 index d3d761de8..000000000 --- a/test/fixtures/typescript/if-else.diff+B.txt +++ /dev/null @@ -1,21 +0,0 @@ -{+(Program - (If - (Identifier) - (ExpressionStatements - (Identifier)) - (If - (Identifier) - (ExpressionStatements - (ExpressionStatements - (Identifier))) - (If - (Identifier) - (ExpressionStatements - (Identifier)) - (If - (Identifier) - (ExpressionStatements - (ExpressionStatements - (Identifier))) - (ExpressionStatements - (Identifier)))))))+} diff --git a/test/fixtures/typescript/if.diff+B.txt b/test/fixtures/typescript/if.diff+B.txt deleted file mode 100644 index 8fc5a37fe..000000000 --- a/test/fixtures/typescript/if.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (If - (MemberAccess - (Identifier) - (Identifier)) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier))) - (ExpressionStatements - (Identifier)))))+} diff --git a/test/fixtures/typescript/import.diff+B.txt b/test/fixtures/typescript/import.diff+B.txt deleted file mode 100644 index b8ef359de..000000000 --- a/test/fixtures/typescript/import.diff+B.txt +++ /dev/null @@ -1,44 +0,0 @@ -{+(Program - (Import - (StringLiteral) - (Identifier)) - (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)))+} diff --git a/test/fixtures/typescript/interface.diff+B.txt b/test/fixtures/typescript/interface.diff+B.txt deleted file mode 100644 index f2df3fae0..000000000 --- a/test/fixtures/typescript/interface.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Interface - (Identifier) - (Other "property_signature" - (Identifier) - (Ty - (Other "literal_type" - (StringLiteral)))) - (Other "property_signature" - (Other "readonly") - (Identifier) - (Ty - (Identifier)))))+} diff --git a/test/fixtures/typescript/intersection-type.diff+B.txt b/test/fixtures/typescript/intersection-type.diff+B.txt deleted file mode 100644 index 4689c4609..000000000 --- a/test/fixtures/typescript/intersection-type.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (Other "lexical_declaration" - (VarAssignment - (Identifier) - (Ty - (Other "intersection_type" - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/typescript/math-assignment-operator.diff+B.txt b/test/fixtures/typescript/math-assignment-operator.diff+B.txt deleted file mode 100644 index 809e5b8f1..000000000 --- a/test/fixtures/typescript/math-assignment-operator.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (MathAssignment - (Identifier) - (NumberLiteral))))+} diff --git a/test/fixtures/typescript/math-operator.diff+B.txt b/test/fixtures/typescript/math-operator.diff+B.txt deleted file mode 100644 index 4beb99059..000000000 --- a/test/fixtures/typescript/math-operator.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (ExpressionStatements - (MathOperator - (MathOperator - (Identifier) - (Other "+") - (MathOperator - (Identifier) - (Other "*") - (NumberLiteral))) - (Other "-") - (MathOperator - (Identifier) - (Other "%") - (NumberLiteral)))))+} diff --git a/test/fixtures/typescript/member-access-assignment.diff+B.txt b/test/fixtures/typescript/member-access-assignment.diff+B.txt deleted file mode 100644 index 3b24be4fa..000000000 --- a/test/fixtures/typescript/member-access-assignment.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (MemberAccess - (Identifier) - (Identifier)) - (NumberLiteral))))+} diff --git a/test/fixtures/typescript/member-access.diff+B.txt b/test/fixtures/typescript/member-access.diff+B.txt deleted file mode 100644 index 79a41282c..000000000 --- a/test/fixtures/typescript/member-access.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (MemberAccess - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/typescript/method-call.diff+B.txt b/test/fixtures/typescript/method-call.diff+B.txt deleted file mode 100644 index 5efa89824..000000000 --- a/test/fixtures/typescript/method-call.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier) - (StringLiteral))))+} diff --git a/test/fixtures/typescript/method-definition.diff+B.txt b/test/fixtures/typescript/method-definition.diff+B.txt deleted file mode 100644 index ac46acf1e..000000000 --- a/test/fixtures/typescript/method-definition.diff+B.txt +++ /dev/null @@ -1,11 +0,0 @@ -{+(Program - (ExpressionStatements - (Class - (Identifier) - (Method - (Other "accessibility_modifier") - (Other "readonly") - (Identifier) - (Params) - (Ty - (Other "predefined_type"))))))+} diff --git a/test/fixtures/typescript/module-declarations.diff+B.txt b/test/fixtures/typescript/module-declarations.diff+B.txt deleted file mode 100644 index 82e2c8a1b..000000000 --- a/test/fixtures/typescript/module-declarations.diff+B.txt +++ /dev/null @@ -1,4 +0,0 @@ -{+(Program - (Other "ambient_declaration" - (Namespace - (Identifier))))+} diff --git a/test/fixtures/typescript/named-function.diff+B.txt b/test/fixtures/typescript/named-function.diff+B.txt deleted file mode 100644 index 857f82f9c..000000000 --- a/test/fixtures/typescript/named-function.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Function - (Identifier) - (Params) - (Return - (Boolean))))+} diff --git a/test/fixtures/typescript/nested-do-while-in-function.diff+B.txt b/test/fixtures/typescript/nested-do-while-in-function.diff+B.txt deleted file mode 100644 index 884198792..000000000 --- a/test/fixtures/typescript/nested-do-while-in-function.diff+B.txt +++ /dev/null @@ -1,16 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (DoWhile - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier)))) - (Identifier)))))+} diff --git a/test/fixtures/typescript/nested-functions.diff+B.txt b/test/fixtures/typescript/nested-functions.diff+B.txt deleted file mode 100644 index 884de19d9..000000000 --- a/test/fixtures/typescript/nested-functions.diff+B.txt +++ /dev/null @@ -1,27 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (Function - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier))) - (ExpressionStatements - (FunctionCall - (Identifier) - (Identifier) - (Identifier))))))))+} diff --git a/test/fixtures/typescript/null.diff+B.txt b/test/fixtures/typescript/null.diff+B.txt deleted file mode 100644 index 986452908..000000000 --- a/test/fixtures/typescript/null.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Return - (Identifier)))+} diff --git a/test/fixtures/typescript/number.diff+B.txt b/test/fixtures/typescript/number.diff+B.txt deleted file mode 100644 index 096b23dfc..000000000 --- a/test/fixtures/typescript/number.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (NumberLiteral)))+} diff --git a/test/fixtures/typescript/object.diff+B.txt b/test/fixtures/typescript/object.diff+B.txt deleted file mode 100644 index 2735303e6..000000000 --- a/test/fixtures/typescript/object.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (ExpressionStatements - (Object - (Pair - (StringLiteral) - (StringLiteral)) - (Pair - (StringLiteral) - (StringLiteral)) - (Pair - (StringLiteral) - (StringLiteral)))))+} diff --git a/test/fixtures/typescript/objects-with-methods.diff+B.txt b/test/fixtures/typescript/objects-with-methods.diff+B.txt deleted file mode 100644 index 214ea973e..000000000 --- a/test/fixtures/typescript/objects-with-methods.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (ExpressionStatements - (Object - (Method - (Identifier) - (Params - (Other "required_parameter" - (Identifier)) - (Other "required_parameter" - (Identifier))) - (Return - (MathOperator - (Identifier) - (Other "-") - (Identifier)))))))+} diff --git a/test/fixtures/typescript/public-field-definition.diff+B.txt b/test/fixtures/typescript/public-field-definition.diff+B.txt deleted file mode 100644 index 76196433b..000000000 --- a/test/fixtures/typescript/public-field-definition.diff+B.txt +++ /dev/null @@ -1,58 +0,0 @@ -{+(Program - (ExpressionStatements - (Class - (Identifier) - (FieldDecl - (Other "readonly") - (Identifier)) - (FieldDecl - (Other "readonly") - (Identifier)) - (FieldDecl - (Other "accessibility_modifier") - (Other "readonly") - (Identifier)) - (FieldDecl - (Other "accessibility_modifier") - (Other "readonly") - (Identifier) - (Ty - (Identifier)) - (NumberLiteral)) - (FieldDecl - (Other "accessibility_modifier") - (Identifier) - (Ty - (Identifier)) - (NumberLiteral)) - (FieldDecl - (Identifier) - (Ty - (Identifier)) - (NumberLiteral)) - (FieldDecl - (Identifier) - (Ty - (Identifier)) - (NumberLiteral)) - (FieldDecl - (Other "accessibility_modifier") - (Identifier) - (Ty - (Identifier)) - (NumberLiteral)) - (FieldDecl - (Other "accessibility_modifier") - (Other "readonly") - (Identifier) - (Ty - (Identifier)) - (StringLiteral)) - (FieldDecl - (Identifier) - (Ty - (Identifier)) - (NumberLiteral)) - (FieldDecl - (Identifier) - (NumberLiteral)))))+} diff --git a/test/fixtures/typescript/regex.diff+B.txt b/test/fixtures/typescript/regex.diff+B.txt deleted file mode 100644 index 827170365..000000000 --- a/test/fixtures/typescript/regex.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (Regex)))+} diff --git a/test/fixtures/typescript/relational-operator.diff+B.txt b/test/fixtures/typescript/relational-operator.diff+B.txt deleted file mode 100644 index 0bca19de5..000000000 --- a/test/fixtures/typescript/relational-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (RelationalOperator - (Identifier) - (Other "<=") - (Identifier))))+} diff --git a/test/fixtures/typescript/return-statement.diff+B.txt b/test/fixtures/typescript/return-statement.diff+B.txt deleted file mode 100644 index dd095ae80..000000000 --- a/test/fixtures/typescript/return-statement.diff+B.txt +++ /dev/null @@ -1,2 +0,0 @@ -{+(Program - (Return))+} diff --git a/test/fixtures/typescript/string.diff+B.txt b/test/fixtures/typescript/string.diff+B.txt deleted file mode 100644 index 58b9fe434..000000000 --- a/test/fixtures/typescript/string.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (StringLiteral)))+} diff --git a/test/fixtures/typescript/subscript-access-assignment.diff+B.txt b/test/fixtures/typescript/subscript-access-assignment.diff+B.txt deleted file mode 100644 index 06c0618cb..000000000 --- a/test/fixtures/typescript/subscript-access-assignment.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (SubscriptAccess - (Identifier) - (StringLiteral)) - (NumberLiteral))))+} diff --git a/test/fixtures/typescript/subscript-access-string.diff+B.txt b/test/fixtures/typescript/subscript-access-string.diff+B.txt deleted file mode 100644 index abd4af3f5..000000000 --- a/test/fixtures/typescript/subscript-access-string.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (SubscriptAccess - (Identifier) - (StringLiteral))))+} diff --git a/test/fixtures/typescript/subscript-access-variable.diff+B.txt b/test/fixtures/typescript/subscript-access-variable.diff+B.txt deleted file mode 100644 index 166a258c9..000000000 --- a/test/fixtures/typescript/subscript-access-variable.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (SubscriptAccess - (Identifier) - (Identifier))))+} diff --git a/test/fixtures/typescript/switch-statement.diff+B.txt b/test/fixtures/typescript/switch-statement.diff+B.txt deleted file mode 100644 index 2766c8490..000000000 --- a/test/fixtures/typescript/switch-statement.diff+B.txt +++ /dev/null @@ -1,15 +0,0 @@ -{+(Program - (Switch - (NumberLiteral) - (Case - (NumberLiteral) - (ExpressionStatements - (NumberLiteral))) - (Case - (NumberLiteral) - (ExpressionStatements - (NumberLiteral))) - (Case - (NumberLiteral) - (ExpressionStatements - (NumberLiteral)))))+} diff --git a/test/fixtures/typescript/template-string.diff+B.txt b/test/fixtures/typescript/template-string.diff+B.txt deleted file mode 100644 index 7a7bda735..000000000 --- a/test/fixtures/typescript/template-string.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (TemplateString)))+} diff --git a/test/fixtures/typescript/ternary.diff+B.txt b/test/fixtures/typescript/ternary.diff+B.txt deleted file mode 100644 index 426cf71d8..000000000 --- a/test/fixtures/typescript/ternary.diff+B.txt +++ /dev/null @@ -1,18 +0,0 @@ -{+(Program - (ExpressionStatements - (Assignment - (MemberAccess - (Identifier) - (Identifier)) - (Ternary - (MemberAccess - (Identifier) - (Identifier)) - (MemberAccess - (Identifier) - (Identifier)) - (MemberAccess - (MemberAccess - (Identifier) - (Identifier)) - (Identifier))))))+} diff --git a/test/fixtures/typescript/this-expression.diff+B.txt b/test/fixtures/typescript/this-expression.diff+B.txt deleted file mode 100644 index 986452908..000000000 --- a/test/fixtures/typescript/this-expression.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Return - (Identifier)))+} diff --git a/test/fixtures/typescript/throw-statement.diff+B.txt b/test/fixtures/typescript/throw-statement.diff+B.txt deleted file mode 100644 index 3b60dc073..000000000 --- a/test/fixtures/typescript/throw-statement.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (Throw - (Constructor - (FunctionCall - (Identifier) - (StringLiteral)))))+} diff --git a/test/fixtures/typescript/true.diff+B.txt b/test/fixtures/typescript/true.diff+B.txt deleted file mode 100644 index 4ec96172b..000000000 --- a/test/fixtures/typescript/true.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Return - (Boolean)))+} diff --git a/test/fixtures/typescript/try-statement.diff+B.txt b/test/fixtures/typescript/try-statement.diff+B.txt deleted file mode 100644 index 0f3989999..000000000 --- a/test/fixtures/typescript/try-statement.diff+B.txt +++ /dev/null @@ -1,13 +0,0 @@ -{+(Program - (Try - (ExpressionStatements - (ExpressionStatements - (Identifier))) - (Catch - (ExpressionStatements - (ExpressionStatements - (Identifier)))) - (Finally - (ExpressionStatements - (ExpressionStatements - (Identifier))))))+} diff --git a/test/fixtures/typescript/tuple-type.diff+B.txt b/test/fixtures/typescript/tuple-type.diff+B.txt deleted file mode 100644 index 4689c4609..000000000 --- a/test/fixtures/typescript/tuple-type.diff+B.txt +++ /dev/null @@ -1,8 +0,0 @@ -{+(Program - (Other "lexical_declaration" - (VarAssignment - (Identifier) - (Ty - (Other "intersection_type" - (Identifier) - (Identifier))))))+} diff --git a/test/fixtures/typescript/type-assertions.diff+B.txt b/test/fixtures/typescript/type-assertions.diff+B.txt deleted file mode 100644 index 2844a08b6..000000000 --- a/test/fixtures/typescript/type-assertions.diff+B.txt +++ /dev/null @@ -1,5 +0,0 @@ -{+(Program - (ExpressionStatements - (Other "as_expression" - (Identifier) - (Other "predefined_type"))))+} diff --git a/test/fixtures/typescript/type-operator.diff+B.txt b/test/fixtures/typescript/type-operator.diff+B.txt deleted file mode 100644 index f106b1fe1..000000000 --- a/test/fixtures/typescript/type-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (Operator - (Identifier) - (Other "instanceof") - (Identifier))))+} diff --git a/test/fixtures/typescript/typeof-types.diff+B.txt b/test/fixtures/typescript/typeof-types.diff+B.txt deleted file mode 100644 index 68f3a29d7..000000000 --- a/test/fixtures/typescript/typeof-types.diff+B.txt +++ /dev/null @@ -1,12 +0,0 @@ -{+(Program - (Other "lexical_declaration" - (VarAssignment - (Identifier) - (Ty - (Other "type_query" - (Identifier))))) - (Other "lexical_declaration" - (VarAssignment - (Identifier) - (Ty - (Identifier)))))+} diff --git a/test/fixtures/typescript/undefined.diff+B.txt b/test/fixtures/typescript/undefined.diff+B.txt deleted file mode 100644 index 986452908..000000000 --- a/test/fixtures/typescript/undefined.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (Return - (Identifier)))+} diff --git a/test/fixtures/typescript/union-type.diff+B.txt b/test/fixtures/typescript/union-type.diff+B.txt deleted file mode 100644 index af47eaa08..000000000 --- a/test/fixtures/typescript/union-type.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (Other "lexical_declaration" - (VarAssignment - (Identifier) - (Ty - (Other "type_query" - (Identifier))))))+} diff --git a/test/fixtures/typescript/var-declaration.diff+B.txt b/test/fixtures/typescript/var-declaration.diff+B.txt deleted file mode 100644 index af8cc6661..000000000 --- a/test/fixtures/typescript/var-declaration.diff+B.txt +++ /dev/null @@ -1,9 +0,0 @@ -{+(Program - (Other "variable_declaration" - (VarDecl - (Identifier)) - (VarAssignment - (Identifier) - (Object)) - (VarDecl - (Identifier))))+} diff --git a/test/fixtures/typescript/variable.diff+B.txt b/test/fixtures/typescript/variable.diff+B.txt deleted file mode 100644 index b14755f30..000000000 --- a/test/fixtures/typescript/variable.diff+B.txt +++ /dev/null @@ -1,3 +0,0 @@ -{+(Program - (ExpressionStatements - (Identifier)))+} diff --git a/test/fixtures/typescript/void-operator.diff+B.txt b/test/fixtures/typescript/void-operator.diff+B.txt deleted file mode 100644 index 637d443dd..000000000 --- a/test/fixtures/typescript/void-operator.diff+B.txt +++ /dev/null @@ -1,6 +0,0 @@ -{+(Program - (ExpressionStatements - (Operator - (Other "void") - (FunctionCall - (Identifier)))))+} diff --git a/test/fixtures/typescript/while-statement.diff+B.txt b/test/fixtures/typescript/while-statement.diff+B.txt deleted file mode 100644 index babf8d9a8..000000000 --- a/test/fixtures/typescript/while-statement.diff+B.txt +++ /dev/null @@ -1,7 +0,0 @@ -{+(Program - (While - (Identifier) - (ExpressionStatements - (ExpressionStatements - (FunctionCall - (Identifier))))))+} diff --git a/test/fixtures/typescript/yield.diff+B.txt b/test/fixtures/typescript/yield.diff+B.txt deleted file mode 100644 index c2bee77f9..000000000 --- a/test/fixtures/typescript/yield.diff+B.txt +++ /dev/null @@ -1,14 +0,0 @@ -{+(Program - (ExpressionStatements - (Function - (Identifier) - (Params) - (Other "variable_declaration" - (VarAssignment - (Identifier) - (NumberLiteral))) - (ExpressionStatements - (Yield - (MathOperator - (Identifier) - (Other "++")))))))+}