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

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