示例#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));
 }