Skip to content

feat: add type resolution to TsTypeRefDef#781

Open
crowlKats wants to merge 2 commits intodocnodes-v2from
tstyperefdef
Open

feat: add type resolution to TsTypeRefDef#781
crowlKats wants to merge 2 commits intodocnodes-v2from
tstyperefdef

Conversation

@crowlKats
Copy link
Member

@crowlKats crowlKats commented Mar 6, 2026

Closes #140

@crowlKats crowlKats changed the title refactor: add type resolution to TsTypeRefDef feat: add type resolution to TsTypeRefDef Mar 6, 2026
@crowlKats crowlKats requested a review from dsherret March 9, 2026 22:26
Comment on lines +780 to +783
fn find_type_param_origin(
module_info: &EsModuleInfo,
target_id: &Id,
) -> Option<(String, TypeParamDeclaringKind)> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems strange. Can't we do "go to definition" with deno_graph::symbols?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

} else {
Some(TypeRefResolution::Local)
}
} else if ident.ctxt != module_info.source().unresolved_context() {
Copy link
Member

@dsherret dsherret Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, why wouldn't there be a symbol for an id? I think I'm not understanding this code.

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