// Set will set the value for an identifier.
5950
func (m *Map) Set(k KeyType, v ValueType) {
	m.set(k, v, mapKeyOptions{
		copyKey:     true,
		finalizeKey: m.finalize != nil,
	})
}
412635
func (ia *IntsValue) Set(s string) error {
	i, err := strconv.ParseInt(s, 10, 64)
	if err != nil {
		return err
	}
	*ia = append(*ia, int(i))
	return nil
}
6653
func (p *IntParam) Set(s string) error {
	v, err := strconv.ParseInt(s, 0, 64)
	if err != nil {
		return err
	}
	p.val = &v
	return nil
}
651768
func (f *SecureStack) Set(ind int, d interface{}) {
	sz := f.Size()

	if ind >= sz {
		return
	}

	if ind < 0 {
		ind = sz - ind
		if ind < 0 {
			return
		}
	}

	f.lock.Lock()
	f.listeners[ind] = d
	f.lock.Unlock()
}
538931
func (me *Int) Set(s string) {
	v, _ := strconv.ParseInt(s, 0, 32)
	*me = Int(v)
}
607474
func (ai *AtomicInt) Set(newValue int) {
	atomic.StoreInt64(&ai.val, int64(newValue))
}
859791
func (ia *Floats64Value) Set(s string) error {
	i, err := strconv.ParseFloat(s, 64)
	if err != nil {
		return err
	}
	*ia = append(*ia, i)
	return nil
}
411849
func NewIdentifierSet(a ...Identifier) IdentifierSet {
	s := make(IdentifierSet)
	for _, i := range a {
		s.Add(i)
	}
	return s
}
799274
func (m *MyID) Set(key int, value string) {
	m.Lock()
	m.logCache[key] = value
	m.Unlock()
}
745953
func (s *AttributeValue) SetS(v string) *AttributeValue {
	s.S = &v
	return s
}
318729
func (fcomp *fcomp) set(id *syntax.Ident) {
	switch resolve.Scope(id.Scope) {
	case resolve.Local:
		fcomp.emit1(SETLOCAL, uint32(id.Index))
	case resolve.Global:
		fcomp.emit1(SETGLOBAL, uint32(id.Index))
	default:
		log.Fatalf("%s: set(%s): neither global nor local (%d)", id.NamePos, id.Name, id.Scope)
	}
}
145598
func set(m []uint8, n uint64) {
	idx, mask := n>>idxShift, n&idxMask
	m[idx] |= 1 << mask
}
55920
func (a *Algorithm) Set(value string) error {
	if value == "" {
		*a = Canonical
	} else {
		// just do a type conversion, support is queried with Available.
		*a = Algorithm(value)
	}

	return nil
}
235400
func (i *Int16) Set(value int16) {
	i.lock.Lock()
	defer i.lock.Unlock()
	i.increment = value
}
757654
func (s *ID) Set(v string) error {
	id, err := ParseID(v)
	if err != nil {
		return trace.Wrap(err)
	}
	*s = *id
	return nil
}
646785
func (a *Annotations) Set(name ACIdentifier, value string) {
	for i, anno := range *a {
		if anno.Name.Equals(name) {
			(*a)[i] = Annotation{
				Name:  name,
				Value: value,
			}
			return
		}
	}
	anno := Annotation{
		Name:  name,
		Value: value,
	}
	*a = append(*a, anno)
}
1301666
func (d *diagnosticsCollector) Set(name string, value interface{}) {
	switch v := value.(type) {
	case string:
		if v == "" {
			// Do not set empty string
			return
		}
	}
	d.mu.Lock()
	defer d.mu.Unlock()
	d.metrics[name] = value
}