manifest: add Offset in method descriptor
This commit is contained in:
parent
e52c39ae7e
commit
a892e3ffa8
3 changed files with 13 additions and 3 deletions
|
@ -270,6 +270,7 @@ func (m *MethodDebugInfo) ToManifestMethod() (manifest.Method, error) {
|
|||
return result, err
|
||||
}
|
||||
result.Name = strings.ToLower(string(m.Name.Name[0])) + m.Name.Name[1:]
|
||||
result.Offset = int(m.Range.Start)
|
||||
result.Parameters = parameters
|
||||
result.ReturnType = returnType
|
||||
return result, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue