Merge pull request #3074 from nspcc-dev/fix-debug-info

compiler: fix sequence point boundaries
This commit is contained in:
Roman Khimov 2023-08-12 00:17:19 +03:00 committed by GitHub
commit 9fb154a376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,9 +138,9 @@ func (c *codegen) saveSequencePoint(n ast.Node) {
Opcode: c.prog.Len(),
Document: c.docIndex[start.Filename],
StartLine: start.Line,
StartCol: start.Offset,
StartCol: start.Column,
EndLine: end.Line,
EndCol: end.Offset,
EndCol: end.Column,
})
}