Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for simpleStmt (0.25 sec)

  1. src/cmd/compile/internal/ssa/branchelim.go

    				return true
    			}
    		}
    		return false
    	}
    	if simpleStmt {
    		simpleStmt = !findBlockPos(simple)
    		if !simpleStmt && simplePos.SameFileAndLine(postPos) {
    			postStmt = false
    		}
    
    	}
    	if postStmt {
    		postStmt = !findBlockPos(post)
    	}
    
    	// If simpleStmt and/or postStmt are still true, then try harder
    	// to find the corresponding statement marks new homes.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K 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)
Back to top