Juanjo Alvarez Martinez

Results 55 comments of Juanjo Alvarez Martinez

They work pretty well... for identifiers and literals. For statements and reserved words, as you proved, they're problematic (same happens with "from x import y" in Python which is a...

Even with semantic objects it would be nice to keep the concept either as a single unified name or as some kind of field metadata so XPath queries doesn't have...

Python has two variants: ```python "some string {w} named interpolation".format(w='with') # or "some string {0} positional {1}".format('with', 'interpolation') # or "some string {} implicit positional {}".format('with', 'interpolation') # this one...

Works for me with this query: `//uast:FunctionGroup/*/uast:Alias/Name/uast:Identifier/Name` ``` %  ~/borrame  go run pok.go Name node: map[@pos:map[end:map[@type:uast:Position col:12 line:2 offset:24] start:map[col:6 line:2 offset:18 @type:uast:Position] @type:uast:Positions] @type:uast:Identifier Name:myname] Get attribute:...

`Name` is the property inside the `uast:Alias`, now to continue "browsing" the tree to get the token you need to go trough the `uast:Identifier` to get its `Name` property because...

Yes, I was speaking of properties in the JSON sense. No expert in XPath either.

It makes sense. Once you write a `/` you're telling XPath that you're "walking" over the nodes and then you've to specify the node types to walk so if you...

I'm not sure of the exact mapping to XML on the SDK (@dennwc can you help us on this?) but I know it makes sense related to how the UAST...

Nodes inside semantic objects (like in this case the Identifier inside the QualifiedIdentifier) doesn't have roles because the parent semantic object itself (QualifiedIdentifier) have a standard structure and, if it's...

@bzz yes, for what I'm seeing, it'll happen on almost all drivers. For the Python driver I'm fixing some node-specific mappings but resorting to 1) + adding an issue for...