Пример #1
0
        public override void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation)
        {
            LogString(nameof(IInstanceReferenceExpression));
            var kindStr = $"{nameof(InstanceReferenceKind)}.{operation.InstanceReferenceKind}";

            LogString($" ({kindStr})");
            LogCommonPropertiesAndNewLine(operation);

            base.VisitInstanceReferenceExpression(operation);
        }
Пример #2
0
 public sealed override void Initialize(AnalysisContext context)
 {
     context.RegisterOperationAction(
         (operationContext) =>
     {
         IInstanceReferenceExpression instanceReference = (IInstanceReferenceExpression)operationContext.Operation;
         operationContext.ReportDiagnostic(Diagnostic.Create(instanceReference.IsExplicit ? ExplicitInstanceDescriptor : ImplicitInstanceDescriptor, instanceReference.Syntax.GetLocation()));
     },
         OperationKind.InstanceReferenceExpression,
         OperationKind.BaseClassInstanceReferenceExpression);
 }
Пример #3
0
 public virtual void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation)
 {
     DefaultVisit(operation);
 }
Пример #4
0
 public virtual void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation)
 {
     DefaultVisit(operation);
 }
Пример #5
0
 public override void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation)
 {
     base.VisitInstanceReferenceExpression(operation);
 }
Пример #6
0
 public static IInstanceReferenceExpression Update(this IInstanceReferenceExpression self, ITypeSymbol @type) => self;
 /// <inheritdoc />
 public override IOperation VisitInstanceReferenceExpression(IInstanceReferenceExpression operation, object argument)
 {
     return(base.VisitInstanceReferenceExpression(operation, argument));
 }
Пример #8
0
 /// <inheritdoc />
 public override Expression VisitInstanceReferenceExpression(IInstanceReferenceExpression operation, LocalBinder argument)
 {
     return(base.VisitInstanceReferenceExpression(operation, argument));
 }
Пример #9
0
 public override IOperation VisitInstanceReferenceExpression(IInstanceReferenceExpression operation, object argument)
 {
     return(new InstanceReferenceExpression(((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit));
 }
Пример #10
0
        public override void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation)
        {
            var instanceReferenceKind = operation.InstanceReferenceKind;

            base.VisitInstanceReferenceExpression(operation);
        }
Пример #11
0
        public override void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation)
        {
            var instanceReferenceKind = operation.InstanceReferenceKind;

            base.VisitInstanceReferenceExpression(operation);
        }