Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Semantic function structure is inconsistent across languages #364

Open
vmarkovtsev opened this issue Feb 17, 2019 · 1 comment
Open

Semantic function structure is inconsistent across languages #364

vmarkovtsev opened this issue Feb 17, 2019 · 1 comment
Assignees
Labels

Comments

@vmarkovtsev
Copy link

vmarkovtsev commented Feb 17, 2019

Semantic UAST screenshots

Go

go

Java

java

JS

js

PHP

php

Python

python

Ruby

ruby

As can be seen,

//*[@type='uast:FunctionGroup]/Nodes/Node/Name[@type='uast:Identifier']/Name works for Go, JavaScript, Python and Ruby.

//*[@role='Function']/name[@type='uast:Identifier']/Name works for Java and PHP.

Therefore there is no common way to get the function names.

@dennwc dennwc self-assigned this Feb 17, 2019
@dennwc dennwc added the bug label Feb 17, 2019
@dennwc
Copy link
Member

dennwc commented Feb 17, 2019

This is a bug, probably Java and PHP miss transformations for some of the fields (recently discovered a bug in SDK). Will check it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants