16 references to SyntaxDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (15)
Errors\SyntaxDiagnosticInfo.cs (3)
25: this(offset, width, code, Array.Empty<object>()) 30: this(0, 0, code, args) 41return new SyntaxDiagnosticInfo(offset, this.Width, (ErrorCode)this.Code, this.Arguments);
Errors\XmlSyntaxDiagnosticInfo.cs (1)
21: base(offset, width, ErrorCode.WRN_XMLParseError, args)
Parser\AbstractLexer.cs (1)
123return new SyntaxDiagnosticInfo(offset, width, code, args);
Parser\DocumentationCommentParser.cs (2)
796SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(rawInfo.Offset, rawInfo.Width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code); 1043SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(offset, width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
Parser\SyntaxParser.cs (7)
662return new SyntaxDiagnosticInfo(offset, width, code, SyntaxFacts.GetText(expected)); 666return new SyntaxDiagnosticInfo(offset, width, code, /*unused*/string.Empty, SyntaxFacts.GetText(actual)); 880return new SyntaxDiagnosticInfo(offset, width, code, args); 885return new SyntaxDiagnosticInfo(node.GetLeadingTriviaWidth(), node.Width, code, args); 967tokenDiagnostics[i] = new SyntaxDiagnosticInfo(d.Offset - leadingWidth, d.Width, (ErrorCode)d.Code, d.Arguments); 1020targetDiagnostics[i] = new SyntaxDiagnosticInfo(d.Offset + triviaWidth, d.Width, (ErrorCode)d.Code, d.Arguments); 1034new SyntaxDiagnosticInfo(newOffset, diagnostic.Width, (ErrorCode)diagnostic.Code, diagnostic.Arguments)
Syntax\InternalSyntax\SyntaxFirstTokenReplacer.cs (1)
75new SyntaxDiagnosticInfo(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
121verifyWithSeverity(new SyntaxDiagnosticInfo(1, 2, ErrorCode.ERR_DuplicateTypeParameter, args));