public static async Task <T> AcceptAsync <T>(this SyntaxNode node, CommentConvertingVisitorWrapper <T> visitorWrapper) where T : SyntaxNode { if (node == null) { return(default(T)); } return(await visitorWrapper.Visit(node)); }
public static T Accept <T>(this SyntaxNode node, CommentConvertingVisitorWrapper <T> visitorWrapper) where T : SyntaxNode { return(visitorWrapper.Visit(node)); }