14 references to SyntaxDiagnosticInfo
Microsoft.CodeAnalysis.CSharp (13)
Errors\SyntaxDiagnosticInfo.cs (3)
40: this(offset, width, code, Array.Empty<object>()) 45: this(0, 0, code, args) 56return 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)
100return new SyntaxDiagnosticInfo(offset, width, code, args);
Parser\DocumentationCommentParser.cs (2)
796SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(rawInfo.Offset, rawInfo.Width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code); 1041SyntaxDiagnosticInfo crefInfo = new SyntaxDiagnosticInfo(offset, width, ErrorCode.WRN_ErrorOverride, rawInfo, rawInfo.Code);
Parser\SyntaxParser.cs (5)
679return new SyntaxDiagnosticInfo(offset, width, code, SyntaxFacts.GetText(expected)); 683return new SyntaxDiagnosticInfo(offset, width, code, /*unused*/string.Empty, SyntaxFacts.GetText(actual)); 943return new SyntaxDiagnosticInfo(offset, width, code, args); 948return new SyntaxDiagnosticInfo(offset: 0, node.Width, code, args); 1094new SyntaxDiagnosticInfo(finalDiagnosticOffset, 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));