Decomposes composite declaration statements into separate statements for each variable.

This means that a declaration like:

int a, b = 10, c;

Will be decomposed to:

int a;
int b = 10;
int c;

Hierarchy (view full)

Constructors

  • Parameters

    • OptionalincludeDescendants: boolean

      Apply pass to the join point's descendents

    Returns decomposeDeclStmt

Properties

_name: string = "DecomposeDeclStmt"
_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

MMNEPVFCICPMFPCPTTAAATR