github.com/pulumi/terraform@v1.4.0/pkg/addrs/self.go (about)

     1  package addrs
     2  
     3  // Self is the address of the special object "self" that behaves as an alias
     4  // for a containing object currently in scope.
     5  const Self selfT = 0
     6  
     7  type selfT int
     8  
     9  func (s selfT) referenceableSigil() {
    10  }
    11  
    12  func (s selfT) String() string {
    13  	return "self"
    14  }
    15  
    16  func (s selfT) UniqueKey() UniqueKey {
    17  	return Self // Self is its own UniqueKey
    18  }
    19  
    20  func (s selfT) uniqueKeySigil() {}