79 references to None
ILLink.RoslynAnalyzer (1)
DataFlow\UnexpectedOperationHandler.cs (1)
22
if (operation.Kind is OperationKind.
None
)
Metrics (5)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
Metrics.Legacy (5)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
Microsoft.CodeAnalysis (11)
Generated\Operations.Generated.cs (5)
9580
public override OperationKind Kind => OperationKind.
None
;
9644
public override OperationKind Kind => OperationKind.
None
;
9696
public override OperationKind Kind => OperationKind.
None
;
9715
public override OperationKind Kind => OperationKind.
None
;
9777
public override OperationKind Kind => OperationKind.
None
;
Operations\ControlFlowGraphBuilder.cs (5)
1622
Debug.Assert(rewrittenThrow!.Kind == OperationKind.
None
);
1640
Debug.Assert(rewrittenThrow.Kind == OperationKind.
None
);
2929
Debug.Assert(rewrittenThrow.Kind == OperationKind.
None
);
3071
Debug.Assert(rewrittenThrow.Kind == OperationKind.
None
);
6220
Debug.Assert(instance.Kind == OperationKind.Invalid || instance.Kind == OperationKind.
None
);
Operations\OperationNodes.cs (1)
66
public override OperationKind Kind => OperationKind.
None
;
Microsoft.CodeAnalysis.Analyzers (5)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
src\RoslynAnalyzers\Utilities\FlowAnalysis\Extensions\ControlFlowGraphExtensions.cs (1)
47
cfg.OriginalOperation.Kind is OperationKindEx.Attribute or OperationKind.
None
or OperationKind.ParameterInitializer)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (1)
189
return operation.Kind == OperationKind.
None
?
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2805
if (operation.Kind == OperationKind.
None
)
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
259
if (operation is { Kind: OperationKind.
None
, Parent: INameOfOperation { Argument: var nameofArgument } } &&
268
OperationKind.
None
,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
390
if (operation.Kind == OperationKind.
None
)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
286
if (operation.Kind == OperationKind.
None
)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
286
if (operation.Kind == OperationKind.
None
)
Microsoft.CodeAnalysis.Features (3)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
259
if (operation is { Kind: OperationKind.
None
, Parent: INameOfOperation { Argument: var nameofArgument } } &&
268
OperationKind.
None
,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
390
if (operation.Kind == OperationKind.
None
)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
Microsoft.CodeAnalysis.Test.Utilities (13)
Compilation\ControlFlowGraphVerifier.cs (1)
1899
case OperationKind.
None
:
Compilation\OperationTreeVerifier.cs (1)
400
if (!children.IsEmpty || operation.Kind != OperationKind.
None
)
Compilation\TestOperationVisitor.cs (9)
39
Assert.Equal(OperationKind.
None
, operation.Kind);
55
Assert.Equal(OperationKind.
None
, operation.Kind);
482
Assert.Equal(OperationKind.
None
, operation.Kind);
501
Assert.Equal(OperationKind.
None
, operation.Kind);
513
Assert.Equal(OperationKind.
None
, operation.Kind);
621
Assert.Equal(OperationKind.
None
, operation.Kind);
741
Assert.Equal(OperationKind.
None
, operation.Kind);
1258
Assert.Equal(OperationKind.
None
, operation.Kind);
1708
case OperationKind.
None
:
Diagnostics\OperationTestAnalyzer.cs (2)
1229
OperationKind.
None
);
1328
if (statement.Kind == OperationKind.
None
)
Roslyn.Diagnostics.Analyzers (5)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
Test.Utilities (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");
Text.Analyzers (5)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
105
if ((operationBlock.Kind is OperationKind.
None
or OperationKindEx.Attribute) &&
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (1)
272
case OperationKind.
None
:
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
193
/// True if this operation has no IOperation API support, i.e. <see cref="OperationKind.
None
"/> and
199
return operation.Kind == OperationKind.
None
&& operation.Parent == null;
493
Debug.Assert(operation.Kind is OperationKind.
None
or OperationKindEx.Attribute, $"Unexpected root operation kind: {operation.Kind}");