Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for simpleStmt (0.45 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    // Statements
    
    // SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl .
    func (p *parser) simpleStmt(lhs Expr, keyword token) SimpleStmt {
    	if trace {
    		defer p.trace("simpleStmt")()
    	}
    
    	if keyword == _For && p.tok == _Range {
    		// _Range expr
    		if debug && lhs != nil {
    			panic("invalid call of simpleStmt")
    		}
    		return p.newRangeClause(nil, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. src/go/types/stmt.go

    		check.openScope(s, "for")
    		defer check.closeScope()
    
    		check.simpleStmt(s.Init)
    		if s.Cond != nil {
    			var x operand
    			check.expr(nil, &x, s.Cond)
    			if x.mode != invalid && !allBoolean(x.typ) {
    				check.error(s.Cond, InvalidCond, "non-boolean condition in for statement")
    			}
    		}
    		check.simpleStmt(s.Post)
    		// spec: "The init statement may be a short variable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/stmt.go

    			break
    		}
    
    		check.openScope(s, "for")
    		defer check.closeScope()
    
    		check.simpleStmt(s.Init)
    		if s.Cond != nil {
    			var x operand
    			check.expr(nil, &x, s.Cond)
    			if x.mode != invalid && !allBoolean(x.typ) {
    				check.error(s.Cond, InvalidCond, "non-boolean condition in for statement")
    			}
    		}
    		check.simpleStmt(s.Post)
    		// spec: "The init statement may be a short variable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    <p>
    Statements control execution.
    </p>
    
    <pre class="ebnf">
    Statement =
    	Declaration | LabeledStmt | SimpleStmt |
    	GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
    	FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
    	DeferStmt .
    
    SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl .
    </pre>
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  5. doc/go_spec.html

    <p>
    Statements control execution.
    </p>
    
    <pre class="ebnf">
    Statement =
    	Declaration | LabeledStmt | SimpleStmt |
    	GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
    	FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
    	DeferStmt .
    
    SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl .
    </pre>
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top