5 implementations of ConstrainedToType
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (4)
4968public abstract ITypeSymbol? ConstrainedToType { get; } 5036public override ITypeSymbol? ConstrainedToType { get; } 5092public override ITypeSymbol? ConstrainedToType { get; } 5160public override ITypeSymbol? ConstrainedToType { get; }
Operations\OperationNodes.cs (1)
205public override ITypeSymbol? ConstrainedToType => null;
18 references to ConstrainedToType
Microsoft.CodeAnalysis (8)
Operations\ControlFlowGraphBuilder.cs (8)
6125return new EventReferenceOperation(eventReference.Event, eventReference.ConstrainedToType, instance, semanticModel: null, eventReference.Syntax, 6131return new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, propertyArguments, instance, semanticModel: null, propertyReference.Syntax, 6201IOperation visitedTarget = new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, ImmutableArray<IArgumentOperation>.Empty, visitedPropertyInstance, 6896return new MethodReferenceOperation(operation.Method, operation.ConstrainedToType, operation.IsVirtual, visitedInstance, semanticModel: null, 6925return new PropertyReferenceOperation(operation.Property, operation.ConstrainedToType, visitedArguments, visitedInstance, semanticModel: null, 6932return new EventReferenceOperation(operation.Event, operation.ConstrainedToType, visitedInstance, semanticModel: null, 7069visitedEventReference = new EventReferenceOperation(eventReference.Event, eventReference.ConstrainedToType, visitedInstance, 7115var visitedEventReference = new EventReferenceOperation(operation.EventReference.Event, operation.EventReference.ConstrainedToType, visitedInstance,
Microsoft.CodeAnalysis.Test.Utilities (10)
Compilation\OperationTreeVerifier.cs (7)
1062Assert.Null(operation.ConstrainedToType); 1072if (operation.ConstrainedToType is not null) 1074LogType(operation.ConstrainedToType, header: " (ConstrainedToType"); 1093if (operation.ConstrainedToType is not null) 1095LogType(operation.ConstrainedToType, header: " (ConstrainedToType"); 1112if (operation.ConstrainedToType is not null) 1114LogType(operation.ConstrainedToType, header: " (ConstrainedToType");
Compilation\TestOperationVisitor.cs (3)
637AssertConstrainedToType(operation.Member, operation.ConstrainedToType); 665Assert.Null(operation.ConstrainedToType); 679if (operation.ConstrainedToType is not null)