1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Turn at least this one back on

This commit is contained in:
Timothy Clem 2018-03-30 16:01:49 -07:00
parent d84fe28ae0
commit 9089ad998d

View File

@ -15,7 +15,6 @@ import Data.Source as Source
import Data.Span
import Data.Term
import Data.Abstract.FreeVariables
import qualified Data.Abstract.Path as P
import qualified Data.Syntax as Syntax
import qualified Data.Syntax.Declaration as Declaration
import qualified Data.Syntax.Expression as Expression
@ -139,9 +138,9 @@ instance CustomHasDeclaration whole Ruby.Syntax.Class where
-- getSymbol = bimap toName toName
-- toName = T.decodeUtf8 . friendlyName
-- instance CustomHasDeclaration (Union fs) Go.Syntax.SideEffectImport where
-- customToDeclaration Blob{..} _ (Go.Syntax.SideEffectImport (P.Path path _) _)
-- = Just $ ImportDeclaration (T.pack path) "" [] blobLanguage
instance CustomHasDeclaration (Union fs) Go.Syntax.SideEffectImport where
customToDeclaration Blob{..} _ (Go.Syntax.SideEffectImport (Go.Syntax.ImportPath path) _)
= Just $ ImportDeclaration (T.pack path) "" [] blobLanguage
instance CustomHasDeclaration (Union fs) Ruby.Syntax.Require where
customToDeclaration Blob{..} _ (Ruby.Syntax.Require _ (Term (In fromAnn _), _))
@ -196,7 +195,7 @@ type family DeclarationStrategy syntax where
DeclarationStrategy Declaration.Function = 'Custom
-- DeclarationStrategy Declaration.Import = 'Custom
-- DeclarationStrategy Declaration.QualifiedImport = 'Custom
-- DeclarationStrategy Go.Syntax.SideEffectImport = 'Custom
DeclarationStrategy Go.Syntax.SideEffectImport = 'Custom
DeclarationStrategy Ruby.Syntax.Class = 'Custom
DeclarationStrategy Ruby.Syntax.Require = 'Custom
DeclarationStrategy Declaration.Method = 'Custom