Skip to content

Commit 6c42b20

Browse files
committed
Add astResolvedTypes usage in anticipation for constraint solver
Ref: #54
1 parent 0b4cc46 commit 6c42b20

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Workspace.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ std::optional<lsp::Hover> WorkspaceFolder::hover(const lsp::HoverParams& params)
349349
return std::nullopt;
350350
type = typeFun->type;
351351
}
352+
else if (auto astType = node->asType())
353+
{
354+
if (auto ty = module->astResolvedTypes.find(astType))
355+
{
356+
type = *ty;
357+
}
358+
}
352359
else if (auto local = exprOrLocal.getLocal()) // TODO: can we just use node here instead of also calling exprOrLocal?
353360
{
354361
type = scope->lookup(local);

0 commit comments

Comments
 (0)