-
Notifications
You must be signed in to change notification settings - Fork 790
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
Fixing #461 - warning with a reference to non existing location in source file #1852
Conversation
ready for review |
@@ -2,7 +2,7 @@ | |||
// Empty program entry point warning | |||
// Lack of entry point produces warning with correct source location when compiled to *.exe | |||
// when source file declares type inside namespace | |||
//<Expects id="FS0988" span="(1,81-1,81)" status="warning">Main module of program is empty: nothing will happen when it is run</Expects> | |||
//<Expects id="FS0988" span="(10,18-10,18)" status="warning">Main module of program is empty: nothing will happen when it is run</Expects> |
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.
Agreed we shouldn't report a non-existent location, but we need to report this on some actual source text, not a single character
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.
it always only used the m.EndRange for the error
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.
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 see. I guess a real single character is better than a non-existent single character :)
It would be better to give the error at a more real textual range but that is indeed further work
ready for review |
@dotnet-bot test this please |
Thanks for taking care of this Kevin |
No description provided.