Lines Matching full:indent
229 func (deb *debugger) delimitedMessage(indent tab) bool {
236 deb.message(indent)
270 func (deb *debugger) message(indent tab) bool {
277 deb.typeDefinition(indent, -id)
282 deb.value(indent, id)
354 func (deb *debugger) typeDefinition(indent tab, id typeId) {
431 deb.printWireType(indent, wire)
440 func (deb *debugger) value(indent tab, id typeId) {
443 deb.structValue(indent, id)
445 deb.singletonValue(indent, id)
451 func (deb *debugger) singletonValue(indent tab, id typeId) {
463 deb.fieldValue(indent, id)
468 func (deb *debugger) interfaceValue(indent tab) {
471 deb.nilInterfaceValue(indent)
473 deb.nonNilInterfaceValue(indent, int(nameLen))
479 func (deb *debugger) nilInterfaceValue(indent tab) int {
480 fmt.Fprintf(os.Stderr, "%snil interface\n", indent)
492 func (deb *debugger) nonNilInterfaceValue(indent tab, nameLen int) {
502 deb.typeDefinition(indent, -id)
508 fmt.Fprintf(os.Stderr, "%sinterface value, type %q id=%d; valueLength %d\n", indent, name, id, x)
509 deb.value(indent, id)
516 func (deb *debugger) printCommonType(indent tab, kind string, common *CommonType) {
517 indent.print()
522 func (deb *debugger) printWireType(indent tab, wire *wireType) {
523 fmt.Fprintf(os.Stderr, "%stype definition {\n", indent)
524 indent++
527 deb.printCommonType(indent, "array", &wire.ArrayT.CommonType)
528 fmt.Fprintf(os.Stderr, "%slen %d\n", indent+1, wire.ArrayT.Len)
529 fmt.Fprintf(os.Stderr, "%selemid %d\n", indent+1, wire.ArrayT.Elem)
531 deb.printCommonType(indent, "map", &wire.MapT.CommonType)
532 fmt.Fprintf(os.Stderr, "%skey id=%d\n", indent+1, wire.MapT.Key)
533 fmt.Fprintf(os.Stderr, "%selem id=%d\n", indent+1, wire.MapT.Elem)
535 deb.printCommonType(indent, "slice", &wire.SliceT.CommonType)
536 fmt.Fprintf(os.Stderr, "%selem id=%d\n", indent+1, wire.SliceT.Elem)
538 deb.printCommonType(indent, "struct", &wire.StructT.CommonType)
540 fmt.Fprintf(os.Stderr, "%sfield %d:\t%s\tid=%d\n", indent+1, i, field.Name, field.Id)
543 deb.printCommonType(indent, "GobEncoder", &wire.GobEncoderT.CommonType)
545 indent--
546 fmt.Fprintf(os.Stderr, "%s}\n", indent)
552 func (deb *debugger) fieldValue(indent tab, id typeId) {
556 deb.interfaceValue(indent)
558 deb.printBuiltin(indent, id)
568 deb.arrayValue(indent, wire)
570 deb.mapValue(indent, wire)
572 deb.sliceValue(indent, wire)
574 deb.structValue(indent, id)
576 deb.gobEncoderValue(indent, id)
584 func (deb *debugger) printBuiltin(indent tab, id typeId) {
589 fmt.Fprintf(os.Stderr, "%sfalse\n", indent)
591 fmt.Fprintf(os.Stderr, "%strue\n", indent)
595 fmt.Fprintf(os.Stderr, "%s%d\n", indent, x)
598 fmt.Fprintf(os.Stderr, "%s%d\n", indent, x)
601 fmt.Fprintf(os.Stderr, "%s%g\n", indent, float64FromBits(x))
605 fmt.Fprintf(os.Stderr, "%s%g+%gi\n", indent, float64FromBits(r), float64FromBits(i))
611 fmt.Fprintf(os.Stderr, "%s{% x}=%q\n", indent, b, b)
617 fmt.Fprintf(os.Stderr, "%s%q\n", indent, b)
625 func (deb *debugger) arrayValue(indent tab, wire *wireType) {
630 deb.fieldValue(indent, elemId)
633 fmt.Fprintf(os.Stderr, "%s(wrong length for array: %d should be %d)\n", indent, length, wire.ArrayT.Len)
639 func (deb *debugger) mapValue(indent tab, wire *wireType) {
645 deb.fieldValue(indent+1, keyId)
646 deb.fieldValue(indent+1, elemId)
652 func (deb *debugger) sliceValue(indent tab, wire *wireType) {
659 deb.fieldValue(indent, elemId)
665 func (deb *debugger) structValue(indent tab, id typeId) {
667 fmt.Fprintf(os.Stderr, "%s%s struct {\n", indent, id.name())
674 indent++
685 fmt.Fprintf(os.Stderr, "%sfield %d:\t%s\n", indent, fieldNum, wire.StructT.Field[fieldNum].Name)
686 deb.fieldValue(indent+1, strct.Field[fieldNum].Id)
688 indent--
689 fmt.Fprintf(os.Stderr, "%s} // end %s struct\n", indent, id.name())
695 func (deb *debugger) gobEncoderValue(indent tab, id typeId) {
698 fmt.Fprintf(os.Stderr, "%s%s (implements GobEncoder)\n", indent, id.name())
704 fmt.Fprintf(os.Stderr, "%s[% .2x]\n", indent+1, data)