public static IEnumerable <SyntaxNode[]> QueryCapturesAll(this SyntaxNode node, QulalySelector selector, Compilation?compilation = default) { return(EnumerableMatcher.GetCapturesEnumerable(node, selector, compilation?.GetSemanticModel(node.SyntaxTree))); }
public static SyntaxNode[] QueryCaptures(this SyntaxNode node, QulalySelector selector, Compilation?compilation = default) { return(EnumerableMatcher.GetCapturesEnumerable(node, selector, compilation?.GetSemanticModel(node.SyntaxTree)).FirstOrDefault());; }