SPeCS Packages Documentation
    Preparing search index...

    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 Summary)

    Index

    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

    • 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