1
1
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:
Ayman Nadeem 2019-10-11 12:49:16 -04:00
parent 9afcf11b83
commit 5d4b34b39b

View File

@ -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