1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 04:10:29 +03:00

Print the source. We don’t have any, so just guess really.

This commit is contained in:
Rob Rix 2017-05-19 16:11:12 -04:00
parent 5e88098782
commit 29792357ba

View File

@ -190,7 +190,7 @@ showSymbols [a, b, c] = shows a . showString ", " . shows b . showString ", or "
showSymbols (h:t) = shows h . showString ", " . showSymbols t
showSourcePos :: Info.SourcePos -> ShowS
showSourcePos Info.SourcePos{..} = shows line . showChar ':' . shows column
showSourcePos Info.SourcePos{..} = showParen True (showString "source") . showChar ':' . shows line . showChar ':' . shows column
-- | Run an assignment over an AST exhaustively.
assign :: (Symbol grammar, Enum grammar, Eq grammar, Show grammar, HasCallStack) => Assignment (Node grammar) a -> Source.Source -> AST grammar -> Result grammar a