Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for HasOk (0.04 sec)

  1. src/cmd/compile/internal/syntax/type.go

    func (f exprFlags) IsNil() bool           { return f&16 != 0 }
    func (f exprFlags) Addressable() bool     { return f&32 != 0 }
    func (f exprFlags) Assignable() bool      { return f&64 != 0 }
    func (f exprFlags) HasOk() bool           { return f&128 != 0 }
    func (f exprFlags) IsRuntimeHelper() bool { return f&256 != 0 } // a runtime function called from transformed syntax
    
    func (f *exprFlags) SetIsVoid()          { *f |= 1 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/go/types/api.go

    func (tv TypeAndValue) Assignable() bool {
    	return tv.mode == variable || tv.mode == mapindex
    }
    
    // HasOk reports whether the corresponding expression may be
    // used on the rhs of a comma-ok assignment.
    func (tv TypeAndValue) HasOk() bool {
    	return tv.mode == commaok || tv.mode == mapindex
    }
    
    // Instance reports the type arguments and instantiated type for type and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api.go

    func (tv TypeAndValue) Assignable() bool {
    	return tv.mode == variable || tv.mode == mapindex
    }
    
    // HasOk reports whether the corresponding expression may be
    // used on the rhs of a comma-ok assignment.
    func (tv TypeAndValue) HasOk() bool {
    	return tv.mode == commaok || tv.mode == mapindex
    }
    
    // Instance reports the type arguments and instantiated type for type and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api_test.go

    		{`package s0; var (m map[int]int; _ = m[0])`, `m[0]`, `value, assignable, hasOk`},
    		{`package s1; var (m map[int]int; _, _ = m[0])`, `m[0]`, `value, assignable, hasOk`},
    
    		// hasOk expressions
    		{`package k0; var (ch chan int; _ = <-ch)`, `<-ch`, `value, hasOk`},
    		{`package k1; var (ch chan int; _, _ = <-ch)`, `<-ch`, `value, hasOk`},
    
    		// missing entries
    		// - package names are collected in the Uses map
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  5. src/go/types/api_test.go

    		{`package s0; var (m map[int]int; _ = m[0])`, `m[0]`, `value, assignable, hasOk`},
    		{`package s1; var (m map[int]int; _, _ = m[0])`, `m[0]`, `value, assignable, hasOk`},
    
    		// hasOk expressions
    		{`package k0; var (ch chan int; _ = <-ch)`, `<-ch`, `value, hasOk`},
    		{`package k1; var (ch chan int; _, _ = <-ch)`, `<-ch`, `value, hasOk`},
    
    		// missing entries
    		// - package names are collected in the Uses map
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/check.go

    			stv.SetIsValue()
    		}
    		if tv.IsNil() {
    			stv.SetIsNil()
    		}
    		if tv.Addressable() {
    			stv.SetAddressable()
    		}
    		if tv.Assignable() {
    			stv.SetAssignable()
    		}
    		if tv.HasOk() {
    			stv.SetHasOk()
    		}
    		x.SetTypeInfo(stv)
    	}
    }
    
    func (check *Checker) recordBuiltinType(f syntax.Expr, sig *Signature) {
    	// f must be a (possibly parenthesized, possibly qualified)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  7. api/go1.5.txt

    pkg go/types, method (Error) Error() string
    pkg go/types, method (TypeAndValue) Addressable() bool
    pkg go/types, method (TypeAndValue) Assignable() bool
    pkg go/types, method (TypeAndValue) HasOk() bool
    pkg go/types, method (TypeAndValue) IsBuiltin() bool
    pkg go/types, method (TypeAndValue) IsNil() bool
    pkg go/types, method (TypeAndValue) IsType() bool
    pkg go/types, method (TypeAndValue) IsValue() bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(Checker).PkgNameOf", Method, 22},
    		{"(Checker).TypeOf", Method, 5},
    		{"(Error).Error", Method, 5},
    		{"(TypeAndValue).Addressable", Method, 5},
    		{"(TypeAndValue).Assignable", Method, 5},
    		{"(TypeAndValue).HasOk", Method, 5},
    		{"(TypeAndValue).IsBuiltin", Method, 5},
    		{"(TypeAndValue).IsNil", Method, 5},
    		{"(TypeAndValue).IsType", Method, 5},
    		{"(TypeAndValue).IsValue", Method, 5},
    		{"(TypeAndValue).IsVoid", Method, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top