Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for oneLineNodeDepth (0.1 sec)

  1. src/cmd/doc/pkg.go

    	case *ast.FuncLit:
    		return pkg.oneLineNodeDepth(n.Type, depth) + " { ... }"
    
    	case *ast.CompositeLit:
    		typ := pkg.oneLineNodeDepth(n.Type, depth)
    		if len(n.Elts) == 0 {
    			return fmt.Sprintf("%s{}", typ)
    		}
    		return fmt.Sprintf("%s{ %s }", typ, dotDotDot)
    
    	case *ast.ArrayType:
    		length := pkg.oneLineNodeDepth(n.Len, depth)
    		element := pkg.oneLineNodeDepth(n.Elt, depth)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top