Fixed struct field goto and hover
This commit is contained in:
parent
213366f029
commit
7063abec92
@ -2041,7 +2041,7 @@ fn makeScopeInternal(
|
|||||||
|
|
||||||
if (node.castTag(.ContainerDecl)) |container| {
|
if (node.castTag(.ContainerDecl)) |container| {
|
||||||
const kind = tree.token_ids[container.kind_token];
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user