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

Position of Identifiers sometimes covers other tokens #53

Open
dennwc opened this issue Jan 22, 2019 · 0 comments
Open

Position of Identifiers sometimes covers other tokens #53

dennwc opened this issue Jan 22, 2019 · 0 comments
Labels

Comments

@dennwc
Copy link
Member

dennwc commented Jan 22, 2019

There are some cases where positional information in identifiers covers the whole parameter declaration.

Here is one of the failing cases:
https://github.com/bblfsh/javascript-driver/blob/master/fixtures/ext_typedecl.js#L9

const packageToBabelConfig = makeWeakCache(
  (file: ConfigFile): ConfigFile | null => {

In the AST positional info of the file identifier covers file: ConfigFile for some reason. See TODO.

@dennwc dennwc added the bug label Jan 22, 2019
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

1 participant