- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for TV (0.09 sec)
-
src/cmd/compile/internal/types2/api.go
// is a function call without results. func (tv TypeAndValue) IsVoid() bool { return tv.mode == novalue } // IsType reports whether the corresponding expression specifies a type. func (tv TypeAndValue) IsType() bool { return tv.mode == typexpr } // IsBuiltin reports whether the corresponding expression denotes // a (possibly parenthesized) built-in function. func (tv TypeAndValue) IsBuiltin() bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
src/go/types/api.go
// is a function call without results. func (tv TypeAndValue) IsVoid() bool { return tv.mode == novalue } // IsType reports whether the corresponding expression specifies a type. func (tv TypeAndValue) IsType() bool { return tv.mode == typexpr } // IsBuiltin reports whether the corresponding expression denotes // a (possibly parenthesized) built-in function. func (tv TypeAndValue) IsBuiltin() bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 17.2K bytes - Viewed (0) -
src/go/types/example_test.go
} func mode(tv types.TypeAndValue) string { switch { case tv.IsVoid(): return "void" case tv.IsType(): return "type" case tv.IsBuiltin(): return "builtin" case tv.IsNil(): return "nil" case tv.Assignable(): if tv.Addressable() { return "var" } return "mapindex" case tv.IsValue(): return "value" default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/type.go
// a typeAndValue contains the results of typechecking an expression. // It is embedded in expression nodes. type typeAndValue struct { tv TypeAndValue } func (x *typeAndValue) SetTypeInfo(tv TypeAndValue) { x.tv = tv } func (x *typeAndValue) GetTypeInfo() TypeAndValue { return x.tv
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
} if check.StoreTypesInSyntax { tv := TypeAndValue{mode, typ, val} stv := syntax.TypeAndValue{Type: typ, Value: val} if tv.IsVoid() { stv.SetIsVoid() } if tv.IsType() { stv.SetIsType() } if tv.IsBuiltin() { stv.SetIsBuiltin() } if tv.IsValue() { stv.SetIsValue() } if tv.IsNil() { stv.SetIsNil() } if tv.Addressable() { stv.SetAddressable()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/compiler_internal.go
pos := a.Pos() typ := a.Type.GetTypeInfo().Type name := fmt.Sprintf("#rv%d", i+1) obj.name = name s.scope.Insert(obj) obj.setScopePos(pos) tv := syntax.TypeAndValue{Type: typ} tv.SetIsValue() n := syntax.NewName(pos, obj.Name()) n.SetTypeInfo(tv) a.Name = n return obj, n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go
activation := tc.activation if activation == nil { activation = map[string]any{} } for _, tv := range tc.typeVersionCombinations { t.Run(fmt.Sprintf("version=%s,envType=%s", tv.version.String(), tv.envType), func(t *testing.T) { envSet := MustBaseEnvSet(tv.version, true) if tc.opts != nil { var err error envSet, err = envSet.Extend(tc.opts...) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 10K bytes - Viewed (0) -
src/go/types/issues_test.go
} } if want != nil && !Identical(tv.Type, want) { t.Errorf("got %s; want %s", tv.Type, want) } } } func TestIssue6413(t *testing.T) { src := ` package p func f() int { defer f() go f() return 0 } ` types := make(map[ast.Expr]TypeAndValue) mustTypecheck(src, nil, &Info{Types: types}) want := Typ[Int] n := 0 for x, tv := range types { if _, ok := x.(*ast.CallExpr); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
func runtimeSym(info *types2.Info, name string) *syntax.Name { obj := runtimePkg.Scope().Lookup(name) n := syntax.NewName(nopos, "runtime."+name) tv := syntax.TypeAndValue{Type: obj.Type()} tv.SetIsValue() tv.SetIsRuntimeHelper() n.SetTypeInfo(tv) info.Uses[n] = obj return n } // setPos walks the top structure of x that has no position assigned // and assigns it all to have position pos.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
func impl_Futimes(fd int, tv []Timeval) (err error) { var _p0 unsafe.Pointer if len(tv) > 0 { _p0 = unsafe.Pointer(&tv[0]) } else { _p0 = unsafe.Pointer(&_zero) } runtime.EnterSyscall() r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FUTIMES<<4, uintptr(fd), uintptr(_p0), uintptr(len(tv))) runtime.ExitSyscall() if int64(r0) == -1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 88.2K bytes - Viewed (0)