autodoc: correct line number implementation

we also correctly take advantage of the starting byte offset of the
parent decl when calling `tree.tokenLocation()`!
This commit is contained in:
Loris Cro 2022-09-02 17:26:41 +02:00
parent 5581b60393
commit 081d5a9690
2 changed files with 184 additions and 118 deletions

View File

@ -2285,7 +2285,7 @@ var zigAnalysis;
return "<a style=\"float: right;\" href=\"" +
sourceFileUrlTemplate.replace("{{file}}",
zigAnalysis.files[srcNode.file]).replace("{{line}}", srcNode.line) + "\">[src]</a>";
zigAnalysis.files[srcNode.file]).replace("{{line}}", srcNode.line + 1) + "\">[src]</a>";
}
function renderContainer(container) {

File diff suppressed because it is too large Load Diff