MCPcopy
hub / github.com/davyxu/tabtoy / Tag

Method Tag

v2/printer/cpp.go:250–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248}
249
250func (self cppField) Tag() string {
251
252 if self.parentStruct.IsCombine() {
253 tag := model.MakeTag(int32(model.FieldType_Table), self.Order)
254
255 return fmt.Sprintf("0x%x", tag)
256 }
257
258 return fmt.Sprintf("0x%x", self.FieldDescriptor.Tag())
259}
260
261func (self cppField) StructName() string {
262 if self.Complex == nil {

Callers 1

writeTableBinaryFunction · 0.45

Calls 2

MakeTagFunction · 0.92
IsCombineMethod · 0.45

Tested by

no test coverage detected