Ejemplo n.º 1
0
 public static SyntaxNode?QuerySelector(this SyntaxNode node, QulalySelector selector, Compilation?compilation = default)
 {
     return(EnumerableMatcher.GetEnumerable(node, selector, compilation?.GetSemanticModel(node.SyntaxTree)).FirstOrDefault());
 }
Ejemplo n.º 2
0
 public static SyntaxNode?QuerySelector(this SyntaxTree syntaxTree, QulalySelector selector, Compilation?compilation = default)
 {
     return(QuerySelector(syntaxTree.GetRoot(), selector, compilation));
 }
Ejemplo n.º 3
0
 public static SyntaxNode?QuerySelector(this SyntaxNode node, string selector, Compilation?compilation = default)
 {
     return(QuerySelector(node, QulalySelector.Parse(selector), compilation));
 }
Ejemplo n.º 4
0
 public static IEnumerable <SyntaxNode> QuerySelectorAll(this SyntaxNode node, QulalySelector selector, Compilation?compilation = default)
 {
     return(EnumerableMatcher.GetEnumerable(node, selector, compilation?.GetSemanticModel(node.SyntaxTree)));
 }
Ejemplo n.º 5
0
 public static IEnumerable <SyntaxNode> QuerySelectorAll(this SyntaxTree syntaxTree, QulalySelector selector, Compilation?compilation = default)
 {
     return(QuerySelectorAll(syntaxTree.GetRoot(), selector, compilation));
 }
Ejemplo n.º 6
0
 public static IEnumerable <SyntaxNode> QuerySelectorAll(this SyntaxNode node, string selector, Compilation?compilation = default)
 {
     return(QuerySelectorAll(node, QulalySelector.Parse(selector), compilation));
 }