Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinier Maas
GHC
Commits
8e04efcf
Commit
8e04efcf
authored
10 months ago
by
Alan Zimmerman
Committed by
Marge Bot
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
EPA: Remove redundant code
Remove unused epAnnAnns function various cases for showAstData that no longer exist
parent
7d3d9bbf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/GHC/Hs/Dump.hs
+0
-24
0 additions, 24 deletions
compiler/GHC/Hs/Dump.hs
compiler/GHC/Parser/Annotation.hs
+0
-4
0 additions, 4 deletions
compiler/GHC/Parser/Annotation.hs
with
0 additions
and
28 deletions
compiler/GHC/Hs/Dump.hs
+
0
−
24
View file @
8e04efcf
...
...
@@ -59,16 +59,10 @@ showAstData bs ba a0 = blankLine $$ showAstData' a0
`
ext1Q
`
list
`
extQ
`
list_addEpAnn
`
extQ
`
string
`
extQ
`
fastString
`
extQ
`
srcSpan
`
extQ
`
realSrcSpan
`
extQ
`
annotation
`
extQ
`
annotationModule
`
extQ
`
annotationAddEpAnn
`
extQ
`
annotationGrhsAnn
`
extQ
`
annotationEpAnnHsCase
`
extQ
`
annotationAnnList
`
extQ
`
annotationEpAnnImportDecl
`
extQ
`
annotationAnnParen
`
extQ
`
annotationTrailingAnn
`
extQ
`
annotationEpaLocation
`
extQ
`
annotationNoEpAnns
`
extQ
`
addEpAnn
`
extQ
`
annParen
...
...
@@ -235,36 +229,18 @@ showAstData bs ba a0 = blankLine $$ showAstData' a0
-- -------------------------
annotation
::
EpAnn
[
AddEpAnn
]
->
SDoc
annotation
=
annotation'
(
text
"EpAnn [AddEpAnn]"
)
annotationModule
::
EpAnn
AnnsModule
->
SDoc
annotationModule
=
annotation'
(
text
"EpAnn AnnsModule"
)
annotationAddEpAnn
::
EpAnn
AddEpAnn
->
SDoc
annotationAddEpAnn
=
annotation'
(
text
"EpAnn AddEpAnn"
)
annotationGrhsAnn
::
EpAnn
GrhsAnn
->
SDoc
annotationGrhsAnn
=
annotation'
(
text
"EpAnn GrhsAnn"
)
annotationEpAnnHsCase
::
EpAnn
EpAnnHsCase
->
SDoc
annotationEpAnnHsCase
=
annotation'
(
text
"EpAnn EpAnnHsCase"
)
annotationAnnList
::
EpAnn
AnnList
->
SDoc
annotationAnnList
=
annotation'
(
text
"EpAnn AnnList"
)
annotationEpAnnImportDecl
::
EpAnn
EpAnnImportDecl
->
SDoc
annotationEpAnnImportDecl
=
annotation'
(
text
"EpAnn EpAnnImportDecl"
)
annotationAnnParen
::
EpAnn
AnnParen
->
SDoc
annotationAnnParen
=
annotation'
(
text
"EpAnn AnnParen"
)
annotationTrailingAnn
::
EpAnn
TrailingAnn
->
SDoc
annotationTrailingAnn
=
annotation'
(
text
"EpAnn TrailingAnn"
)
annotationEpaLocation
::
EpAnn
EpaLocation
->
SDoc
annotationEpaLocation
=
annotation'
(
text
"EpAnn EpaLocation"
)
annotationNoEpAnns
::
EpAnn
NoEpAnns
->
SDoc
annotationNoEpAnns
=
annotation'
(
text
"EpAnn NoEpAnns"
)
...
...
This diff is collapsed.
Click to expand it.
compiler/GHC/Parser/Annotation.hs
+
0
−
4
View file @
8e04efcf
...
...
@@ -70,7 +70,6 @@ module GHC.Parser.Annotation (
-- ** Querying annotations
getLocAnn
,
epAnnAnns
,
annParen2AddEpAnn
,
epAnnComments
,
...
...
@@ -1139,9 +1138,6 @@ widenLocatedAn (EpAnn (EpaSpan l) a cs) as = EpAnn (spanAsAnchor l') a cs
l'
=
widenSpan
l
as
widenLocatedAn
(
EpAnn
anc
a
cs
)
_as
=
EpAnn
anc
a
cs
epAnnAnns
::
EpAnn
[
AddEpAnn
]
->
[
AddEpAnn
]
epAnnAnns
(
EpAnn
_
anns
_
)
=
anns
annParen2AddEpAnn
::
AnnParen
->
[
AddEpAnn
]
annParen2AddEpAnn
(
AnnParen
pt
o
c
)
=
[
AddEpAnn
ai
o
,
AddEpAnn
ac
c
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment