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