2 writes to Offset
Microsoft.CodeAnalysis.CSharp (2)
Errors\SyntaxDiagnosticInfo.cs (2)
20
this.
Offset
= offset;
46
Offset
= original.Offset;
9 references to Offset
Microsoft.CodeAnalysis.CSharp (9)
Errors\SyntaxDiagnosticInfo.cs (1)
46
Offset = original.
Offset
;
Parser\AbstractLexer.cs (1)
50
array[i] = _errors[i].WithOffset(_errors[i].
Offset
+ leadingTriviaWidth);
Parser\DocumentationCommentParser.cs (1)
796
SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(rawInfo.
Offset
, rawInfo.Width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
Parser\LanguageParser_InterpolatedString.cs (1)
484
builder.Add(sd.WithOffset(sd.
Offset
+ offset));
Parser\SyntaxParser.cs (3)
967
tokenDiagnostics[i] = new SyntaxDiagnosticInfo(d.
Offset
- leadingWidth, d.Width, (ErrorCode)d.Code, d.Arguments);
1020
targetDiagnostics[i] = new SyntaxDiagnosticInfo(d.
Offset
+ triviaWidth, d.Width, (ErrorCode)d.Code, d.Arguments);
1031
int newOffset = triviaOffset + diagnosticOffset + diagnostic.
Offset
;
Syntax\InternalSyntax\SyntaxFirstTokenReplacer.cs (1)
76
oldSyntaxDiagnostic.
Offset
+ diagnosticOffsetDelta,
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
63
var spanStart = Math.Min(_position - leadingWidthAlreadyCounted + sdi.
Offset
, length);