5 implementations of ConstrainedToType
Microsoft.CodeAnalysis (5)
Generated\Operations.Generated.cs (4)
5379public abstract ITypeSymbol? ConstrainedToType { get; } 5447public override ITypeSymbol? ConstrainedToType { get; } 5503public override ITypeSymbol? ConstrainedToType { get; } 5571public override ITypeSymbol? ConstrainedToType { get; }
Operations\OperationNodes.cs (1)
205public override ITypeSymbol? ConstrainedToType => null;
18 references to ConstrainedToType
Microsoft.CodeAnalysis (8)
Operations\ControlFlowGraphBuilder.cs (8)
6240return new EventReferenceOperation(eventReference.Event, eventReference.ConstrainedToType, instance, semanticModel: null, eventReference.Syntax, 6246return new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, propertyArguments, instance, semanticModel: null, propertyReference.Syntax, 6402IOperation visitedTarget = new PropertyReferenceOperation(propertyReference.Property, propertyReference.ConstrainedToType, ImmutableArray<IArgumentOperation>.Empty, visitedPropertyInstance, 7161return new MethodReferenceOperation(operation.Method, operation.ConstrainedToType, operation.IsVirtual, visitedInstance, semanticModel: null, 7190return new PropertyReferenceOperation(operation.Property, operation.ConstrainedToType, visitedArguments, visitedInstance, semanticModel: null, 7197return new EventReferenceOperation(operation.Event, operation.ConstrainedToType, visitedInstance, semanticModel: null, 7334visitedEventReference = new EventReferenceOperation(eventReference.Event, eventReference.ConstrainedToType, visitedInstance, 7380var visitedEventReference = new EventReferenceOperation(operation.EventReference.Event, operation.EventReference.ConstrainedToType, visitedInstance,
Microsoft.CodeAnalysis.Test.Utilities (10)
Compilation\OperationTreeVerifier.cs (7)
1053Assert.Null(operation.ConstrainedToType); 1063if (operation.ConstrainedToType is not null) 1065LogType(operation.ConstrainedToType, header: " (ConstrainedToType"); 1084if (operation.ConstrainedToType is not null) 1086LogType(operation.ConstrainedToType, header: " (ConstrainedToType"); 1103if (operation.ConstrainedToType is not null) 1105LogType(operation.ConstrainedToType, header: " (ConstrainedToType");
Compilation\TestOperationVisitor.cs (3)
656AssertConstrainedToType(operation.Member, operation.ConstrainedToType); 684Assert.Null(operation.ConstrainedToType); 698if (operation.ConstrainedToType is not null)