Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for exprWithHint (0.38 sec)

  1. src/go/types/expr.go

    		}
    		list = append(list, x2)
    		commaOk = true
    	}
    
    	return
    }
    
    // exprWithHint typechecks expression e and initializes x with the expression value;
    // hint is the type of a composite literal element.
    // If an error occurred, x.mode is set to invalid.
    func (check *Checker) exprWithHint(x *operand, e ast.Expr, hint Type) {
    	assert(hint != nil)
    	check.rawExpr(nil, x, e, hint, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/go/types/index.go

    			}
    			visited[index] = true
    		}
    		index++
    		if index > max {
    			max = index
    		}
    
    		// check element against composite literal element type
    		var x operand
    		check.exprWithHint(&x, eval, typ)
    		check.assignment(&x, typ, "array or slice literal")
    	}
    	return max
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/index.go

    			}
    			visited[index] = true
    		}
    		index++
    		if index > max {
    			max = index
    		}
    
    		// check element against composite literal element type
    		var x operand
    		check.exprWithHint(&x, eval, typ)
    		check.assignment(&x, typ, "array or slice literal")
    	}
    	return max
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    		}
    		list = append(list, x2)
    		commaOk = true
    	}
    
    	return
    }
    
    // exprWithHint typechecks expression e and initializes x with the expression value;
    // hint is the type of a composite literal element.
    // If an error occurred, x.mode is set to invalid.
    func (check *Checker) exprWithHint(x *operand, e syntax.Expr, hint Type) {
    	assert(hint != nil)
    	check.rawExpr(nil, x, e, hint, false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top