-
Notifications
You must be signed in to change notification settings - Fork 338
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
feature: collect overridden symbols in Scala toplevel mtags #5607
Conversation
7bb2fb1
to
c00f0d3
Compare
c00f0d3
to
488efe5
Compare
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 think this is the fastest approach we can take, I left a couple of comments, but overall good direction, thanks!
input: Input.VirtualFile, | ||
dialect: Dialect, | ||
includeMembers: Boolean = true | ||
)(implicit rc: ReportContext = EmptyReportContext): TextDocument = { | ||
)(implicit rc: ReportContext = EmptyReportContext): EnrichedTextDocument = { |
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.
Perfect place for union types :( need to migrate faster to Scala 3 :D
def language: Language | ||
def indexRoot(): Unit | ||
def input: Input.VirtualFile | ||
def index(): s.TextDocument = { | ||
protected def documentToResult(doc: s.TextDocument): T | ||
def index(): T = { |
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.
Would it make sense to just have overrides accessible as separate method? Do we need to box it together with TextDocument?
expectTemplate.map(tmpl => | ||
withOwner(tmpl.owner) { |
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.
Do we need owner here? Since we only save those by name?
Closing this as a part of: #5623 |
No description provided.