protected internal override AwaitInfo VisitAwaitInfo(StaticAwaitInfo node)
        {
            var args = new List <object>
            {
                new XElement(nameof(node.GetAwaiter), Visit(node.GetAwaiter)),
                new XAttribute(nameof(node.IsCompleted), node.IsCompleted),
                new XAttribute(nameof(node.GetResult), node.GetResult)
            };

            _nodes.Push(new XElement(nameof(StaticAwaitInfo), args));

            return(node);
        }
Beispiel #2
0
 protected internal virtual AwaitInfo VisitAwaitInfo(StaticAwaitInfo node)
 {
     return(node.Update(VisitAndConvert(node.GetAwaiter, nameof(VisitAwaitInfo))));
 }