Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for exprFmt (0.17 sec)

  1. 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)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go

    				return
    			}
    			assert = n
    			targets = append(targets, n.Type)
    		case *ast.TypeSwitchStmt:
    			// retrieve type assertion from type switch's 'assign' field
    			switch t := n.Assign.(type) {
    			case *ast.ExprStmt:
    				assert = t.X.(*ast.TypeAssertExpr)
    			case *ast.AssignStmt:
    				assert = t.Rhs[0].(*ast.TypeAssertExpr)
    			}
    			// gather target types from case clauses
    			for _, c := range n.Body.List {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    		log.Fatalf("%s: internal error in findLabels: unexpected statement %T", d.pass.Fset.Position(x.Pos()), x)
    
    	case *ast.AssignStmt,
    		*ast.BadStmt,
    		*ast.DeclStmt,
    		*ast.DeferStmt,
    		*ast.EmptyStmt,
    		*ast.ExprStmt,
    		*ast.GoStmt,
    		*ast.IncDecStmt,
    		*ast.ReturnStmt,
    		*ast.SendStmt:
    		// no statements inside
    
    	case *ast.BlockStmt:
    		for _, stmt := range x.List {
    			d.findLabels(stmt)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    		if start == nil || end == nil {
    			start = n
    			end = n
    		} else {
    			end.then = n
    			end = n
    		}
    	}
    	for _, stmt := range body {
    		switch stmt := stmt.(type) {
    		case *ast.ExprStmt:
    			if x, _ := stmt.X.(*ast.CallExpr); x != nil {
    				funstr := exprToString(x.Fun)
    				if funstr == "putattr" {
    					form, _ := x.Args[3].(*ast.Ident)
    					if form == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go

    // It also determines the possible types of its Stmt field.
    type BlockKind uint8
    
    const (
    	KindInvalid BlockKind = iota // Stmt=nil
    
    	KindUnreachable     // unreachable block after {Branch,Return}Stmt / no-return call ExprStmt
    	KindBody            // function body BlockStmt
    	KindForBody         // body of ForStmt
    	KindForDone         // block after ForStmt
    	KindForLoop         // head of ForStmt
    	KindForPost         // post condition of ForStmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.7K 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/ast/inspector/typeof.go

    	case *ast.DeclStmt:
    		return 1 << nDeclStmt
    	case *ast.DeferStmt:
    		return 1 << nDeferStmt
    	case *ast.Ellipsis:
    		return 1 << nEllipsis
    	case *ast.EmptyStmt:
    		return 1 << nEmptyStmt
    	case *ast.ExprStmt:
    		return 1 << nExprStmt
    	case *ast.Field:
    		return 1 << nField
    	case *ast.FieldList:
    		return 1 << nFieldList
    	case *ast.File:
    		return 1 << nFile
    	case *ast.ForStmt:
    		return 1 << nForStmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. src/mime/quotedprintable/writer_test.go

    	"Enfin, un signe égal suivi par un saut de ligne (donc la suite des trois caractères de codes ASCII 61, 13 et 10) peut être inséré n'importe où, afin de limiter la taille des lignes produites si nécessaire. Une limite...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  10. 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)
Back to top