compiler: add ability to emit package to debug info

Emit package information into MethodDebugInfo
This commit is contained in:
Anna Shaleva 2020-07-07 11:49:14 +03:00
parent c3a0998cae
commit c2dccb6314

View file

@ -137,7 +137,10 @@ func (c *codegen) methodInfoFromScope(name string, scope *funcScope) *MethodDebu
}
return &MethodDebugInfo{
ID: name,
Name: DebugMethodName{Name: name},
Name: DebugMethodName{
Name: name,
Namespace: scope.pkg.Name(),
},
IsExported: scope.decl.Name.IsExported(),
Range: scope.rng,
Parameters: params,