3 instantiations of RudeEditDiagnostic
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
597
return DocumentAnalysisResults.SyntaxErrors(newDocument.Id, filePath, [new
RudeEditDiagnostic
(RudeEditKind.ExperimentalFeaturesEnabled, default)], syntaxError: null, analysisStopwatch.Elapsed, hasChanges);
606
return DocumentAnalysisResults.SyntaxErrors(newDocument.Id, filePath, [new
RudeEditDiagnostic
(RudeEditKind.NotSupportedByRuntime, default)], syntaxError: null, analysisStopwatch.Elapsed, hasChanges);
1202
diagnostics.Add(new
RudeEditDiagnostic
(isNonLeaf ? RudeEditKind.ActiveStatementUpdate : RudeEditKind.PartiallyExecutedActiveStatementUpdate, newSpan));
29 references to RudeEditDiagnostic
Microsoft.CodeAnalysis.Features (29)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (19)
408
internal abstract void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, Match<SyntaxNode> match, Edit<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap);
409
internal abstract void ReportEnclosingExceptionHandlingRudeEdits(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, IEnumerable<Edit<SyntaxNode>> exceptionHandlingEdits, SyntaxNode oldStatement, TextSpan newStatementSpan);
425
ArrayBuilder<
RudeEditDiagnostic
> diagnostics,
436
internal abstract void ReportInsertedMemberSymbolRudeEdits(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, ISymbol newSymbol, SyntaxNode newNode, bool insertingIntoExistingContainingType);
618
using var _2 = ArrayBuilder<
RudeEditDiagnostic
>.GetInstance(out var diagnostics);
713
static void LogRudeEdits(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, SourceText text, string filePath)
736
private void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, EditScript<SyntaxNode> syntacticEdits, Dictionary<SyntaxNode, EditKind> editMap)
782
ArrayBuilder<
RudeEditDiagnostic
> diagnostics,
946
[Out] ArrayBuilder<
RudeEditDiagnostic
> diagnostics,
1334
private ActiveStatement GetActiveStatementWithSpan(UnmappedActiveStatement oldStatement, SyntaxTree newTree, TextSpan newSpan, ArrayBuilder<
RudeEditDiagnostic
> diagnostics, CancellationToken cancellationToken)
1361
ArrayBuilder<
RudeEditDiagnostic
> diagnostics,
1767
protected void AddAroundActiveStatementRudeDiagnostic(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, SyntaxNode? oldNode, SyntaxNode? newNode, TextSpan newActiveStatementSpan)
1785
protected void AddRudeTypeUpdateAroundActiveStatement(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, SyntaxNode newNode, ITypeSymbol oldType, ITypeSymbol newType)
1794
protected void AddRudeUpdateAroundActiveStatement(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, SyntaxNode newNode)
1803
protected void AddRudeInsertAroundActiveStatement(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, SyntaxNode newNode)
1812
protected void AddRudeDeleteAroundActiveStatement(ArrayBuilder<
RudeEditDiagnostic
> diagnostics, SyntaxNode oldNode, TextSpan newActiveStatementSpan)
1822
ArrayBuilder<
RudeEditDiagnostic
> diagnostics,
1867
private void ReportRudeEditsAndInserts(List<SyntaxNode?>? oldNodes, List<SyntaxNode?> newNodes, ArrayBuilder<
RudeEditDiagnostic
> diagnostics)
1897
ArrayBuilder<
RudeEditDiagnostic
> diagnostics,
EditAndContinue\DocumentAnalysisResults.cs (3)
36
public ImmutableArray<
RudeEditDiagnostic
> RudeEdits { get; }
111
ImmutableArray<
RudeEditDiagnostic
> rudeEdits,
191
public static DocumentAnalysisResults SyntaxErrors(DocumentId documentId, string filePath, ImmutableArray<
RudeEditDiagnostic
> rudeEdits, Diagnostic? syntaxError, TimeSpan elapsedTime, bool hasChanges)
EditAndContinue\EditSession.cs (1)
812
using var _6 = ArrayBuilder<(DocumentId, ImmutableArray<
RudeEditDiagnostic
>)>.GetInstance(out var documentsWithRudeEdits);
EditAndContinue\EditSessionTelemetry.cs (2)
129
public void LogRudeEditDiagnostics(ImmutableArray<
RudeEditDiagnostic
> diagnostics, Guid projectTelemetryId)
133
foreach (
var
diagnostic in diagnostics)
EditAndContinue\RudeEditDiagnostic.cs (1)
62
public static bool HasBlockingRudeEdits(this IEnumerable<
RudeEditDiagnostic
> diagnostics)
EditAndContinue\SolutionUpdate.cs (3)
16
ImmutableArray<(DocumentId DocumentId, ImmutableArray<
RudeEditDiagnostic
> Diagnostics)> documentsWithRudeEdits,
23
public readonly ImmutableArray<(DocumentId DocumentId, ImmutableArray<
RudeEditDiagnostic
> Diagnostics)> DocumentsWithRudeEdits = documentsWithRudeEdits;
28
ImmutableArray<(DocumentId, ImmutableArray<
RudeEditDiagnostic
>)> documentsWithRudeEdits,