Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsValue (0.67 sec)

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

    // a (possibly parenthesized) built-in function.
    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    // IsValue reports whether the corresponding expression is a value.
    // Builtins are not considered values. Constant values have a non-
    // nil Value.
    func (tv TypeAndValue) IsValue() bool {
    	switch tv.mode {
    	case constant_, variable, mapindex, value, nilvalue, commaok, commaerr:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    		if _, ok := astutil.Unparen(star.X).(*ast.CallExpr); ok {
    			// A call may return a pointer to a zero value.
    			return nil
    		}
    	}
    	if tv, ok := pass.TypesInfo.Types[x]; ok && tv.IsValue() {
    		return lockPath(pass.Pkg, tv.Type, nil)
    	}
    	return nil
    }
    
    // lockPath returns a typePath describing the location of a lock value
    // contained in typ. If there is no contained lock, it returns nil.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top