18 references to ExpressionStatement
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2961case OperationKind.ExpressionStatement:
Generated\Operations.Generated.cs (2)
543/// <item><description><see cref="OperationKind.ExpressionStatement"/></description></item> 4912public override OperationKind Kind => OperationKind.ExpressionStatement;
Operations\ControlFlowGraphBuilder.cs (2)
3104bool isStatement = _currentStatement == operation || operation.Parent.Kind == OperationKind.ExpressionStatement; 3367bool isOnStatementLevel = _currentStatement == operation || (_currentStatement == operation.Parent && _currentStatement?.Kind == OperationKind.ExpressionStatement);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
73context.RegisterOperationAction(blockAnalyzer.AnalyzeExpressionStatement, OperationKind.ExpressionStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
154operation.Parent.Parent?.Kind != OperationKind.ExpressionStatement) 192operation.Parent?.Kind != OperationKind.ExpressionStatement;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenLocalFunctionTests.cs (1)
161Assert.Equal(OperationKind.ExpressionStatement, objectCreationOperation.Parent.Kind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\OutVarTests.cs (1)
35999Assert.Equal(OperationKind.ExpressionStatement, initializerOperation.Parent.Kind);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests.cs (1)
513Assert.Equal(OperationKind.ExpressionStatement, operation.Kind);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
73context.RegisterOperationAction(blockAnalyzer.AnalyzeExpressionStatement, OperationKind.ExpressionStatement);
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\ControlFlowGraphVerifier.cs (1)
1905case OperationKind.ExpressionStatement:
Compilation\TestOperationVisitor.cs (1)
507Assert.Equal(OperationKind.ExpressionStatement, operation.Kind);
Diagnostics\OperationTestAnalyzer.cs (2)
170if (setup.Kind == OperationKind.ExpressionStatement && ((IExpressionStatementOperation)setup).Operation.Kind == OperationKind.SimpleAssignment) 185if (advance.Kind == OperationKind.ExpressionStatement)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
154operation.Parent.Parent?.Kind != OperationKind.ExpressionStatement) 192operation.Parent?.Kind != OperationKind.ExpressionStatement;