mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +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