Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

kasiaMarek
Copy link
Contributor

No description provided.

Copy link
Contributor

@tgodzik tgodzik left a 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 = {
Copy link
Contributor

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 = {
Copy link
Contributor

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?

Comment on lines +418 to +419
expectTemplate.map(tmpl =>
withOwner(tmpl.owner) {
Copy link
Contributor

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?

@kasiaMarek
Copy link
Contributor Author

Closing this as a part of: #5623

@kasiaMarek kasiaMarek closed this Sep 6, 2023
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