-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Expand #line to support columns #46526
Comments
Would it be possible for Razor to emit indented code like so? __o =
#line 1 "Foo.razor"
DateTime.Now
#line default
; then it could control the column precisely. |
Yup we could and actually do in some Blazor scenarios; however, it ends up resulting in pieces not being debuggable: #43432 which is why we haven't done it everywhere 😢 |
Yeah, I see. So the problem is really the placements of the sequence points if |
@gafter FYI |
I'm working on a proposal for adding column to |
The problem
The current restrictions of the
#line
pragma don't bode well for embedded languages. For instance in Razor the core "transition into C#" mechanism has various implications on the#line
pragma's lacking support of a column. For instance, lets consider:@DateTime.Now
At runtime this renders:
At design time this renders:
Now consider the implications of this at debug & edit time.
DateTime.Now
is instantly misaligned because@DateTime.Now
exists at the front of the line.Suggestion:
/cc @tmat
The text was updated successfully, but these errors were encountered: