1 implementation of SupportsKeyValuePairElement
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
83
public bool
SupportsKeyValuePairElement
(ParseOptions options)
6 references to SupportsKeyValuePairElement
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
64
this.SyntaxFacts.
SupportsKeyValuePairElement
(_objectCreationExpression.SyntaxTree.Options))
Microsoft.CodeAnalysis.Features (5)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (3)
129
if (initializerElementCount != 2 || !this.SyntaxFacts.
SupportsKeyValuePairElement
(_objectCreationExpression.SyntaxTree.Options))
138
if (_analyzeForCollectionExpression && seenIndexAssignment && !this.SyntaxFacts.
SupportsKeyValuePairElement
(_objectCreationExpression.SyntaxTree.Options))
206
return new(expressionStatement, UseSpread: false, UseKeyValue: this.State.SyntaxFacts.
SupportsKeyValuePairElement
(statement.SyntaxTree.Options));
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
196
this.SyntaxFacts.
SupportsKeyValuePairElement
(invocationExpression.SyntaxTree.Options) &&
439
if (@this.SyntaxFacts.
SupportsKeyValuePairElement
(expression.SyntaxTree.Options) &&