Decomposes the vardecl nodes that are reachable from the given join point.

E.g. transforms int i = 0; into int i; i = 0;

Does not support decomposition for variables that are arrays, in those cases the code stays unchanged.

Hierarchy (view full)

Constructors

Properties

_name: string = "DecomposeVarDeclarations"
_traversalType: TraversalType

Accessors

  • get name(): string
  • Returns string

    Name of the pass

  • get traversalType(): TraversalType
  • Order in which the join point's descendants should be visited

    Returns TraversalType

Methods

  • Selects the join points and its descendants, if needed, according to the traversalType

    Parameters

    Returns LaraJoinPoint[]

    Array of join points selected

  • Applies this pass starting at the given join point. If no join point is given, uses the root join point

    Parameters

    Returns PassResult

    Results of applying this pass to the given joint point