Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 141 for IsStmt (0.11 sec)

  1. src/database/sql/convert.go

    func defaultCheckNamedValue(nv *driver.NamedValue) (err error) {
    	nv.Value, err = driver.DefaultParameterConverter.ConvertValue(nv.Value)
    	return err
    }
    
    // driverArgsConnLocked converts arguments from callers of Stmt.Exec and
    // Stmt.Query into driver Values.
    //
    // The statement ds may be nil, if no statement is available.
    //
    // ci must be locked.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/convert.go

    		value = n
    	case conv.Esc() == ir.EscNone && fromType.Size() <= 1024:
    		// n does not escape. Use a stack temporary initialized to n.
    		value = typecheck.TempAt(base.Pos, ir.CurFunc, fromType)
    		init.Append(typecheck.Stmt(ir.NewAssignStmt(base.Pos, value, n)))
    	}
    	if value != nil {
    		// The interface data word is &value.
    		return typecheck.Expr(typecheck.NodAddr(value))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  3. src/go/printer/printer.go

    	case ast.Expr:
    		p.expr(n)
    	case ast.Stmt:
    		// A labeled statement will un-indent to position the label.
    		// Set p.indent to 1 so we don't get indent "underflow".
    		if _, ok := n.(*ast.LabeledStmt); ok {
    			p.indent = 1
    		}
    		p.stmt(n, false)
    	case ast.Decl:
    		p.decl(n)
    	case ast.Spec:
    		p.spec(n, 1, false)
    	case []ast.Stmt:
    		// A labeled statement will un-indent to position the label.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    // block and returns the suffix of its statements starting with the current
    // node, along with the number of call expressions encountered.
    func restOfBlock(stack []ast.Node) ([]ast.Stmt, int) {
    	var ncalls int
    	for i := len(stack) - 1; i >= 0; i-- {
    		if b, ok := stack[i].(*ast.BlockStmt); ok {
    			for j, v := range b.List {
    				if v == stack[i+1] {
    					return b.List[j:], ncalls
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/go/ast/example_test.go

    	//     21  .  .  .  .  .  Closing: 3:11
    	//     22  .  .  .  .  }
    	//     23  .  .  .  }
    	//     24  .  .  .  Body: *ast.BlockStmt {
    	//     25  .  .  .  .  Lbrace: 3:13
    	//     26  .  .  .  .  List: []ast.Stmt (len = 1) {
    	//     27  .  .  .  .  .  0: *ast.ExprStmt {
    	//     28  .  .  .  .  .  .  X: *ast.CallExpr {
    	//     29  .  .  .  .  .  .  .  Fun: *ast.Ident {
    	//     30  .  .  .  .  .  .  .  .  NamePos: 4:2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/switch.go

    				nif := ir.NewIfStmt(c.pos, s.okName, []ir.Node{c.jmp}, nil)
    				clauses = append(clauses, typeClause{
    					hash: types.TypeHash(c.typ.Type()),
    					body: []ir.Node{typecheck.Stmt(as), typecheck.Stmt(nif)},
    				})
    			}
    			s.flush(clauses, &sw.Compiled)
    			concreteCases = concreteCases[:0]
    		}
    
    		// The "any" case, if it exists, must be the last interface case, because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    		// terminated by a semicolon. Because semicolons may be omitted before
    		// an _Rbrace, seeing an _Rbrace implies an empty statement.
    		e := new(EmptyStmt)
    		e.pos = p.pos()
    		s.Stmt = e
    		return s
    	}
    
    	s.Stmt = p.stmtOrNil()
    	if s.Stmt != nil {
    		return s
    	}
    
    	// report error at line of ':' token
    	p.syntaxErrorAt(s.pos, "missing statement after label")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		for _, field := range node.List {
    			u.node(field)
    		}
    	case *ast.Field:
    		u.node(node.Type)
    
    	// statements
    
    	case *ast.BlockStmt:
    		defer u.scoped()()
    		for _, stmt := range node.List {
    			u.node(stmt)
    		}
    	case *ast.DeclStmt:
    		u.node(node.Decl)
    	case *ast.IfStmt:
    		if node.Init != nil {
    			u.node(node.Init)
    		}
    		u.node(node.Cond)
    		u.node(node.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/coverage/cover.go

    	callx := typecheck.Call(pos, fn, []ir.Node{mdauspx, lenx, hashx,
    		pkPathNode, pkIdNode, cmodeNode, cgranNode}, false)
    	assign := callx
    	if pkid == coverage.NotHardCoded {
    		assign = typecheck.Stmt(ir.NewAssignStmt(pos, cnames.PkgIdVar, callx))
    	}
    
    	// Tack the call onto the start of our init function. We do this
    	// early in the init since it's possible that instrumented function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/cmd/cgo/ast.go

    	case *ast.ChanType:
    		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:
    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