- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for isBuiltin (0.23 sec)
-
src/cmd/compile/internal/syntax/type.go
Value constant.Value exprFlags } type exprFlags uint16 func (f exprFlags) IsVoid() bool { return f&1 != 0 } func (f exprFlags) IsType() bool { return f&2 != 0 } func (f exprFlags) IsBuiltin() bool { return f&4 != 0 } // a language builtin that resembles a function call, e.g., "make, append, new" func (f exprFlags) IsValue() bool { return f&8 != 0 }
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/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go
ast.Inspect(e, func(node ast.Node) bool { switch n := node.(type) { case *ast.CallExpr: typVal := info.Types[n.Fun] switch { case typVal.IsType(): // Type conversion, which is safe. case typVal.IsBuiltin(): // Builtin func, conservatively assumed to not // be safe for now. safe = false return false default: // A non-builtin func or method call. // Conservatively assume that all of them have
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 3.9K bytes - Viewed (0) -
src/text/template/exec.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0) -
src/go/types/api.go
// 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 { return tv.mode == builtin } // IsValue reports whether the corresponding expression is a value.
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/cmd/compile/internal/types2/api.go
// 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 { return tv.mode == builtin } // IsValue reports whether the corresponding expression is a value.
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/example_test.go
// 12:26 | 2 | value : int = 2 } 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) -
pilot/pkg/config/kube/crdclient/client.go
namespaceFilter = kube.FilterIfEnhancedFilteringEnabled(cl.client) } filter := kubetypes.Filter{ObjectFilter: composeFilters(namespaceFilter, cl.inRevision, extraFilter)} var kc kclient.Untyped if s.IsBuiltin() { kc = kclient.NewUntypedInformer(cl.client, gvr, filter) } else { kc = kclient.NewDelayedInformer[controllers.Object]( cl.client, gvr, kubetypes.StandardInformer, filter, ) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 00:12:28 UTC 2024 - 13.7K bytes - Viewed (0) -
src/text/template/funcs.go
return false } } return true } // findFunction looks for a function in the template, and global map. func findFunction(name string, tmpl *Template) (v reflect.Value, isBuiltin, ok bool) { if tmpl != nil && tmpl.common != nil { tmpl.muFuncs.RLock() defer tmpl.muFuncs.RUnlock() if fn := tmpl.execFuncs[name]; fn.IsValid() { return fn, false, true } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
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/cgo/out.go
return "malloc" } return name } var isBuiltin = map[string]bool{ "_Cfunc_CString": true, "_Cfunc_CBytes": true, "_Cfunc_GoString": true, "_Cfunc_GoStringN": true, "_Cfunc_GoBytes": true, "_Cfunc__CMalloc": true, } func (p *Package) writeOutputFunc(fgcc *os.File, n *Name) { name := n.Mangle if isBuiltin[name] || p.Written[name] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0)