Bug stream fixes (#818)
* Fix glaring inlay hint issue; thanks for the report Nameless * Fix label references; closes #728
This commit is contained in:
@@ -20,8 +20,8 @@ pub fn labelReferences(
|
||||
|
||||
// Find while / for / block from label -> iterate over children nodes, find break and continues, change their labels if they match.
|
||||
// This case can be implemented just by scanning tokens.
|
||||
const first_tok = tree.firstToken(decl.decl.label_decl);
|
||||
const last_tok = ast.lastToken(tree, decl.decl.label_decl);
|
||||
const first_tok = tree.firstToken(decl.decl.label_decl.label);
|
||||
const last_tok = ast.lastToken(tree, decl.decl.label_decl.block);
|
||||
|
||||
var locations = std.ArrayListUnmanaged(types.Location){};
|
||||
errdefer locations.deinit(allocator);
|
||||
|
||||
Reference in New Issue
Block a user