2018-03-31 04:58:57 +02:00
|
|
|
package addrs
|
|
|
|
|
|
|
|
// CountAttr is the address of an attribute of the "count" object in
|
|
|
|
// the interpolation scope, like "count.index".
|
|
|
|
type CountAttr struct {
|
|
|
|
referenceable
|
|
|
|
Name string
|
|
|
|
}
|
2018-04-04 03:03:47 +02:00
|
|
|
|
|
|
|
func (ca CountAttr) String() string {
|
|
|
|
return "count." + ca.Name
|
|
|
|
}
|
2021-07-11 00:18:19 +02:00
|
|
|
|
|
|
|
func (ca CountAttr) UniqueKey() UniqueKey {
|
|
|
|
return ca // A CountAttr is its own UniqueKey
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ca CountAttr) uniqueKeySigil() {}
|