public override void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation) { LogString(nameof(IInstanceReferenceExpression)); var kindStr = $"{nameof(InstanceReferenceKind)}.{operation.InstanceReferenceKind}"; LogString($" ({kindStr})"); LogCommonPropertiesAndNewLine(operation); base.VisitInstanceReferenceExpression(operation); }
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); }
public virtual void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation) { DefaultVisit(operation); }
public override void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation) { base.VisitInstanceReferenceExpression(operation); }
public static IInstanceReferenceExpression Update(this IInstanceReferenceExpression self, ITypeSymbol @type) => self;
/// <inheritdoc /> public override IOperation VisitInstanceReferenceExpression(IInstanceReferenceExpression operation, object argument) { return(base.VisitInstanceReferenceExpression(operation, argument)); }
/// <inheritdoc /> public override Expression VisitInstanceReferenceExpression(IInstanceReferenceExpression operation, LocalBinder argument) { return(base.VisitInstanceReferenceExpression(operation, argument)); }
public override IOperation VisitInstanceReferenceExpression(IInstanceReferenceExpression operation, object argument) { return(new InstanceReferenceExpression(((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit)); }
public override void VisitInstanceReferenceExpression(IInstanceReferenceExpression operation) { var instanceReferenceKind = operation.InstanceReferenceKind; base.VisitInstanceReferenceExpression(operation); }