1 implementation of IInvalidOperation
Microsoft.CodeAnalysis (1)
Operations\OperationNodes.cs (1)
85internal sealed partial class InvalidOperation : Operation, IInvalidOperation
40 references to IInvalidOperation
Microsoft.AspNetCore.App.Analyzers (1)
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (1)
56if (returnOperation.ReturnedValue is null or IInvalidOperation)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
67if (returnedValue is null || returnedValue is IInvalidOperation)
Microsoft.CodeAnalysis (12)
Generated\OperationKind.Generated.cs (1)
19/// <summary>Indicates an <see cref="IInvalidOperation"/>.</summary>
Generated\Operations.Generated.cs (6)
3339/// in non-error cases, or an <see cref="IInvalidOperation" /> in error cases. 3642/// <see cref="IDynamicObjectCreationOperation" /> or <see cref="IInvalidOperation" /> for invalid code. 3709/// This can be an <see cref="IInvocationOperation" /> or <see cref="IDynamicInvocationOperation" /> for valid code, and <see cref="IInvalidOperation" /> for invalid code. 3893/// The operation representing the attribute. This can be a <see cref="IObjectCreationOperation" /> in non-error cases, or an <see cref="IInvalidOperation" /> in error cases. 11415public virtual void VisitInvalid(IInvalidOperation operation) => DefaultVisit(operation); 11554public virtual TResult? VisitInvalid(IInvalidOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (3)
7443public override IOperation VisitInvalid(IInvalidOperation operation, int? captureIdForResult) 7492IOperation visitInvalidOperationStatement(IInvalidOperation invalidOperation) 7499IOperation visitInvalidOperationExpression(IInvalidOperation invalidOperation)
Operations\OperationCloner.cs (1)
45public override IOperation VisitInvalid(IInvalidOperation operation, object? argument)
Operations\OperationFactory.cs (1)
11public static IInvalidOperation CreateInvalidOperation(SemanticModel semanticModel, SyntaxNode syntax, ImmutableArray<IOperation> children, bool isImplicit)
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
50/// Indicates if the operation block has an <see cref="IInvalidOperation"/>. 191if (value is IInvalidOperation ||
Microsoft.CodeAnalysis.CSharp (5)
BoundTree\IBoundInvalidNode.cs (1)
11/// For nodes that can generate an <see cref="IInvalidOperation"/>, this allows the Lazy implementation
Operations\CSharpOperationFactory.cs (4)
504var invalidOperation = OperationFactory.CreateInvalidOperation(_semanticModel, boundAttribute.Syntax, GetIOperationChildren(boundAttribute), isImplicit: true); 1401private IInvalidOperation CreateBoundBadExpressionOperation(BoundBadExpression boundBadExpression) 2089private IInvalidOperation CreateBoundBadStatementOperation(BoundBadStatement boundBadStatement) 2861var reference = OperationFactory.CreateInvalidOperation(_semanticModel, subpatternSyntax, ImmutableArray<IOperation>.Empty, isImplicit: true);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
227if (operation is IInvalidOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1168if (oldInterpolationPart is IInterpolatedStringAppendOperation { AppendCall: not IInvalidOperation } && 1169newInterpolationPart is IInterpolatedStringAppendOperation { AppendCall: IInvalidOperation })
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
227if (operation is IInvalidOperation)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\TopLevelStatementsTests.cs (2)
330Assert.IsAssignableFrom<IInvalidOperation>(operation1); 510Assert.IsAssignableFrom<IInvalidOperation>(operation2);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
1168if (oldInterpolationPart is IInterpolatedStringAppendOperation { AppendCall: not IInvalidOperation } && 1169newInterpolationPart is IInterpolatedStringAppendOperation { AppendCall: IInvalidOperation })
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
50/// Indicates if the operation block has an <see cref="IInvalidOperation"/>. 191if (value is IInvalidOperation ||
Microsoft.CodeAnalysis.Test.Utilities (7)
Compilation\OperationTreeVerifier.cs (2)
1786public override void VisitInvalid(IInvalidOperation operation) 1788LogString(nameof(IInvalidOperation));
Compilation\TestOperationVisitor.cs (3)
1269public override void VisitInvalid(IInvalidOperation operation) 1323Assert.True(operation.HandlerCreation is IObjectCreationOperation or IDynamicObjectCreationOperation or IInvalidOperation); 1354Assert.True(operation.AppendCall is IInvocationOperation or IDynamicInvocationOperation or IInvalidOperation);
Diagnostics\OperationTestAnalyzer.cs (2)
56var invalidOperation = (IInvalidOperation)operationContext.Operation;
Microsoft.CodeAnalysis.VisualBasic (1)
BoundTree\IBoundInvalidNode.vb (1)
9''' For nodes that can generate an <see cref="IInvalidOperation"/>, this allows the Lazy implementation
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.vb (1)
2601Return DirectCast(initializerValue, IInvalidOperation).ChildOperations.Cast(Of IConversionOperation).Single()