1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Reformat AssignmentState across several lines.

This commit is contained in:
Rob Rix 2017-04-24 13:47:21 -04:00
parent cbe44c66e7
commit 3705f960f4

View File

@ -147,7 +147,12 @@ advanceState state@AssignmentState{..}
| Rose (_ :. range :. span :. _) _ : rest <- stateNodes = AssignmentState (Info.end range) (Info.spanEnd span) (Source.drop (Info.end range - stateOffset) stateSource) rest | Rose (_ :. range :. span :. _) _ : rest <- stateNodes = AssignmentState (Info.end range) (Info.spanEnd span) (Source.drop (Info.end range - stateOffset) stateSource) rest
| otherwise = state | otherwise = state
data AssignmentState grammar = AssignmentState { stateOffset :: Int, statePos :: Info.SourcePos, stateSource :: Source.Source, stateNodes :: [AST grammar] } data AssignmentState grammar = AssignmentState
{ stateOffset :: Int
, statePos :: Info.SourcePos
, stateSource :: Source.Source
, stateNodes :: [AST grammar]
}
deriving (Eq, Show) deriving (Eq, Show)
instance Alternative (Assignment symbol) where instance Alternative (Assignment symbol) where