Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fileExports (0.12 sec)

  1. src/go/doc/exports.go

    		// thus, removing these methods early will not lead
    		// to the false removal of possible conflicts
    		return token.IsExported(d.Name.Name)
    	}
    	return false
    }
    
    // fileExports removes unexported declarations from src in place.
    func (r *reader) fileExports(src *ast.File) {
    	j := 0
    	for _, d := range src.Decls {
    		if r.filterDecl(d) {
    			src.Decls[j] = d
    			j++
    		}
    	}
    	src.Decls = src.Decls[0:j]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
Back to top