-
Notifications
You must be signed in to change notification settings - Fork 339
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
Upgrade to Scalameta 3.2.0 #188
Conversation
// TODO(olafur) handle local symbols on the fly from a `Document` in go-to-definition | ||
// local symbols don't need to be indexed globally, by skipping them we should | ||
// def isLocalSymbol(sym: String): Boolean = | ||
// !sym.endsWith(".") && | ||
// !sym.endsWith("#") && | ||
// !sym.endsWith(")") | ||
// be able to minimize the size of the global index significantly. | ||
// case s.ResolvedName(_, sym, _) if isLocalSymbol(sym) => // Do nothing, local symbol. | ||
case s.ResolvedName(Some(s.Position(start, end)), sym, true) => | ||
// case s.SymbolOccurrence(_, sym, _) if isLocalSymbol(sym) => // Do nothing, local symbol. |
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.
The changes for local symbols will require us to implement this TODO. Local symbols must now either use reference equality or include the original document in their syntax because two local symbols from different source files can have identical structures.
if (ptest(p.COVARIANT.value)) mflip(m.COVARIANT) | ||
if (ptest(p.CONTRAVARIANT.value)) mflip(m.CONTRAVARIANT) | ||
flags | ||
} |
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.
I'm not sure what is happening here and why this huge if-else chain is necessary 🤔
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.
We should make the kind/properties => Long conversion reusable.
There are some test failures, but I wanted to submit anyway, because I'm not exactly sure how many of those are the consequence of having incompatible Scalafix on the classpath (see scalacenter/scalafix#595 for the Scalafix upgrade pull request).