14 using System.Collections.Generic;
26 public SourceLocation(
int position,
int line,
int column,
string sourceFilename = null)
28 SourceFilename = sourceFilename;
36 return string.Format(
Resources.FmtRowCol, SourceFilename == null ?
"" : SourceFilename +
" ", Line, Column);
41 return string.Format(
Resources.FmtRowCol, SourceFilename == null ?
"" : SourceFilename +
" ", Line + 1, Column + 1);
51 get {
return _empty; }
71 public int EndPosition {
72 get {
return Location.Position + Length; }
override string ToString()
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ float size_t y
SourceSpan(SourceLocation location, int length)
static int Compare(SourceLocation x, SourceLocation y)
static string FmtRowCol
Looks up a localized string similar to {0}({1}:{2}).
readonly SourceLocation Location
SourceLocation(int position, int line, int column, string sourceFilename=null)