Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for identName (0.09 sec)

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

    	}
    }
    
    func (check *Checker) rangeStmt(inner stmtContext, s *syntax.ForStmt, rclause *syntax.RangeClause) {
    	// Convert syntax form to local variables.
    	type Expr = syntax.Expr
    	type identType = syntax.Name
    	identName := func(n *identType) string { return n.Value }
    	sKey := rclause.Lhs // possibly nil
    	var sValue, sExtra syntax.Expr
    	if p, _ := sKey.(*syntax.ListExpr); p != nil {
    		if len(p.ElemList) < 2 {
    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/go/types/stmt.go

    	}
    }
    
    func (check *Checker) rangeStmt(inner stmtContext, s *ast.RangeStmt) {
    	// Convert go/ast form to local variables.
    	type Expr = ast.Expr
    	type identType = ast.Ident
    	identName := func(n *identType) string { return n.Name }
    	sKey, sValue := s.Key, s.Value
    	var sExtra ast.Expr = nil // (used only in types2 fork)
    	isDef := s.Tok == token.DEFINE
    	rangeVar := s.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top