Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for simpleStmt (0.22 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)
Back to top