public override TAbstractAnalysisValue VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation, object argument)
        {
            var value = base.VisitTypeParameterObjectCreation(operation, argument);
            PointsToAbstractValue instanceLocation = GetPointsToAbstractValue(operation);

            return(HandleInstanceCreation(operation, instanceLocation, value));
        }
Esempio n. 2
0
 public override void VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation)
 {
     Assert.Equal(OperationKind.TypeParameterObjectCreation, operation.Kind);
     if (operation.Initializer == null)
     {
         Assert.Empty(operation.Children);
     }
     else
     {
         Assert.Same(operation.Initializer, operation.Children.Single());
     }
 }
Esempio n. 3
0
            public override PointsToAbstractValue VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation, object argument)
            {
                var arguments = ImmutableArray <IOperation> .Empty;

                return(VisitTypeCreationWithArgumentsAndInitializer(arguments, operation.Initializer, operation, argument));
            }
            public override NullAbstractValue VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation, object argument)
            {
                var _ = base.VisitTypeParameterObjectCreation(operation, argument);

                return(NullAbstractValue.NotNull);
            }
Esempio n. 5
0
 public override IOperation VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation, object argument)
 {
     return(new TypeParameterObjectCreationExpression(Visit(operation.Initializer), ((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit));
 }
Esempio n. 6
0
 public virtual void VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation)
 {
     DefaultVisit(operation);
 }
Esempio n. 7
0
 public override void VisitTypeParameterObjectCreation([NotNull] ITypeParameterObjectCreationOperation operation)
 {
 }
Esempio n. 8
0
 public override void VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation)
 {
     base.VisitTypeParameterObjectCreation(operation);
 }
Esempio n. 9
0
 public override bool VisitTypeParameterObjectCreation([NotNull] ITypeParameterObjectCreationOperation operation1,
                                                       [CanBeNull] IOperation argument)
 {
     return(argument is ITypeParameterObjectCreationOperation operation2 &&
            AreBaseOperationsEqual(operation1, operation2));
 }