1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 04:41:47 +03:00

Remove all uses of adjoinRows

This commit is contained in:
joshvera 2015-12-09 14:32:00 -05:00
parent 51fb407004
commit 888a2bbf8a

View File

@ -146,7 +146,7 @@ annotatedToRows (Annotated (Info left _ leftCategories, Info right _ rightCatego
ranges = (left, right) ranges = (left, right)
rows = appendRemainder $ foldl sumRows ([], starts ranges) i rows = appendRemainder $ foldl sumRows ([], starts ranges) i
sources = (before, after) sources = (before, after)
appendRemainder (rows, previousIndices) = adjoinRows rows $ contextRows (ends ranges) previousIndices sources appendRemainder (rows, previousIndices) = reverse $ foldl adjoin2 [] $ rows ++ (contextRows (ends ranges) previousIndices sources)
sumRows (rows, previousIndices) child = (allRows, ends childRanges) sumRows (rows, previousIndices) child = (allRows, ends childRanges)
where where
separatorRows = contextRows (starts childRanges) previousIndices sources separatorRows = contextRows (starts childRanges) previousIndices sources