mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-11 00:22:32 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
26 lines
537 B
Go
26 lines
537 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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() {}
|