This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Question: XPath to get function names? #365
Comments
I finally extracted them with |
This was referenced Feb 17, 2019
@vmarkovtsev For functions, this query should work: |
This works, thanks. Is the first |
Yes, an |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I give up: I cannot compose the XPath to extract function names in Semantic mode.
I get all the functions by
//uast:FunctionGroup
, however, theName
node is inside theNodes
array and I don't know how to address it.//uast:FunctionGroup/*[1]
returns the position and//uast:FunctionGroup/*[2]
is already empty.//uast:FunctionGroup/descendant::uast:Identifier
returns all identifiers inside a function. I tried withchild
but failed. So the question is, how do I dig inside the immediate array ofNode
-s inside functions?The text was updated successfully, but these errors were encountered: