1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00

Merge pull request #1248 from github/ghc-8.2.1

ghc-8.2.1
This commit is contained in:
Rob Rix 2017-08-10 16:38:18 -04:00 committed by GitHub
commit 1c5e709304
30 changed files with 336 additions and 455 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@ profiles
tags tags
cabal.project.local cabal.project.local
dist
dist-newstyle dist-newstyle
tmp/ tmp/

View File

@ -1,34 +1,2 @@
import Data.Maybe
import qualified Distribution.PackageDescription as P
import Distribution.Simple import Distribution.Simple
import Distribution.Simple.LocalBuildInfo main = defaultMain
import Distribution.Simple.Setup
import System.Directory
import System.Process
main = defaultMainWithHooks simpleUserHooks { confHook = conf }
conf :: (P.GenericPackageDescription, P.HookedBuildInfo) -> ConfigFlags -> IO LocalBuildInfo
conf x flags = do
localBuildInfo <- confHook simpleUserHooks x flags
let packageDescription = localPkgDescr localBuildInfo
library = fromJust $ P.library packageDescription
libraryBuildInfo = P.libBuildInfo library
relativeIncludeDirs = [ "common", "i18n" ] in do
dir <- getCurrentDirectory
let icuLibDir = dir ++ "/vendor/icu/lib"
let icuSourceDir = dir ++ "/vendor/icu/source/"
icuLibDirExists <- doesDirectoryExist icuLibDir
icuSourceDirExists <- doesDirectoryExist icuSourceDir
let extraLibDirs = P.extraLibDirs libraryBuildInfo
let includeDirs = P.includeDirs libraryBuildInfo
return localBuildInfo {
localPkgDescr = packageDescription {
P.library = Just $ library {
P.libBuildInfo = libraryBuildInfo {
P.extraLibDirs = if icuLibDirExists then icuLibDir : extraLibDirs else extraLibDirs,
P.includeDirs = if icuSourceDirExists then ((icuSourceDir ++) <$> relativeIncludeDirs) ++ includeDirs else includeDirs
}
}
}
}

4
cabal.project Normal file
View File

@ -0,0 +1,4 @@
packages: ./ languages/*/ tools/*/
optional-packages: vendor/*/
jobs: $ncpus

View File

@ -40,28 +40,28 @@ generate_example () {
diffFileBA="${fileB%%.*}.diffB-A.txt" diffFileBA="${fileB%%.*}.diffB-A.txt"
status $parseFileA status $parseFileA
stack exec semantic parse -- --sexpression $fileA > $parseFileA "$(dirname "$0")/run" semantic parse --sexpression $fileA > $parseFileA
status $parseFileB status $parseFileB
stack exec semantic parse -- --sexpression $fileB > $parseFileB "$(dirname "$0")/run" semantic parse --sexpression $fileB > $parseFileB
status $diffFileAddA status $diffFileAddA
stack exec semantic diff -- --sexpression /dev/null $fileA > $diffFileAddA "$(dirname "$0")/run" semantic diff --sexpression /dev/null $fileA > $diffFileAddA
status $diffFileRemoveA status $diffFileRemoveA
stack exec semantic diff -- --sexpression $fileA /dev/null > $diffFileRemoveA "$(dirname "$0")/run" semantic diff --sexpression $fileA /dev/null > $diffFileRemoveA
status $diffFileAddB status $diffFileAddB
stack exec semantic diff -- --sexpression /dev/null $fileB > $diffFileAddB "$(dirname "$0")/run" semantic diff --sexpression /dev/null $fileB > $diffFileAddB
status $diffFileRemoveB status $diffFileRemoveB
stack exec semantic diff -- --sexpression $fileB /dev/null > $diffFileRemoveB "$(dirname "$0")/run" semantic diff --sexpression $fileB /dev/null > $diffFileRemoveB
status $diffFileAB status $diffFileAB
stack exec semantic diff -- --sexpression $fileA $fileB > $diffFileAB "$(dirname "$0")/run" semantic diff --sexpression $fileA $fileB > $diffFileAB
status $diffFileBA status $diffFileBA
stack exec semantic diff -- --sexpression $fileB $fileA > $diffFileBA "$(dirname "$0")/run" semantic diff --sexpression $fileB $fileA > $diffFileBA
} }
if [[ -d $1 ]]; then if [[ -d $1 ]]; then

View File

@ -7,7 +7,7 @@ author: Rob Rix, Josh Vera
maintainer: rob.rix@github.com maintainer: rob.rix@github.com
copyright: 2016 GitHub copyright: 2016 GitHub
category: Web category: Web
build-type: Custom build-type: Simple
-- extra-source-files: -- extra-source-files:
cabal-version: >=1.10 cabal-version: >=1.10
@ -184,12 +184,6 @@ test-suite test
default-language: Haskell2010 default-language: Haskell2010
default-extensions: DeriveFunctor, DeriveGeneric, FlexibleContexts, FlexibleInstances, OverloadedStrings, RecordWildCards default-extensions: DeriveFunctor, DeriveGeneric, FlexibleContexts, FlexibleInstances, OverloadedStrings, RecordWildCards
custom-setup
setup-depends: base >= 4.8 && < 5
, Cabal
, directory
, process
source-repository head source-repository head
type: git type: git
location: https://github.com/github/semantic-diff location: https://github.com/github/semantic-diff

View File

@ -50,7 +50,7 @@ mapAnnotations :: (Functor f, Functor g)
mapAnnotations f = Free.hoistFree (first (fmap f)) . fmap (fmap (fmap f)) mapAnnotations f = Free.hoistFree (first (fmap f)) . fmap (fmap (fmap f))
instance (NFData (f (Diff f a)), NFData (Term f a), NFData a, Functor f) => NFData (Diff f a) where instance (NFData (f (Diff f a)), NFData (f (Term f a)), NFData a, Functor f) => NFData (Diff f a) where
rnf fa = case runFree fa of rnf fa = case runFree fa of
FreeF.Free f -> rnf f `seq` () FreeF.Free f -> rnf f `seq` ()
FreeF.Pure a -> rnf a `seq` () FreeF.Pure a -> rnf a `seq` ()

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,83 +3,61 @@
{ (StringLiteral) { (StringLiteral)
->(StringLiteral) } ->(StringLiteral) }
(Identifier)) (Identifier))
{+(Import (Import
(StringLiteral) { (StringLiteral)
->(StringLiteral) }
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral))+} (Import
{-(Import { (StringLiteral)
(StringLiteral) ->(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))-})

View File

@ -3,83 +3,61 @@
{ (StringLiteral) { (StringLiteral)
->(StringLiteral) } ->(StringLiteral) }
(Identifier)) (Identifier))
{+(Import (Import
(StringLiteral) { (StringLiteral)
->(StringLiteral) }
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral))+} (Import
{-(Import { (StringLiteral)
(StringLiteral) ->(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))-})

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,83 +3,61 @@
{ (StringLiteral) { (StringLiteral)
->(StringLiteral) } ->(StringLiteral) }
(Identifier)) (Identifier))
{+(Import (Import
(StringLiteral) { (StringLiteral)
->(StringLiteral) }
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral))+} (Import
{-(Import { (StringLiteral)
(StringLiteral) ->(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))-})

View File

@ -3,83 +3,61 @@
{ (StringLiteral) { (StringLiteral)
->(StringLiteral) } ->(StringLiteral) }
(Identifier)) (Identifier))
{+(Import (Import
(StringLiteral) { (StringLiteral)
->(StringLiteral) }
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier))))+} { (Identifier)
{+(Import ->(Identifier) })))
(StringLiteral) (Import
{ (StringLiteral)
->(StringLiteral) }
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "named_imports" (Other "named_imports"
(Other "import_specifier" (Other "import_specifier"
(Identifier)) { (Identifier)
->(Identifier) })
(Other "import_specifier" (Other "import_specifier"
(Identifier) { (Identifier)
(Identifier))))+} ->(Identifier) }
{+(Import { (Identifier)
(StringLiteral) ->(Identifier) })))
(Import
{ (StringLiteral)
->(StringLiteral) }
(Identifier) (Identifier)
(Other "namespace_import" (Other "namespace_import"
(Identifier)))+} { (Identifier)
{+(Import ->(Identifier) }))
(StringLiteral))+} (Import
{-(Import { (StringLiteral)
(StringLiteral) ->(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))-})

View File

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

View File

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

@ -1 +1 @@
Subproject commit 2427ad5fe734914a9522d902338cc78b5c42e931 Subproject commit db9a5728a1b47b2ff600fe2235ff8d25a999ebeb