Skip to content

PrimaryExpression and UnaryExpression are not decomposed #409

Description

PrimaryExpression and UnaryExpression are not decomposed and this has a negative impact on the amount of memory used.

UnaryExpression should be

classUnaryExpression : AstNode
{
Expression exp;
}

and then

classPrefixExpression : UnaryExpression {}
classPreIncrementExpression : PrefixExpression {}
classPreDecrementExpression : PrefixExpression {}
classAtExpression : PrefixExpression {}
classDereferenceExpression : PrefixExpression {}
classPostfixExpression : UnaryExpression {}
classIndexExpression : PostfixExpression {}
classDotExpression : PostfixExpression {}
/**\ ETC \**/

For example a.b.c takes almost 3 kB of memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions