Class: ASTTransform::Thunk::Id

Inherits:
Object
  • Object
show all
Defined in:
lib/ast_transform/thunk.rb

Overview

The identity of a Thunk across transformation passes: Processor and Node#updated rebuilds create new node objects, so node identity does not survive — but children DO (carried by reference through every rebuild). Every rebuild of a thunk therefore carries this same id object, and the lowering groups occurrences by its object identity: one proc, one call per occurrence. Minted internally by the thunk helper, never handled by authors. No behavior — a named class over a bare Object.new only for self-documenting AST dumps and greppability.