bblfsh / go-driver

GNU General Public License v3.0
10 stars 9 forks source link

Driver returns more than one the same comment #28

Open dpordomingo opened 5 years ago

dpordomingo commented 5 years ago

If it's parsed the following example:

package main

// inline comment.
const a=3

It is returned 4 nodes having Comment role instead of only one

image

addendum: This issue might be related to these similar ones in other languages drivers: https://github.com/bblfsh/javascript-driver/issues/36 https://github.com/bblfsh/python-driver/issues/167 https://github.com/bblfsh/java-driver/issues/86