| 1348 | return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 1349 | } |
| 1350 | func (this *Api) String() string { |
| 1351 | if this == nil { |
| 1352 | return "nil" |
| 1353 | } |
| 1354 | repeatedStringForMethods := "[]*Method{" |
| 1355 | for _, f := range this.Methods { |
| 1356 | repeatedStringForMethods += strings.Replace(f.String(), "Method", "Method", 1) + "," |
| 1357 | } |
| 1358 | repeatedStringForMethods += "}" |
| 1359 | repeatedStringForOptions := "[]*Option{" |
| 1360 | for _, f := range this.Options { |
| 1361 | repeatedStringForOptions += strings.Replace(fmt.Sprintf("%v", f), "Option", "Option", 1) + "," |
| 1362 | } |
| 1363 | repeatedStringForOptions += "}" |
| 1364 | repeatedStringForMixins := "[]*Mixin{" |
| 1365 | for _, f := range this.Mixins { |
| 1366 | repeatedStringForMixins += strings.Replace(f.String(), "Mixin", "Mixin", 1) + "," |
| 1367 | } |
| 1368 | repeatedStringForMixins += "}" |
| 1369 | s := strings.Join([]string{`&Api{`, |
| 1370 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 1371 | `Methods:` + repeatedStringForMethods + `,`, |
| 1372 | `Options:` + repeatedStringForOptions + `,`, |
| 1373 | `Version:` + fmt.Sprintf("%v", this.Version) + `,`, |
| 1374 | `SourceContext:` + strings.Replace(fmt.Sprintf("%v", this.SourceContext), "SourceContext", "SourceContext", 1) + `,`, |
| 1375 | `Mixins:` + repeatedStringForMixins + `,`, |
| 1376 | `Syntax:` + fmt.Sprintf("%v", this.Syntax) + `,`, |
| 1377 | `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, |
| 1378 | `}`, |
| 1379 | }, "") |
| 1380 | return s |
| 1381 | } |
| 1382 | func (this *Method) String() string { |
| 1383 | if this == nil { |
| 1384 | return "nil" |