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