Example #1
0
 // https://github.com/dotnet/roslyn/issues/22007
 internal virtual void VisitAwaitExpression(IAwaitExpression operation)
 {
     DefaultVisit(operation);
 }
Example #2
0
 public virtual void VisitAwaitExpression(IAwaitExpression operation)
 {
     DefaultVisit(operation);
 }
 public PreserveThreadContextHighlighting(IAwaitExpression awaitExpression)
 {
     AwaitExpression = awaitExpression;
 }
 public static IAwaitExpression Update(this IAwaitExpression self, IOperation @expression, IMethodSymbol @getAwaiter, IPropertySymbol @isCompleted, IMethodSymbol @getResult, ITypeSymbol @type) => self;
Example #5
0
 TransformationImpact IExpressionVisitor <TransformationImpact> .Visit(IAwaitExpression expression)
 {
     return(CalculateRefactorImpact(expression));
 }
Example #6
0
 public override void VisitAwaitExpression(IAwaitExpression operation)
 {
     base.VisitAwaitExpression(operation);
 }
 public bool CanBeAdded(IAwaitExpression element)
 {
     return(!attributeFunctionChecker.IsUnder(element));
 }
 /// <inheritdoc />
 public override IOperation VisitAwaitExpression(IAwaitExpression operation, object argument)
 {
     return(base.VisitAwaitExpression(operation, argument));
 }
Example #9
0
 internal override void VisitAwaitExpression(IAwaitExpression operation)
 {
     base.VisitAwaitExpression(operation);
 }
Example #10
0
 public abstract TransformationImpact CalculateRefactorImpact(IAwaitExpression expression);
Example #11
0
        public bool CanBeAdded(IAwaitExpression element)
        {
            var declaredType = element.Task?.GetExpressionType() as IDeclaredType;

            return(!declaredType.IsConfigurableAwaitable() && !declaredType.IsGenericConfigurableAwaitable());
        }
Example #12
0
 public override void VisitAwaitExpression(IAwaitExpression operation)
 {
     Visit(operation.Upon);
 }
Example #13
0
 public abstract void Translate(IAwaitExpression expression);
Example #14
0
 public AsyncAwaitMayBeElidedHighlighting(IAwaitExpression awaitExpression)
 {
     AwaitExpression = awaitExpression;
 }
Example #15
0
 public bool CanBeAdded(IAwaitExpression element) => !attributeTypeChecker.IsUnder(element);
 /// <inheritdoc />
 public override Expression VisitAwaitExpression(IAwaitExpression operation, LocalBinder argument)
 {
     return(Expressive.Await(operation.AwaitedValue.Accept(this, argument)));
 }
Example #17
0
 public bool NeedAdding(IAwaitExpression element)
 {
     return(awaitCustomCheckers.All(x => x.CanBeAdded(element)));
 }
Example #18
0
 public ConsiderUsingConfigureAwaitBulbItem(IAwaitExpression literalExpression, bool value)
 {
     _literalExpression = literalExpression;
     _value             = value;
 }
Example #19
0
 public override void VisitAwaitExpression(IAwaitExpression operation)
 {
     base.VisitAwaitExpression(operation);
 }
Example #20
0
 public ConfigureAwaitHighlighting(IAwaitExpression awaitExpression)
 {
     AwaitExpression = awaitExpression;
 }
Example #21
0
 public ConsiderUsingConfigureAwaitHighlighting(IAwaitExpression expression)
 {
     Expression = expression;
 }
Example #22
0
 void IExpressionVisitor.Visit(IAwaitExpression expression)
 {
     this.Translate(expression);
 }
Example #23
0
 public override IOperation VisitAwaitExpression(IAwaitExpression operation, object argument)
 {
     return(new AwaitExpression(Visit(operation.Expression), ((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit));
 }
Example #24
0
 public abstract IExpression Transform(IAwaitExpression expression);
 public ConsiderUsingConfigureAwaitBulbItem(IAwaitExpression literalExpression, bool value)
 {
     _literalExpression = literalExpression;
     _value = value;
 }
Example #26
0
 public override void VisitAwaitExpression(IAwaitExpression operation)
 {
     Visit(operation.AwaitedValue);
 }
 public virtual void VisitAwaitExpression <TExpression>(IAwaitExpression <TExpression> awaitExpression)
     where TExpression : IExpression
 {
     Visit(awaitExpression);
 }
Example #28
0
 internal RedundantCapturedContextSuggestion([NotNull] string message, [NotNull] IAwaitExpression awaitExpression) : base(message)
     => this.awaitExpression = awaitExpression;
 public override void VisitAwaitExpression <TExpression>(IAwaitExpression <TExpression> awaitExpression)
 {
     Steps.Add(new WriteAwaitKeyword());
     Steps.Add(new WriteWhitespace());
     Steps.Add(new WriteExpression <TExpression>(awaitExpression.Expression));
 }
 public ConsiderUsingConfigureAwaitHighlighting(IAwaitExpression expression)
 {
     Expression = expression;
 }
Example #31
0
 public TransformationKind Visit(IAwaitExpression expression, ITransformationContext context)
 {
     throw new NotImplementedException();
 }