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