Module src/r-bridge/lang-4.x/ast/model/processing/decorate

The decoration module is tasked with taking an R-ast given by a RNode and

  1. assigning a unique id to each node (see IdGenerator)
  2. transforming the AST into a doubly linked tree using the ids (so it stays serializable)

The main entry point is decorateAst.

Interfaces

NormalizedAst
NormalizedAstDecorationConfiguration
ParentContextInfo
ParentInformation

Type Aliases

AstIdMap
IdGenerator
RNodeWithParent

Functions

decorateAst
deterministicCountingIdGenerator
deterministicLocationIdGenerator
deterministicPrefixIdGenerator
nodeToLocationId
sourcedDeterministicCountingIdGenerator