1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00

TypeScript import syntax changed - update fixtures

This commit is contained in:
Timothy Clem 2018-04-02 15:11:45 -07:00
parent 74c195385e
commit 568adc1477
8 changed files with 79 additions and 202 deletions

View File

@ -62,10 +62,8 @@
{+(QualifiedExport)+} {+(QualifiedExport)+}
{+(DefaultExport {+(DefaultExport
{+(TextElement)+})+} {+(TextElement)+})+}
{+(QualifiedExportFrom {+(QualifiedExportFrom)+}
{+(Identifier)+})+} {+(QualifiedExportFrom)+}
{+(QualifiedExportFrom
{+(Identifier)+})+}
{-(DefaultExport {-(DefaultExport
{-(Function {-(Function
{-(Empty)-} {-(Empty)-}
@ -75,7 +73,5 @@
{-(QualifiedExport)-} {-(QualifiedExport)-}
{-(DefaultExport {-(DefaultExport
{-(TextElement)-})-} {-(TextElement)-})-}
{-(QualifiedExportFrom {-(QualifiedExportFrom)-}
{-(Identifier)-})-} {-(QualifiedExportFrom)-})
{-(QualifiedExportFrom
{-(Identifier)-})-})

View File

@ -73,11 +73,7 @@
(DefaultExport (DefaultExport
{ (TextElement) { (TextElement)
->(TextElement) }) ->(TextElement) })
{ (QualifiedExportFrom { (QualifiedExportFrom)
{-(Identifier)-}) ->(QualifiedExportFrom) }
->(QualifiedExportFrom { (QualifiedExportFrom)
{+(Identifier)+}) } ->(QualifiedExportFrom) })
{ (QualifiedExportFrom
{-(Identifier)-})
->(QualifiedExportFrom
{+(Identifier)+}) })

View File

@ -50,7 +50,5 @@
(QualifiedExport) (QualifiedExport)
(DefaultExport (DefaultExport
(TextElement)) (TextElement))
(QualifiedExportFrom (QualifiedExportFrom)
(Identifier)) (QualifiedExportFrom))
(QualifiedExportFrom
(Identifier)))

View File

@ -50,7 +50,5 @@
(QualifiedExport) (QualifiedExport)
(DefaultExport (DefaultExport
(TextElement)) (TextElement))
(QualifiedExportFrom (QualifiedExportFrom)
(Identifier)) (QualifiedExportFrom))
(QualifiedExportFrom
(Identifier)))

View File

@ -1,68 +1,31 @@
(Program (Program
{+(Import { (Import)
{+(Identifier)+} ->(Import) }
{+(Empty)+})+} { (QualifiedAliasedImport
{+(QualifiedImport {-(Identifier)-})
{+(Identifier)+} ->(QualifiedAliasedImport
{+(Identifier)+})+} {+(Identifier)+}) }
{+(Import {+(Import)+}
{+(Identifier)+} { (Import)
{+(Empty)+})+} ->(Import) }
{+(Import {+(Import)+}
{+(Identifier)+}
{+(Empty)+})+}
{+(Import
{+(Identifier)+}
{+(Empty)+})+}
{+( {+(
{+(Import {+(Import)+}
{+(Identifier)+} {+(Import)+})+}
{+(Empty)+})+}
{+(Import
{+(Identifier)+}
{+(Empty)+})+})+}
{+( {+(
{+(Import {+(Import)+}
{+(Identifier)+} {+(QualifiedAliasedImport
{+(Empty)+})+}
{+(QualifiedImport
{+(Identifier)+}
{+(Identifier)+})+})+} {+(Identifier)+})+})+}
{+(SideEffectImport {+(SideEffectImport)+}
{+(Identifier)+} {-(Import)-}
{+(Empty)+})+} {-(Import)-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-}
{-(QualifiedImport
{-(Identifier)-}
{-(Identifier)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-}
{-( {-(
{-(Import {-(Import)-}
{-(Identifier)-} {-(Import)-})-}
{-(Empty)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-})-}
{-( {-(
{-(Import {-(Import)-}
{-(Identifier)-} {-(QualifiedAliasedImport
{-(Empty)-})-}
{-(QualifiedImport
{-(Identifier)-}
{-(Identifier)-})-})-} {-(Identifier)-})-})-}
{-(SideEffectImport {-(SideEffectImport)-}
{-(Identifier)-} {-(QualifiedAliasedImport
{-(Empty)-})-}
{-(QualifiedImport
{-(Identifier)-}
{-(Identifier)-})-}) {-(Identifier)-})-})

View File

@ -1,68 +1,31 @@
(Program (Program
{+(Import { (Import)
{+(Identifier)+} ->(Import) }
{+(Empty)+})+} { (QualifiedAliasedImport
{+(QualifiedImport {-(Identifier)-})
{+(Identifier)+} ->(QualifiedAliasedImport
{+(Identifier)+})+} {+(Identifier)+}) }
{ (Import {+(Import)+}
{-(Identifier)-} {+(Import)+}
{-(Empty)-}) { (Import)
->(Import ->(Import) }
{+(Identifier)+}
{+(Empty)+}) }
{+(Import
{+(Identifier)+}
{+(Empty)+})+}
{+(Import
{+(Identifier)+}
{+(Empty)+})+}
{+( {+(
{+(Import {+(Import)+}
{+(Identifier)+} {+(Import)+})+}
{+(Empty)+})+}
{+(Import
{+(Identifier)+}
{+(Empty)+})+})+}
{+( {+(
{+(Import {+(Import)+}
{+(Identifier)+} {+(QualifiedAliasedImport
{+(Empty)+})+}
{+(QualifiedImport
{+(Identifier)+}
{+(Identifier)+})+})+} {+(Identifier)+})+})+}
{+(SideEffectImport {+(SideEffectImport)+}
{+(Identifier)+} {+(QualifiedAliasedImport
{+(Empty)+})+}
{+(QualifiedImport
{+(Identifier)+}
{+(Identifier)+})+} {+(Identifier)+})+}
{-(QualifiedImport {-(Import)-}
{-(Identifier)-} {-(Import)-}
{-(Identifier)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-}
{-( {-(
{-(Import {-(Import)-}
{-(Identifier)-} {-(Import)-})-}
{-(Empty)-})-}
{-(Import
{-(Identifier)-}
{-(Empty)-})-})-}
{-( {-(
{-(Import {-(Import)-}
{-(Identifier)-} {-(QualifiedAliasedImport
{-(Empty)-})-}
{-(QualifiedImport
{-(Identifier)-}
{-(Identifier)-})-})-} {-(Identifier)-})-})-}
{-(SideEffectImport {-(SideEffectImport)-})
{-(Identifier)-}
{-(Empty)-})-})

View File

@ -1,36 +1,17 @@
(Program (Program
(Import (Import)
(Identifier) (QualifiedAliasedImport
(Empty))
(QualifiedImport
(Identifier)
(Identifier)) (Identifier))
(Import (Import)
(Identifier) (Import)
(Empty)) (Import)
(Import
(Identifier)
(Empty))
(Import
(Identifier)
(Empty))
( (
(Import (Import)
(Identifier) (Import))
(Empty))
(Import
(Identifier)
(Empty)))
( (
(Import (Import)
(Identifier) (QualifiedAliasedImport
(Empty))
(QualifiedImport
(Identifier)
(Identifier))) (Identifier)))
(SideEffectImport (SideEffectImport)
(Identifier) (QualifiedAliasedImport
(Empty))
(QualifiedImport
(Identifier)
(Identifier))) (Identifier)))

View File

@ -1,33 +1,15 @@
(Program (Program
(Import (Import)
(Identifier) (QualifiedAliasedImport
(Empty))
(QualifiedImport
(Identifier)
(Identifier)) (Identifier))
(Import (Import)
(Identifier) (Import)
(Empty)) (Import)
(Import
(Identifier)
(Empty))
(Import
(Identifier)
(Empty))
( (
(Import (Import)
(Identifier) (Import))
(Empty))
(Import
(Identifier)
(Empty)))
( (
(Import (Import)
(Identifier) (QualifiedAliasedImport
(Empty))
(QualifiedImport
(Identifier)
(Identifier))) (Identifier)))
(SideEffectImport (SideEffectImport))
(Identifier)
(Empty)))