Skip to content

Switch to Spoon#2

Merged
chrismwendt merged 4 commits intomasterfrom
spoon
Oct 28, 2019
Merged

Switch to Spoon#2
chrismwendt merged 4 commits intomasterfrom
spoon

Conversation

@chrismwendt
Copy link
Contributor

@chrismwendt chrismwendt commented Oct 25, 2019

Why switch from JavaParser to Spoon?

  • Cross-file defs/refs currently don't work, and my attempt to make it work using JavaParser was unsuccessful Cross-file j2d/refs #1
  • https://github.com/microsoft/lsif-java seems to be 10+x slower than JavaParser (I don't know why)
  • Spoon is very popular and I wanted another data point in this design space (speed, features, etc.)
  • Spoon seems to be comparable to JavaParser in speed

Spoon is another Java source code parser/analysis library. My personal observations have been that compared to JavaParser, Spoon:

I think cross-repo can be done using Spoon because Spoon tries to provide "weak" references to symbols outside of the current project http://spoon.gforge.inria.fr/references.html and I've seen Unknown file when trying to get the definition of something like String. We could attach a moniker right there.

image

TODO

  • Clean up the code a bit (it's in a raw WIP state right now)

@chrismwendt chrismwendt merged commit ea4faff into master Oct 28, 2019
@chrismwendt chrismwendt deleted the spoon branch October 28, 2019 22:33
@chrismwendt chrismwendt mentioned this pull request Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants