5 implementations of ConstrainedToType
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (4)
5341public abstract ITypeSymbol? ConstrainedToType { get; } 5409public override ITypeSymbol? ConstrainedToType { get; } 5465public override ITypeSymbol? ConstrainedToType { get; } 5533public override ITypeSymbol? ConstrainedToType { get; }
Operations\OperationNodes.cs (1)
205public override ITypeSymbol? ConstrainedToType => null;
18 references to ConstrainedToType
Microsoft.CodeAnalysis (8)
Operations\ControlFlowGraphBuilder.cs (8)
6238return new EventReferenceOperation(eventReference.Event, eventReference.ConstrainedToType, instance, semanticModel: null, eventReference.Syntax, 6244return new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, propertyArguments, instance, semanticModel: null, propertyReference.Syntax, 6400IOperation visitedTarget = new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, ImmutableArray<IArgumentOperation>.Empty, visitedPropertyInstance, 7134return new MethodReferenceOperation(operation.Method, operation.ConstrainedToType, operation.IsVirtual, visitedInstance, semanticModel: null, 7163return new PropertyReferenceOperation(operation.Property, operation.ConstrainedToType, visitedArguments, visitedInstance, semanticModel: null, 7170return new EventReferenceOperation(operation.Event, operation.ConstrainedToType, visitedInstance, semanticModel: null, 7307visitedEventReference = new EventReferenceOperation(eventReference.Event, eventReference.ConstrainedToType, visitedInstance, 7353var visitedEventReference = new EventReferenceOperation(operation.EventReference.Event, operation.EventReference.ConstrainedToType, visitedInstance,
Microsoft.CodeAnalysis.Test.Utilities (10)
Compilation\OperationTreeVerifier.cs (7)
1071Assert.Null(operation.ConstrainedToType); 1081if (operation.ConstrainedToType is not null) 1083LogType(operation.ConstrainedToType, header: " (ConstrainedToType"); 1102if (operation.ConstrainedToType is not null) 1104LogType(operation.ConstrainedToType, header: " (ConstrainedToType"); 1121if (operation.ConstrainedToType is not null) 1123LogType(operation.ConstrainedToType, header: " (ConstrainedToType");
Compilation\TestOperationVisitor.cs (3)
655AssertConstrainedToType(operation.Member, operation.ConstrainedToType); 683Assert.Null(operation.ConstrainedToType); 697if (operation.ConstrainedToType is not null)