14 references to Instance
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (4)
272
CSharpSemanticFacts.
Instance
.IsWrittenTo(semanticModel, instanceOperation.Syntax, cancellationToken))
294
if (CSharpSemanticFacts.
Instance
.IsWrittenTo(semanticModel, fieldReference.Syntax, cancellationToken))
305
if (CSharpSemanticFacts.
Instance
.IsWrittenTo(semanticModel, propertyReference.Syntax, cancellationToken))
336
if (CSharpSemanticFacts.
Instance
.IsWrittenTo(semanticModel, operation.Syntax, cancellationToken))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
116
if (CSharpSemanticFacts.
Instance
.IsInExpressionTree(semanticModel, anonymousFunction, expressionType, cancellationToken))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
22
protected override ISemanticFacts SemanticFacts => CSharpSemanticFacts.
Instance
;
src\Analyzers\CSharp\Analyzers\RemoveUnusedMembers\CSharpRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
24
protected override ISemanticFacts SemanticFacts => CSharpSemanticFacts.
Instance
;
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
40
=> CSharpSemanticFacts.
Instance
;
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
201
if (CSharpSemanticFacts.
Instance
.IsInExpressionTree(semanticModel, instance.Syntax, infoCache.ExpressionOfTType, cancellationToken))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
91
if (CSharpSemanticFacts.
Instance
.IsInExpressionTree(semanticModel, operation.Syntax, infoCache.ExpressionOfTType, context.CancellationToken))
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
96
if (CSharpSemanticFacts.
Instance
.IsInExpressionTree(semanticModel, syntax, expressionType, context.CancellationToken))
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
38
=> CSharpSemanticFacts.
Instance
;
src\Analyzers\CSharp\Analyzers\UseThrowExpression\CSharpUseThrowExpressionDiagnosticAnalyzer.cs (1)
19
=> CSharpSemanticFacts.
Instance
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
424
return !CSharpSemanticFacts.
Instance
.IsSafeToChangeAssociativity(