12 references to ToImmutableAndClear
Microsoft.CodeAnalysis.CodeStyle (3)
AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
82
matchKinds.
ToImmutableAndClear
());
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
71
context.RegisterSyntaxNodeAction(AnalyzeNode, matchKinds.
ToImmutableAndClear
());
IntervalTree`1.cs (1)
152
return result.
ToImmutableAndClear
();
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
AbstractAddExplicitCastCodeFixProvider.cs (1)
99
CodeAction.Create(CodeFixesResources.Add_explicit_cast, actions.
ToImmutableAndClear
(), isInlinable: false),
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
125
return result.
ToImmutableAndClear
();
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
166
return diagnostics.
ToImmutableAndClear
();
CSharpSemanticFacts.cs (2)
205
return builder.
ToImmutableAndClear
();
217
return builder.
ToImmutableAndClear
();
SyntaxTriviaListExtensions.cs (2)
58
result.Add(currentLine.
ToImmutableAndClear
());
62
return result.
ToImmutableAndClear
();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpTypeInferenceService.TypeInferrer.cs (1)
1515
return result.
ToImmutableAndClear
();
OperatorGenerator.cs (1)
123
return tokens.
ToImmutableAndClear
().ToSyntaxTokenList();