-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Tidy up go runtime #3186
Tidy up go runtime #3186
Conversation
Aight, the go tests are passing, so that's what matters |
cc @parrt |
Maybe @davesisson @pboyer @willfaught could take a look and bless the changes. |
Okie, thanks |
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.
I got a few files in and then noticed how many changes there are. I won't be able to cover it all in one day. Hopefully the others can pitch in too. :)
Aight, that should do it |
Hi @Joakker it looks like we are getting a Go language failure:
|
Oop, will fix in the morning |
return NewBaseATNConfig(c, c.GetState(), c.GetContext(), semanticContext) | ||
} | ||
|
||
func NewBaseATNConfig1(c ATNConfig, state ATNState, context PredictionContext) *BaseATNConfig { | ||
// ATNConfigWithStateContext creates a new instance of BaseATNConfig. |
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.
I wonder if these comments actually add anything. I don't know go very well at all but it seems like these comments are not adding very much to constructor functions.
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.
Actually, they look like useless comments because they don't give additional information, don't explain how an algorithm works, etc.
seems like a huge change; perhaps @jcking or someone more knowledgeable can scan through but many of those comments seem unnecessary to me per my comment I just made. |
Guys trying to clean up. I think I'll close as there is controversy here. sorry! |
Partially addresses #2504 (comment)
This PR normalizes the doc comments in the go runtime sources to one more compatible with the go documentation tool,
godoc
, so the auto-generated docs over at pkg.go.dev look more readable, since people familiar with go will look there first for the documentation instead of in this repo.It also hides some elements that don't need to be exported as they don't have to do strictly with the generated parser.