- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 81 for IsExported (0.23 sec)
-
src/cmd/compile/internal/types/pkg.go
copy(buf[:], prefix) b := strconv.AppendInt(buf[:len(prefix)], int64(n), 10) return pkg.LookupBytes(b) } // Selector looks up a selector identifier. func (pkg *Pkg) Selector(name string) *Sym { if IsExported(name) { pkg = LocalPkg } return pkg.Lookup(name) } var ( internedStringsmu sync.Mutex // protects internedStrings internedStrings = map[string]string{} )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:28:50 UTC 2023 - 3.1K bytes - Viewed (0) -
src/internal/reflectlite/export_test.go
typ := field.Typ // Inherit permission bits from v, but clear flagEmbedRO. fl := v.flag&(flagStickyRO|flagIndir|flagAddr) | flag(typ.Kind()) // Using an unexported field forces flagRO. if !field.Name.IsExported() { if field.Embedded() { fl |= flagEmbedRO } else { fl |= flagStickyRO } } // Either flagIndir is set and v.ptr points at struct, // or flagIndir is not set and v.ptr is the actual struct data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h
namespace tf_saved_model { // Returns the list of exported names for `op`. // An empty list means `op` is not exported. SmallVector<StringRef, 2> GetExportedNames(Operation *op); // Returns true if `op` is exported. bool IsExported(Operation *op); // Returns true if `module` has tf_saved_model linkage semantics. bool HasTfSavedModelSemantics(ModuleOp module_op); // Returns the tf_saved_model.global_tensor op that func's arg_index'th argument
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 18 03:21:34 UTC 2024 - 5.1K bytes - Viewed (0) -
src/go/ast/ast.go
func NewIdent(name string) *Ident { return &Ident{token.NoPos, name, nil} } // IsExported reports whether name starts with an upper-case letter. func IsExported(name string) bool { return token.IsExported(name) } // IsExported reports whether id starts with an upper-case letter. func (id *Ident) IsExported() bool { return token.IsExported(id.Name) } func (id *Ident) String() string { if id != nil { return id.Name }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0) -
src/go/doc/example.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K bytes - Viewed (0) -
src/internal/reflectlite/type.go
type name struct { bytes *byte } func (n name) data(off int, whySafe string) *byte { return (*byte)(add(unsafe.Pointer(n.bytes), uintptr(off), whySafe)) } func (n name) isExported() bool { return (*n.bytes)&(1<<0) != 0 } func (n name) hasTag() bool { return (*n.bytes)&(1<<1) != 0 } func (n name) embedded() bool { return (*n.bytes)&(1<<3) != 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typestring.go
defer delete(w.seen, typ) switch t := typ.(type) { case nil: w.error("nil") case *Basic: // exported basic types go into package unsafe // (currently this is just unsafe.Pointer) if isExported(t.name) { if obj, _ := Unsafe.scope.Lookup(t.name).(*TypeName); obj != nil { w.typeName(obj) break } } w.string(t.name) case *Array: w.byte('[')
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.2K bytes - Viewed (0) -
src/internal/types/errors/codes_test.go
if name == "_" { return } nameHist[len(name)]++ if value > maxValue { maxValue = value } if len(name) > len(longestName) { longestName = name } if !token.IsExported(name) { t.Errorf("%q is not exported", name) } lower := strings.ToLower(name) for _, bad := range forbiddenInIdent { if strings.Contains(lower, bad) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:41:45 UTC 2022 - 4.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
} StringRef getDescription() const override { return "Inserts the main function to the module."; } void runOnOperation() override; }; // Checks if a FuncOp is exported. bool IsExported(func::FuncOp op) { auto exported_names = op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr); return exported_names && !exported_names.empty(); } // Check if a function is an entry function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
src/go/ast/print.go
p.indent++ first := true for i, n := 0, t.NumField(); i < n; i++ { // exclude non-exported fields because their // values cannot be accessed via reflection if name := t.Field(i).Name; IsExported(name) { value := x.Field(i) if p.filter == nil || p.filter(name, value) { if first { p.printf("\n") first = false } p.printf("%s: ", name) p.print(value)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 5.9K bytes - Viewed (0)