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 <shaleva.ann@nspcc.ru>
This commit is contained in:
Anna Shaleva 2023-07-27 18:31:34 +03:00
parent 4e61e8238a
commit d1fe64470d

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,
})
}