Go to definition now works for captures
This commit is contained in:
parent
34adb4e22f
commit
c895d7d8f6
@ -200,6 +200,11 @@ pub fn getDeclNameToken(tree: *ast.Tree, node: *ast.Node) ?ast.TokenIndex {
|
|||||||
const field = node.cast(ast.Node.ContainerField).?;
|
const field = node.cast(ast.Node.ContainerField).?;
|
||||||
return field.name_token;
|
return field.name_token;
|
||||||
},
|
},
|
||||||
|
// We need identifier for captures
|
||||||
|
.Identifier => {
|
||||||
|
const ident = node.cast(ast.Node.Identifier).?;
|
||||||
|
return ident.token;
|
||||||
|
},
|
||||||
else => {},
|
else => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user