public static SyntaxNode?QuerySelector(this SyntaxNode node, QulalySelector selector, Compilation?compilation = default) { return(EnumerableMatcher.GetEnumerable(node, selector, compilation?.GetSemanticModel(node.SyntaxTree)).FirstOrDefault()); }
public static SyntaxNode?QuerySelector(this SyntaxTree syntaxTree, QulalySelector selector, Compilation?compilation = default) { return(QuerySelector(syntaxTree.GetRoot(), selector, compilation)); }
public static SyntaxNode?QuerySelector(this SyntaxNode node, string selector, Compilation?compilation = default) { return(QuerySelector(node, QulalySelector.Parse(selector), compilation)); }
public static IEnumerable <SyntaxNode> QuerySelectorAll(this SyntaxNode node, QulalySelector selector, Compilation?compilation = default) { return(EnumerableMatcher.GetEnumerable(node, selector, compilation?.GetSemanticModel(node.SyntaxTree))); }
public static IEnumerable <SyntaxNode> QuerySelectorAll(this SyntaxTree syntaxTree, QulalySelector selector, Compilation?compilation = default) { return(QuerySelectorAll(syntaxTree.GetRoot(), selector, compilation)); }
public static IEnumerable <SyntaxNode> QuerySelectorAll(this SyntaxNode node, string selector, Compilation?compilation = default) { return(QuerySelectorAll(node, QulalySelector.Parse(selector), compilation)); }