From d1fe64470d193d08e9dfb5f81b9bb433783bb66e Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 27 Jul 2023 18:31:34 +0300 Subject: [PATCH] compiler: fix sequence point boundaries Thanks to @fyrchik, see the https://github.com/neo-project/neo-devpack-dotnet/pull/154/files#diff-ebf53d00d5ba1f1197fedd2b8111fe9a8f44fb96699ef1314d54d05d5ceeb3f3R27 See also the standard: https://github.com/neo-project/proposals/blob/master/nep-19.mediawiki#method. Signed-off-by: Anna Shaleva --- pkg/compiler/debug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/compiler/debug.go b/pkg/compiler/debug.go index a583fc3bd..03589f9eb 100644 --- a/pkg/compiler/debug.go +++ b/pkg/compiler/debug.go @@ -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, }) }