-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#136 Remove FollowSet cache dependency on ignoredTokens #149
#136 Remove FollowSet cache dependency on ignoredTokens #149
Conversation
09ee945
to
60d72ef
Compare
I see no reason why to remove a useful feature. OK, it's not a big thing, but it's something that makes usage a bit easier. The problem described in #136 seems not to be related to this filtering of unwanted tokens. |
Signed-off-by: vityaman <vityaman.dev@yandex.ru>
Signed-off-by: vityaman <vityaman.dev@yandex.ru>
Signed-off-by: vityaman <vityaman.dev@yandex.ru>
Signed-off-by: vityaman <vityaman.dev@yandex.ru>
2f26aaa
to
c1ad650
Compare
@mike-lischke, returned following tokens filtering based on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I see the benefit of your changes, they will make it more difficult to incorporate future changes from the TS version (like bug fixes).
@mike-lischke, if you are talking about this cache fix, I can make the same changes to Java and TypeScript versions of the library. Do we need it? |
No, no, that's not what I meant. I spoke about future changes in the TS version that would need to be tracked by the ports and the more the source code diverts, the harder it is to do that. |
There is a problem explained at #136 (comment) because of cache dependency on
ignoredTokens
value. I just removed the token filter ingetFollowingTokens
. This logic originally was added in "Initial commit" 7 years ago, so motivation is unclear. On the one hand, tests were not changed, so the behavior with which all are agreed is the same. On the other hand, now we can get some elements ofignoredTokens
infollowSet
fromcandidates
. It can be fixed by simply adding a check afterfollowSet
was received either from the cache or computation.@mike-lischke, there are two questions:
If yes, then I'll do changes and this test case will be OK: