mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
downstream impact of changing datatype fields
This commit is contained in:
parent
9afcf11b83
commit
5d4b34b39b
@ -39,9 +39,9 @@ main :: IO ()
|
||||
main = generateAST =<< execParser opts
|
||||
|
||||
generateAST :: SemanticAST -> IO ()
|
||||
generateAST (SemanticAST sourceInput _) = do
|
||||
case sourceInput of
|
||||
FileInput filePath -> do
|
||||
generateAST (SemanticAST filePath sourceString _) = do
|
||||
case filePath of
|
||||
Just filePath -> do
|
||||
bytestring <- Data.ByteString.readFile filePath
|
||||
print =<< parseByteString @TreeSitter.Python.AST.Module @(Range, Span) tree_sitter_python bytestring
|
||||
StdInput -> do
|
||||
|
Loading…
Reference in New Issue
Block a user