protected internal override AwaitInfo VisitAwaitInfo(DynamicAwaitInfo node) { var args = new List <object> { new XAttribute(nameof(node.ResultDiscarded), node.ResultDiscarded) }; if (node.Context != null) { args.Add(new XAttribute(nameof(node.Context), node.Context)); } _nodes.Push(new XElement(nameof(DynamicAwaitInfo), args)); return(node); }
/// <summary> /// Visits the children of the <see cref="DynamicAwaitInfo" />. /// </summary> /// <param name="node">The object to visit.</param> /// <returns>The modified object, if it or any subexpression was modified; otherwise, returns the original object.</returns> protected internal virtual AwaitInfo VisitAwaitInfo(DynamicAwaitInfo node) { return(node); }
/// <summary> /// Visits the children of the <see cref="DynamicAwaitInfo" />. /// </summary> /// <param name="node">The object to visit.</param> /// <returns>The modified object, if it or any subexpression was modified; otherwise, returns the original object.</returns> protected internal virtual AwaitInfo VisitAwaitInfo(DynamicAwaitInfo node) => node;