From c2dccb63147df1304827d61f8d31bd93cc3228d2 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 7 Jul 2020 11:49:14 +0300 Subject: [PATCH] compiler: add ability to emit package to debug info Emit package information into MethodDebugInfo --- pkg/compiler/debug.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/compiler/debug.go b/pkg/compiler/debug.go index cbc5390c7..fd4752101 100644 --- a/pkg/compiler/debug.go +++ b/pkg/compiler/debug.go @@ -136,8 +136,11 @@ func (c *codegen) methodInfoFromScope(name string, scope *funcScope) *MethodDebu } } return &MethodDebugInfo{ - ID: name, - Name: DebugMethodName{Name: name}, + ID: name, + Name: DebugMethodName{ + Name: name, + Namespace: scope.pkg.Name(), + }, IsExported: scope.decl.Name.IsExported(), Range: scope.rng, Parameters: params,