compiler: add ability to emit package to debug info
Emit package information into MethodDebugInfo
This commit is contained in:
parent
c3a0998cae
commit
c2dccb6314
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue