17 references to Exists
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
3003
if (testConversion.
Exists
)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
84
if (!conversion.
Exists
)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
156
&& semanticFacts.ClassifyConversion(semanticModel, argumentExpression, paramsType.ElementType).
Exists
)
162
else if (semanticFacts.ClassifyConversion(semanticModel, argumentExpression, parameterType).
Exists
)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
91
if (conversion.
Exists
&& conversion.IsReference)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (2)
88
t => compilation.ClassifyCommonConversion(t.p1.Type, t.p2.Type) is not { IsImplicit: true,
Exists
: true }))
96
return compilation.ClassifyCommonConversion(conflictingMethod.ReturnType, method.ReturnType) is { IsImplicit: true,
Exists
: true };
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
223
if (compilation.ClassifyCommonConversion(conflictingProperty.Type, property.Type) is {
Exists
: true, IsImplicit: true })
264
if (compilation.ClassifyCommonConversion(property.Type, conflictingProperty.Type) is {
Exists
: true, IsImplicit: true })
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
84
if (!conversion.
Exists
)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
91
if (conversion.
Exists
&& conversion.IsReference)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (2)
88
t => compilation.ClassifyCommonConversion(t.p1.Type, t.p2.Type) is not { IsImplicit: true,
Exists
: true }))
96
return compilation.ClassifyCommonConversion(conflictingMethod.ReturnType, method.ReturnType) is { IsImplicit: true,
Exists
: true };
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (2)
251
var exists = FormatBoolProperty(nameof(conversion.
Exists
), conversion.
Exists
);
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
223
if (compilation.ClassifyCommonConversion(conflictingProperty.Type, property.Type) is {
Exists
: true, IsImplicit: true })
264
if (compilation.ClassifyCommonConversion(property.Type, conflictingProperty.Type) is {
Exists
: true, IsImplicit: true })