Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void WriteNode(SyntaxNode node)

protected virtual void WriteSpan(TextSpan span)
{
WriteValue($"[{span.Start}..{span.End}{Separator}Width: {span.End - span.Start}");
WriteValue($"[{span.Start}..{span.End}){Separator}Width: {span.End - span.Start}");
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean this?

Suggested change
WriteValue($"[{span.Start}..{span.End}){Separator}Width: {span.End - span.Start}");
WriteValue($"[{span.Start}..{span.End}]{Separator}Width: {span.End - span.Start}");

Copy link
Member Author

Choose a reason for hiding this comment

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

No, the end is exclusive. I think we use [x..y) to demonstrate that in other places as well. Definitely we did that here previously:

Copy link
Member

Choose a reason for hiding this comment

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

Oh right, thanks. Looked weird out of context

}

private void WriteRazorDirective(RazorDirectiveSyntax node)
Expand Down
Loading