6 overrides of WithLocation
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
94internal override Diagnostic WithLocation(Location location)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
108internal override Diagnostic WithLocation(Location location)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
180internal override Diagnostic WithLocation(Location location)
Diagnostic\DiagnosticWithInfo.cs (1)
195internal override Diagnostic WithLocation(Location location)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
122internal override Diagnostic WithLocation(Location location)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContextBase.cs (1)
165internal override Diagnostic WithLocation(Location location)
8 references to WithLocation
Microsoft.CodeAnalysis (2)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
117return new DiagnosticWithProgrammaticSuppression(_originalUnsuppressedDiagnostic.WithLocation(location), _programmaticSuppressionInfo);
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
124return new CompilerDiagnostic(_original.WithLocation(location), _properties);
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpCompilation.cs (1)
3004builder.Add(error.WithLocation(location));
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
642_diagnostics.Add(diagnostic.WithLocation(sourceLocation)); 659_diagnostics.Add(diagnostic.WithLocation(sourceLocation));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (2)
1271c.ReportDiagnostic(d.WithLocation(Location.Create(c.Compilation.SyntaxTrees.First(), l))); 1360return x.Diagnostic.WithLocation(Location.Create(syntaxTree, TextSpan.FromBounds(start, end)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ParserErrorMessageTests.cs (1)
2634Assert.Equal("error CS1029: #error: '\u0444\u0430\u0439\u043B'", CSharpDiagnosticFormatter.Instance.Format(error.WithLocation(Location.None), EnsureEnglishUICulture.PreferredOrNull));