terraform/internal/addrs/self.go
2026-02-17 13:56:34 +00:00

23 lines
460 B
Go

// Copyright IBM Corp. 2014, 2026
// SPDX-License-Identifier: BUSL-1.1
package addrs
// Self is the address of the special object "self" that behaves as an alias
// for a containing object currently in scope.
const Self selfT = 0
type selfT int
func (s selfT) referenceableSigil() {
}
func (s selfT) String() string {
return "self"
}
func (s selfT) UniqueKey() UniqueKey {
return Self // Self is its own UniqueKey
}
func (s selfT) uniqueKeySigil() {}