Skip to content

Use enum for error messages IDs. #1986

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

Merged
merged 1 commit into from
Feb 20, 2017

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki
Copy link
Contributor Author

@smarter check this out, @felixmulder told me that you had some opinions on the IDs.

abstract class EmptyCatchOrFinallyBlock(tryBody: untpd.Tree, errNo: Int)(implicit ctx: Context)
extends Message(errNo) {
abstract class EmptyCatchOrFinallyBlock(tryBody: untpd.Tree, errNo: ErrorMessageID)(implicit ctx: Context)
extends Message(EmptyCatchOrFinallyBlockID) {
Copy link
Contributor

@felixmulder felixmulder Feb 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird 4 space indentation here - let's get rid of that yes 😉

Copy link
Contributor

@felixmulder felixmulder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the weird indentation this LGTM

@felixmulder felixmulder merged commit 8e2c271 into scala:master Feb 20, 2017
@felixmulder felixmulder deleted the error-messages-ids branch February 20, 2017 08:46
@ckipp01
Copy link
Member

ckipp01 commented Mar 26, 2022

5 years later.... just looking for a bit of clarity. Why are LazyErrorId and NoExplanationId negatives?

@nicolasstucki
Copy link
Contributor Author

@ckipp01 it came from e42bb30#diff-e49722a882822c3e89863359a84e3431cc09a254b44dbed7d0914c75576003a9R93. Unfortunately this is not really useful.

NoExplanation was created here e24289a. Not sure if that helps either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants