Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for exprFmt (0.32 sec)

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

    	case *syntax.EmptyStmt:
    		// ignore
    
    	case *syntax.DeclStmt:
    		check.declStmt(s.DeclList)
    
    	case *syntax.LabeledStmt:
    		check.hasLabel = true
    		check.stmt(ctxt, s.Stmt)
    
    	case *syntax.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.7K bytes
    - Viewed (0)
  2. src/cmd/fix/fix.go

    	case *ast.BadStmt:
    	case *ast.DeclStmt:
    		walkBeforeAfter(&n.Decl, before, after)
    	case *ast.EmptyStmt:
    	case *ast.LabeledStmt:
    		walkBeforeAfter(&n.Stmt, before, after)
    	case *ast.ExprStmt:
    		walkBeforeAfter(&n.X, before, after)
    	case *ast.SendStmt:
    		walkBeforeAfter(&n.Chan, before, after)
    		walkBeforeAfter(&n.Value, before, after)
    	case *ast.IncDecStmt:
    		walkBeforeAfter(&n.X, before, after)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    	case token.INC, token.DEC:
    		// increment or decrement
    		s := &ast.IncDecStmt{X: x[0], TokPos: p.pos, Tok: p.tok}
    		p.next()
    		return s, false
    	}
    
    	// expression
    	return &ast.ExprStmt{X: x[0]}, false
    }
    
    func (p *parser) parseCallExpr(callType string) *ast.CallExpr {
    	x := p.parseRhs() // could be a conversion: (some type)(x)
    	if t := ast.Unparen(x); t != x {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/rangefunc/rewrite.go

    	if ftyp.Results().Len() != 1 {
    		base.Fatalf("invalid typecheck of range func")
    	}
    
    	// Build X(bodyFunc)
    	call := &syntax.ExprStmt{
    		X: &syntax.CallExpr{
    			Fun: rclause.X,
    			ArgList: []syntax.Expr{
    				r.bodyFunc(nfor.Body.List, syntax.UnpackListExpr(rclause.Lhs), rclause.Def, ftyp, start, end),
    			},
    		},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/printer.go

    	// statements
    	case *DeclStmt:
    		p.printDecl(n.DeclList)
    
    	case *EmptyStmt:
    		// nothing to print
    
    	case *LabeledStmt:
    		p.print(outdent, n.Label, _Colon, indent, newline, n.Stmt)
    
    	case *ExprStmt:
    		p.print(n.X)
    
    	case *SendStmt:
    		p.print(n.Chan, blank, _Arrow, blank, n.Value)
    
    	case *AssignStmt:
    		p.print(n.Lhs)
    		if n.Rhs == nil {
    			// TODO(gri) This is going to break the mayCombine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		}
    		u.node(node.Body)
    	case *ast.CaseClause:
    		u.exprs(node.List)
    		defer u.scoped()()
    		for _, stmt := range node.Body {
    			u.node(stmt)
    		}
    	case *ast.BranchStmt:
    	case *ast.ExprStmt:
    		u.node(node.X)
    	case *ast.AssignStmt:
    		if node.Tok != token.DEFINE {
    			u.exprs(node.Rhs)
    			u.exprs(node.Lhs)
    			break
    		}
    		lhs := node.Lhs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  7. src/cmd/cover/cover.go

    	case *ast.RangeStmt:
    		return true
    	case *ast.SwitchStmt:
    		return true
    	case *ast.SelectStmt:
    		return true
    	case *ast.TypeSwitchStmt:
    		return true
    	case *ast.ExprStmt:
    		// Calls to panic change the flow.
    		// We really should verify that "panic" is the predefined function,
    		// but without type checking we can't and the likelihood of it being
    		// an actual problem is vanishingly small.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  8. src/go/printer/nodes.go

    				p.setPos(e.Pos())
    				p.print(token.SEMICOLON)
    				break
    			}
    		} else {
    			p.linebreak(p.lineFor(s.Stmt.Pos()), 1, ignore, true)
    		}
    		p.stmt(s.Stmt, nextIsRBrace)
    
    	case *ast.ExprStmt:
    		const depth = 1
    		p.expr0(s.X, depth)
    
    	case *ast.SendStmt:
    		const depth = 1
    		p.expr0(s.Chan, depth)
    		p.print(blank)
    		p.setPos(s.Arrow)
    		p.print(token.ARROW, blank)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*DeferStmt).Pos", Method, 0},
    		{"(*Ellipsis).End", Method, 0},
    		{"(*Ellipsis).Pos", Method, 0},
    		{"(*EmptyStmt).End", Method, 0},
    		{"(*EmptyStmt).Pos", Method, 0},
    		{"(*ExprStmt).End", Method, 0},
    		{"(*ExprStmt).Pos", Method, 0},
    		{"(*Field).End", Method, 0},
    		{"(*Field).Pos", Method, 0},
    		{"(*FieldList).End", Method, 0},
    		{"(*FieldList).NumFields", Method, 0},
    		{"(*FieldList).Pos", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg go/ast, method (*Ellipsis) Pos() token.Pos
    pkg go/ast, method (*EmptyStmt) End() token.Pos
    pkg go/ast, method (*EmptyStmt) Pos() token.Pos
    pkg go/ast, method (*ExprStmt) End() token.Pos
    pkg go/ast, method (*ExprStmt) Pos() token.Pos
    pkg go/ast, method (*Field) End() token.Pos
    pkg go/ast, method (*Field) Pos() token.Pos
    pkg go/ast, method (*FieldList) End() token.Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top