Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for IsExported (0.23 sec)

  1. src/internal/abi/type.go

    func (n Name) Data(off int) *byte {
    	return (*byte)(addChecked(unsafe.Pointer(n.Bytes), uintptr(off), "the runtime doesn't need to give you a reason"))
    }
    
    // IsExported returns "is n exported?"
    func (n Name) IsExported() bool {
    	return (*n.Bytes)&(1<<0) != 0
    }
    
    // HasTag returns true iff there is tag data following this name
    func (n Name) HasTag() bool {
    	return (*n.Bytes)&(1<<1) != 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    	shadowedPredecl map[string]bool
    	fixmap          map[string][]*ast.InterfaceType
    }
    
    func (r *reader) isVisible(name string) bool {
    	return r.mode&AllDecls != 0 || token.IsExported(name)
    }
    
    // lookupType returns the base type with the given name.
    // If the base type has not been encountered yet, a new
    // type with the given name but no associated declaration
    // is added to the type map.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. src/go/ast/filter.go

    // ----------------------------------------------------------------------------
    // Export filtering
    
    // exportFilter is a special filter function to extract exported nodes.
    func exportFilter(name string) bool {
    	return IsExported(name)
    }
    
    // FileExports trims the AST for a Go source file in place such that
    // only exported nodes remain: all top-level identifiers which are not exported
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/encoding/json/encode.go

    					if t.Kind() == reflect.Pointer {
    						t = t.Elem()
    					}
    					if !sf.IsExported() && t.Kind() != reflect.Struct {
    						// Ignore embedded fields of unexported non-struct types.
    						continue
    					}
    					// Do not ignore embedded fields of unexported struct types
    					// since they may have exported fields.
    				} else if !sf.IsExported() {
    					// Ignore unexported non-embedded fields.
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  5. src/encoding/asn1/marshal.go

    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return int64Encoder(v.Int()), nil
    	case reflect.Struct:
    		t := v.Type()
    
    		for i := 0; i < t.NumField(); i++ {
    			if !t.Field(i).IsExported() {
    				return nil, StructuralError{"struct contains unexported fields"}
    			}
    		}
    
    		startingField := 0
    
    		n := t.NumField()
    		if n == 0 {
    			return bytesEncoder(nil), nil
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      // In the absence of any other information, use this name as the symbol table
      // name for this node.
      std::string GetDefaultSymbolTableName(int node_id) const;
      // Determines if a name is exported.
      bool IsExported(const std::string& name);
      // Main object graph traversal function.
      void RecursivelyVisitObjectGraph(int node_id);
      // Gets a stable StringRef from a std::string.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  7. src/runtime/iface.go

    			tname := rtyp.nameOff(t.Name)
    			if rtyp.typeOff(t.Mtyp) == itype && tname.Name() == iname {
    				pkgPath := pkgPath(tname)
    				if pkgPath == "" {
    					pkgPath = rtyp.nameOff(x.PkgPath).Name()
    				}
    				if tname.IsExported() || pkgPath == ipkg {
    					ifn := rtyp.textOff(t.Ifn)
    					if k == 0 {
    						fun0 = ifn // we'll set m.Fun[0] at the end
    					} else if firstTime {
    						methods[k] = ifn
    					}
    					continue imethods
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/expr.go

    				// function is compiled as if in the source
    				// package of the generic function.
    				if !(ir.CurFunc != nil && strings.Contains(ir.CurFunc.Nname.Sym().Name, "[")) {
    					if s != nil && !types.IsExported(s.Name) && s.Pkg != types.LocalPkg {
    						base.Errorf("implicit assignment of unexported field '%s' in %v literal", s.Name, t)
    					}
    				}
    				// No pushtype allowed here. Must name fields for that.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/named.go

    		}
    		n.underlying = u
    	}
    
    	return u
    }
    
    func (n *Named) lookupMethod(pkg *Package, name string, foldCase bool) (int, *Func) {
    	n.resolve()
    	if samePkg(n.obj.pkg, pkg) || isExported(name) || foldCase {
    		// If n is an instance, we may not have yet instantiated all of its methods.
    		// Look up the method index in orig, and only instantiate method at the
    		// matching index (if any).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/resolver.go

    						// Note: Avoid eager resolve(name, obj) here, so we only
    						// resolve dot-imported objects as needed.
    
    						// A package scope may contain non-exported objects,
    						// do not import them!
    						if isExported(name) {
    							// declare dot-imported object
    							// (Do not use check.declare because it modifies the object
    							// via Object.setScopePos, which leads to a race condition;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top