-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: use antlr to parse procedure division header #2293
Conversation
0decd5c
to
fbd496f
Compare
@Override | ||
public int hashCode() { | ||
int result = line; | ||
result = 31 * result + startPositionInLine; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a constant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well.. it's generated throwaway code, sure)
@@ -117,6 +129,15 @@ private ProcedureDivisionBodyContext createProcedureDivisionBodyContext(Procedur | |||
|
|||
} | |||
|
|||
private Optional<ParseTree> findChild(ProcedureDivisionContext pdCtx, Class<?> expectedClass) { | |||
for (ParseTree c : pdCtx.children) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
.../src/main/java/org/eclipse/lsp/cobol/core/hw/antlradapter/ProcedureDivisionAntlrAdapter.java
Show resolved
Hide resolved
fbd496f
to
c5beee2
Compare
Checklist: