commit
004c935c89
@ -199,7 +199,7 @@ pub fn getDeclNameToken(tree: *ast.Tree, node: *ast.Node) ?ast.TokenIndex {
|
|||||||
},
|
},
|
||||||
.TestDecl => {
|
.TestDecl => {
|
||||||
const decl = node.castTag(.TestDecl).?;
|
const decl = node.castTag(.TestDecl).?;
|
||||||
return (decl.name.castTag(.StringLiteral) orelse return null).token;
|
return ((decl.name orelse return null).castTag(.StringLiteral) orelse return null).token;
|
||||||
},
|
},
|
||||||
else => {},
|
else => {},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user