Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shadowedPredecl (0.13 sec)

  1. src/go/doc/exports.go

    		if name := s.Name.Name; token.IsExported(name) {
    			r.filterType(r.lookupType(s.Name.Name), s.Type)
    			return true
    		} else if IsPredeclared(name) {
    			if r.shadowedPredecl == nil {
    				r.shadowedPredecl = make(map[string]bool)
    			}
    			r.shadowedPredecl[name] = true
    		}
    	}
    	return false
    }
    
    // copyConstType returns a copy of typ with position pos.
    // typ must be a valid constant type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    	order  int      // sort order of const and var declarations (when we can't use a name)
    	types  map[string]*namedType
    	funcs  methodSet
    
    	// support for package-local shadowing of predeclared types
    	shadowedPredecl map[string]bool
    	fixmap          map[string][]*ast.InterfaceType
    }
    
    func (r *reader) isVisible(name string) bool {
    	return r.mode&AllDecls != 0 || token.IsExported(name)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top