Documentation
¶
Overview ¶
Package sid provides Stable ID calculation for AST nodes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SIDMap ¶
SIDMap maintains the mapping from surface SIDs to core SIDs
func (*SIDMap) AddMapping ¶
AddMapping records a surface→core SID mapping
func (*SIDMap) GetCoreSIDs ¶
GetCoreSIDs returns all core SIDs derived from a surface SID
func (*SIDMap) GetSurfaceSID ¶
GetSurfaceSID returns the surface SID that generated a core SID
func (*SIDMap) GetTraceSlice ¶
func (m *SIDMap) GetTraceSlice(surfaceSID SID) *TraceSlice
GetTraceSlice returns the transformation trace for a surface SID
type TraceSlice ¶
type TraceSlice struct {
SurfaceSID SID
SurfaceKind string
CoreSIDs []SID
CoreKinds []string
Steps []TransformStep
}
TraceSlice represents the transformation path from surface to core
type TransformStep ¶
TransformStep represents one step in the transformation
Click to show internal directories.
Click to hide internal directories.