Fixed struct field goto and hover

This commit is contained in:
Alexandros Naskos 2020-07-23 21:10:40 +03:00
parent 213366f029
commit 7063abec92

View File

@ -2041,7 +2041,7 @@ fn makeScopeInternal(
if (node.castTag(.ContainerDecl)) |container| {
const kind = tree.token_ids[container.kind_token];
if (kind == .Keyword_struct or (kind == .Keyword_union and container.init_arg_expr == .None)) {
if (empty_field and (kind == .Keyword_struct or (kind == .Keyword_union and container.init_arg_expr == .None))) {
continue;
}