mirror of
https://github.com/github/semantic.git
synced 2024-12-19 21:01:35 +03:00
Type applications.
This commit is contained in:
parent
e0507e1323
commit
e7bca7c62a
@ -122,12 +122,12 @@ runGraph :: ( Member Distribute sig
|
|||||||
-> Project
|
-> Project
|
||||||
-> m (Graph ControlFlowVertex)
|
-> m (Graph ControlFlowVertex)
|
||||||
runGraph ImportGraph _ project
|
runGraph ImportGraph _ project
|
||||||
| SomeAnalysisParser parser (lang' :: Proxy lang) <- someAnalysisParser (Proxy :: Proxy AnalyzeTerm) (projectLanguage project) = do
|
| SomeAnalysisParser parser (lang' :: Proxy lang) <- someAnalysisParser (Proxy @AnalyzeTerm) (projectLanguage project) = do
|
||||||
let parse = if projectLanguage project == Language.Python then parsePythonPackage parser else fmap (fmap snd) . parsePackage parser
|
let parse = if projectLanguage project == Language.Python then parsePythonPackage parser else fmap (fmap snd) . parsePackage parser
|
||||||
package <- parse project
|
package <- parse project
|
||||||
runImportGraphToModuleInfos lang' package
|
runImportGraphToModuleInfos lang' package
|
||||||
runGraph CallGraph includePackages project
|
runGraph CallGraph includePackages project
|
||||||
| SomeAnalysisParser parser lang <- someAnalysisParser (Proxy :: Proxy AnalyzeTerm) (projectLanguage project) = do
|
| SomeAnalysisParser parser lang <- someAnalysisParser (Proxy @AnalyzeTerm) (projectLanguage project) = do
|
||||||
let parse = if projectLanguage project == Language.Python then parsePythonPackage parser else fmap (fmap snd) . parsePackage parser
|
let parse = if projectLanguage project == Language.Python then parsePythonPackage parser else fmap (fmap snd) . parsePackage parser
|
||||||
package <- parse project
|
package <- parse project
|
||||||
modules <- topologicalSort <$> runImportGraphToModules lang package
|
modules <- topologicalSort <$> runImportGraphToModules lang package
|
||||||
|
Loading…
Reference in New Issue
Block a user