12 instantiations of InvalidOperation
Microsoft.CodeAnalysis (12)
Operations\ControlFlowGraphBuilder.cs (10)
3290return new InvalidOperation(ImmutableArray.Create<IOperation>(child), 3302return new InvalidOperation(children, 4607result = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Collection.Syntax, 5856initializer = new InvalidOperation(ImmutableArray.Create(initializer, operationInitializer), 6983return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), isImplicit: true); 6996return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), isImplicit: true); 7250var value = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, 7472IOperation initializedInstance = new InvalidOperation(children.ToImmutableAndFree(), semanticModel: null, operation.Syntax, operation.Type, 7496return new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, invalidOperation.Syntax, invalidOperation.Type, invalidOperation.GetConstantValue(), IsImplicit(invalidOperation)); 7502new InvalidOperation(VisitArray(children.ToImmutableAndFree()), semanticModel: null,
Operations\OperationCloner.cs (1)
47return new InvalidOperation(VisitArray(((InvalidOperation)operation).Children), ((Operation)operation).OwningSemanticModel, operation.Syntax, operation.Type, operation.GetConstantValue(), operation.IsImplicit);
Operations\OperationFactory.cs (1)
13return new InvalidOperation(children, semanticModel, syntax, type: null, constantValue: null, isImplicit: isImplicit);
10 references to InvalidOperation
Microsoft.CodeAnalysis (10)
Operations\ControlFlowGraphBuilder.cs (7)
3478if (operation is InvalidOperation invalidOperation) 3492else if (enumerator.Current is InvalidOperation invalidChild) 3503static bool checkInvalidChildren(InvalidOperation operation) 7250var value = new InvalidOperation(ImmutableArray<IOperation>.Empty, semanticModel: null, 7446children.AddRange(((InvalidOperation)operation).Children); 7989Debug.Assert(simpleAssignment.Target is InvalidOperation); 8082Debug.Assert(simpleAssignment.Target is InvalidOperation);
Operations\IOperation.OperationList.cs (1)
44case InvalidOperation { Children: var children }:
Operations\IOperation.OperationList.Reversed.cs (1)
47case InvalidOperation { Children: var children }:
Operations\OperationCloner.cs (1)
47return new InvalidOperation(VisitArray(((InvalidOperation)operation).Children), ((Operation)operation).OwningSemanticModel, operation.Syntax, operation.Type, operation.GetConstantValue(), operation.IsImplicit);