Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for exprOrType (0.11 sec)

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

    			// where we combine type and value arguments for type
    			// inference.
    			assert(x.mode == value)
    			inst = iexpr
    		}
    		x.expr = iexpr
    		check.record(x)
    	} else {
    		check.exprOrType(x, call.Fun, true)
    	}
    	// x.typ may be generic
    
    	switch x.mode {
    	case invalid:
    		check.use(call.ArgList...)
    		x.expr = call
    		return statement
    
    	case typexpr:
    		// conversion
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  2. src/go/types/call.go

    			// where we combine type and value arguments for type
    			// inference.
    			assert(x.mode == value)
    		} else {
    			ix = nil
    		}
    		x.expr = call.Fun
    		check.record(x)
    	} else {
    		check.exprOrType(x, call.Fun, true)
    	}
    	// x.typ may be generic
    
    	switch x.mode {
    	case invalid:
    		check.use(call.Args...)
    		x.expr = call
    		return statement
    
    	case typexpr:
    		// conversion
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. src/go/types/index.go

    // In that case x represents the uninstantiated function value and
    // it is the caller's responsibility to instantiate the function.
    func (check *Checker) indexExpr(x *operand, e *typeparams.IndexExpr) (isFuncInst bool) {
    	check.exprOrType(x, e.X, true)
    	// x may be generic
    
    	switch x.mode {
    	case invalid:
    		check.use(e.Indices...)
    		return false
    
    	case typexpr:
    		// type instantiation
    		x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/index.go

    // In that case x represents the uninstantiated function value and
    // it is the caller's responsibility to instantiate the function.
    func (check *Checker) indexExpr(x *operand, e *syntax.IndexExpr) (isFuncInst bool) {
    	check.exprOrType(x, e.X, true)
    	// x may be generic
    
    	switch x.mode {
    	case invalid:
    		check.use(e.Index)
    		return false
    
    	case typexpr:
    		// type instantiation
    		x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top