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
    • Parameters

      • OptionalincludeDescendants: boolean

        Apply pass to the join point's descendents

      Returns DecomposeDeclStmt

    _name: string = "DecomposeDeclStmt"
    _traversalType: TraversalType
    • 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

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

      Parameters

      • $jp: LaraJoinPoint

        Joint point on which the pass will be applied

      Returns PassResult

      Results of applying this pass to the given joint point