Fix labels for real this time (#819)

This commit is contained in:
Auguste Rame 2022-12-14 05:51:01 -05:00 committed by GitHub
parent 0ab34abc0f
commit d43329a9ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ pub fn labelReferences(
// Find while / for / block from label -> iterate over children nodes, find break and continues, change their labels if they match. // 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. // This case can be implemented just by scanning tokens.
const first_tok = tree.firstToken(decl.decl.label_decl.label); const first_tok = decl.decl.label_decl.label;
const last_tok = ast.lastToken(tree, decl.decl.label_decl.block); const last_tok = ast.lastToken(tree, decl.decl.label_decl.block);
var locations = std.ArrayListUnmanaged(types.Location){}; var locations = std.ArrayListUnmanaged(types.Location){};