mirror of
https://github.com/github/semantic.git
synced 2025-01-04 13:34:31 +03:00
Print the source. We don’t have any, so just guess really.
This commit is contained in:
parent
5e88098782
commit
29792357ba
@ -190,7 +190,7 @@ showSymbols [a, b, c] = shows a . showString ", " . shows b . showString ", or "
|
|||||||
showSymbols (h:t) = shows h . showString ", " . showSymbols t
|
showSymbols (h:t) = shows h . showString ", " . showSymbols t
|
||||||
|
|
||||||
showSourcePos :: Info.SourcePos -> ShowS
|
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.
|
-- | 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
|
assign :: (Symbol grammar, Enum grammar, Eq grammar, Show grammar, HasCallStack) => Assignment (Node grammar) a -> Source.Source -> AST grammar -> Result grammar a
|
||||||
|
Loading…
Reference in New Issue
Block a user