Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for exprFmt (0.27 sec)

  1. src/cmd/compile/internal/ir/fmt.go

    		OXOR:
    		n := n.(*BinaryExpr)
    		exprFmt(n.X, s, nprec)
    		fmt.Fprintf(s, " %v ", n.Op())
    		exprFmt(n.Y, s, nprec+1)
    
    	case OANDAND,
    		OOROR:
    		n := n.(*LogicalExpr)
    		exprFmt(n.X, s, nprec)
    		fmt.Fprintf(s, " %v ", n.Op())
    		exprFmt(n.Y, s, nprec+1)
    
    	case OSEND:
    		n := n.(*SendStmt)
    		exprFmt(n.Chan, s, nprec)
    		fmt.Fprintf(s, " <- ")
    		exprFmt(n.Value, s, nprec+1)
    
    	case OADDSTR:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/status/server.go

    	}
    }
    
    const (
    	// nolint: revive, stylecheck
    	FmtOpenMetrics_0_0_1 = expfmt.OpenMetricsType + `; version=` + expfmt.OpenMetricsVersion_0_0_1 + `; charset=utf-8`
    	// nolint: revive, stylecheck
    	FmtOpenMetrics_1_0_0 = expfmt.OpenMetricsType + `; version=` + expfmt.OpenMetricsVersion_1_0_0 + `; charset=utf-8`
    	FmtText              = `text/plain; version=` + expfmt.TextVersion + `; charset=utf-8`
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    		}
    
    		if afterParallel {
    			stmts = append(stmts, stmt)
    			continue
    		}
    
    		// Check if stmt is a call to t.Parallel(), for the correct t.
    		exprStmt, ok := stmt.(*ast.ExprStmt)
    		if !ok {
    			continue
    		}
    		expr := exprStmt.X
    		if isMethodCall(info, expr, "testing", "T", "Parallel") {
    			call, _ := expr.(*ast.CallExpr)
    			if call == nil {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. pilot/cmd/pilot-agent/status/server_test.go

    		},
    		{
    			name:        "plaintext accept header",
    			contentType: "text/plain; version=0.0.4; charset=utf-8",
    			expected:    expfmt.NewFormat(expfmt.TypeTextPlain),
    		},
    		{
    			name:        "empty accept header",
    			contentType: "",
    			expected:    expfmt.NewFormat(expfmt.TypeTextPlain),
    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. cmd/metrics.go

    				return
    			}
    		}
    
    		contentType := expfmt.Negotiate(r.Header)
    		w.Header().Set("Content-Type", string(contentType))
    
    		enc := expfmt.NewEncoder(w, contentType)
    		for _, mf := range mfs {
    			if err := enc.Encode(mf); err != nil {
    				// client may disconnect for any reasons
    				// we do not have to log this.
    				return
    			}
    		}
    		if closer, ok := enc.(expfmt.Closer); ok {
    			closer.Close()
    		}
    	})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    		// so node is the result.  Is it exact?
    
    		// (It's tempting to put this condition before the
    		// child loop, but it gives the wrong result in the
    		// case where a node (e.g. ExprStmt) and its sole
    		// child have equal intervals.)
    		if start == nodePos && end == nodeEnd {
    			return true // exact match
    		}
    
    		return false // inexact: overlaps multiple children
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  7. src/go/ast/ast.go

    	// A LabeledStmt node represents a labeled statement.
    	LabeledStmt struct {
    		Label *Ident
    		Colon token.Pos // position of ":"
    		Stmt  Stmt
    	}
    
    	// An ExprStmt node represents a (stand-alone) expression
    	// in a statement list.
    	//
    	ExprStmt struct {
    		X Expr // expression
    	}
    
    	// A SendStmt node represents a send statement.
    	SendStmt struct {
    		Chan  Expr
    		Arrow token.Pos // position of "<-"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    	case *ast.BadStmt,
    		*ast.SendStmt,
    		*ast.IncDecStmt,
    		*ast.GoStmt,
    		*ast.DeferStmt,
    		*ast.EmptyStmt,
    		*ast.AssignStmt:
    		// No effect on control flow.
    		b.add(s)
    
    	case *ast.ExprStmt:
    		b.add(s)
    		if call, ok := s.X.(*ast.CallExpr); ok && !b.mayReturn(call) {
    			// Calls to panic, os.Exit, etc, never return.
    			b.current = b.newBlock(KindUnreachable, s)
    		}
    
    	case *ast.DeclStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. src/go/types/stmt.go

    	case *ast.BadStmt, *ast.EmptyStmt:
    		// ignore
    
    	case *ast.DeclStmt:
    		check.declStmt(s.Decl)
    
    	case *ast.LabeledStmt:
    		check.hasLabel = true
    		check.stmt(ctxt, s.Stmt)
    
    	case *ast.ExprStmt:
    		// spec: "With the exception of specific built-in functions,
    		// function and method calls and receive operations can appear
    		// in statement context. Such statements may be parenthesized."
    		var x operand
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/ast.go

    		f.walk(&n.Value, ctxType, visit)
    
    	case *ast.BadStmt:
    	case *ast.DeclStmt:
    		f.walk(n.Decl, ctxDecl, visit)
    	case *ast.EmptyStmt:
    	case *ast.LabeledStmt:
    		f.walk(n.Stmt, ctxStmt, visit)
    	case *ast.ExprStmt:
    		f.walk(&n.X, ctxExpr, visit)
    	case *ast.SendStmt:
    		f.walk(&n.Chan, ctxExpr, visit)
    		f.walk(&n.Value, ctxExpr, visit)
    	case *ast.IncDecStmt:
    		f.walk(&n.X, ctxExpr, visit)
    	case *ast.AssignStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
Back to top