1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 02:14:20 +03:00

Add in util for Go defs

This commit is contained in:
Timothy Clem 2018-11-01 13:20:50 -07:00
parent 24a9b2b6ea
commit f860d4aa66
2 changed files with 46 additions and 0 deletions

View File

@ -59,6 +59,12 @@ testPythonDefs path = do
-- pure . Data.Machine.run $ Data.Machine.Source.source (tagging blob tree)
pure $! runTagging blob tree
testGoDefs path = do
blob <- readBlobFromFile' (File path Language.Go)
tree <- parseFile' goParser path
-- pure . Data.Machine.run $ Data.Machine.Source.source (tagging blob tree)
pure $! runTagging blob tree
testRubyFile = do
let path = "test/fixtures/ruby/reprinting/infix.rb"

View File

@ -302,7 +302,22 @@ instance Taggable Syntax.Empty
instance Taggable Syntax.Error
instance Taggable Syntax.Identifier
instance Taggable Type.Array
instance Taggable Type.Annotation
instance Taggable Type.Function
instance Taggable Type.Map
instance Taggable Type.Readonly
instance Taggable Type.Void
instance Taggable Type.Int
instance Taggable Type.Float
instance Taggable Type.Double
instance Taggable Type.Bool
instance Taggable Type.Interface
instance Taggable Type.Parenthesized
instance Taggable Type.Pointer
instance Taggable Type.Product
instance Taggable Type.Slice
instance Taggable Type.TypeParameters
instance Taggable Declaration.MethodSignature
instance Taggable Declaration.InterfaceDeclaration
@ -323,3 +338,28 @@ instance Taggable Python.Import
instance Taggable Python.QualifiedAliasedImport
instance Taggable Python.QualifiedImport
instance Taggable Python.Redirect
instance Taggable Go.BidirectionalChannel
instance Taggable Go.ReceiveChannel
instance Taggable Go.SendChannel
instance Taggable Go.Import
instance Taggable Go.QualifiedImport
instance Taggable Go.SideEffectImport
instance Taggable Go.Composite
instance Taggable Go.Label
instance Taggable Go.Send
instance Taggable Go.Slice
instance Taggable Go.TypeSwitch
instance Taggable Go.Receive
instance Taggable Go.Field
instance Taggable Go.Package
instance Taggable Go.TypeAssertion
instance Taggable Go.TypeConversion
instance Taggable Go.Variadic
instance Taggable Go.DefaultPattern
instance Taggable Go.Defer
instance Taggable Go.Go
instance Taggable Go.Rune
instance Taggable Go.Select
instance Taggable Go.TypeSwitchGuard
instance Taggable Go.ReceiveOperator