Skip to content

Commit

Permalink
Fix selector -> issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Jun 4, 2024
1 parent 5805fd0 commit b7abe27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/server/analysis.odin
Original file line number Diff line number Diff line change
Expand Up @@ -5122,8 +5122,7 @@ get_document_position_node :: proc(
case ^Selector_Call_Expr:
if position_context.hint == .Definition ||
position_context.hint == .Hover ||
position_context.hint == .SignatureHelp ||
position_context.hint == .Completion {
position_context.hint == .SignatureHelp {
position_context.selector = n.expr
position_context.field = n.call
position_context.selector_expr = cast(^Selector_Expr)node
Expand Down
3 changes: 2 additions & 1 deletion src/server/completion.odin
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ get_selector_completion :: proc(
}

if position_context.arrow {
if symbol.type != .Function {
if symbol.type != .Function &&
symbol.type != .Type_Function {
continue
}
if .ObjCIsClassMethod in symbol.flags {
Expand Down

0 comments on commit b7abe27

Please sign in to comment.