Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for filterSpecList (0.58 sec)

  1. src/go/doc/exports.go

    				Sel: ast.NewIdent(typ.Sel.Name),
    				X:   &ast.Ident{Name: id.Name, NamePos: pos},
    			}
    		}
    	}
    	return nil // shouldn't happen, but be conservative and don't panic
    }
    
    func (r *reader) filterSpecList(list []ast.Spec, tok token.Token) []ast.Spec {
    	if tok == token.CONST {
    		// Propagate any type information that would get lost otherwise
    		// when unexported constants are filtered.
    		var prevType ast.Expr
    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/ast/filter.go

    			// out.
    			// If the type contains filtered elements,
    			// keep the declaration.
    			return filterType(s.Type, f, export)
    		}
    	}
    	return false
    }
    
    func filterSpecList(list []Spec, f Filter, export bool) []Spec {
    	j := 0
    	for _, s := range list {
    		if filterSpec(s, f, export) {
    			list[j] = s
    			j++
    		}
    	}
    	return list[0:j]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top