File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
go/ql/lib/semmle/go/frameworks Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -148,15 +148,13 @@ module XPath {
148
148
*/
149
149
private class LestratGoLibxml2XPathExpressionString extends Range {
150
150
LestratGoLibxml2XPathExpressionString ( ) {
151
- exists ( Function f , string name | name .matches ( "Parse%" ) |
152
- f .hasQualifiedName ( "github.com/lestrrat-go/libxml2/parser.Parser" , name ) and
153
- //f.hasQualifiedName(package("github.com/lestrrat-go/libxml2/parser.Parser", ""), name) and
154
- this = f .getACall ( ) .getArgument ( 0 )
151
+ exists ( Method m , string name | name .matches ( "Parse%" ) |
152
+ m .hasQualifiedName ( package ( "github.com/lestrrat-go/libxml2" , "parser" ) , "Parser" , name ) and
153
+ this = m .getACall ( ) .getArgument ( 0 )
155
154
)
156
155
}
157
156
}
158
157
159
-
160
158
/**
161
159
* An XPath expression string used in an API function of the
162
160
* [xpathparser](https://github.com/santhosh-tekuri/xpathparser) package.
You can’t perform that action at this time.
0 commit comments