Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for operandString (0.41 sec)

  1. src/cmd/compile/internal/types2/format.go

    	for i, arg := range args {
    		switch a := arg.(type) {
    		case nil:
    			arg = "<nil>"
    		case operand:
    			panic("got operand instead of *operand")
    		case *operand:
    			arg = operandString(a, qf)
    		case syntax.Pos:
    			arg = a.String()
    		case syntax.Expr:
    			arg = ExprString(a)
    		case []syntax.Expr:
    			var buf strings.Builder
    			buf.WriteByte('[')
    			for i, x := range a {
    				if i > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/go/types/format.go

    	for i, arg := range args {
    		switch a := arg.(type) {
    		case nil:
    			arg = "<nil>"
    		case operand:
    			panic("got operand instead of *operand")
    		case *operand:
    			arg = operandString(a, qf)
    		case token.Pos:
    			if fset != nil {
    				arg = fset.Position(a).String()
    			}
    		case ast.Expr:
    			arg = ExprString(a)
    		case []ast.Expr:
    			var buf bytes.Buffer
    			buf.WriteByte('[')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top