Lines Matching refs:hf
223 func (hf *hasfields) String() string { return "hasfields" }
224 func (hf *hasfields) Type() string { return "hasfields" }
225 func (hf *hasfields) Truth() starlark.Bool { return true }
226 func (hf *hasfields) Hash() (uint32, error) { return 42, nil }
228 func (hf *hasfields) Freeze() {
229 if !hf.frozen {
230 hf.frozen = true
231 for _, v := range hf.attrs {
237 func (hf *hasfields) Attr(name string) (starlark.Value, error) { return hf.attrs[name], nil }
239 func (hf *hasfields) SetField(name string, val starlark.Value) error {
240 if hf.frozen {
246 hf.attrs[name] = val
250 func (hf *hasfields) AttrNames() []string {
251 names := make([]string, 0, len(hf.attrs))
252 for key := range hf.attrs {
259 func (hf *hasfields) Binary(op syntax.Token, y starlark.Value, side starlark.Side) (starlark.Value,…