Skip to content

Split nameCollectorHandler for multiple languages #38

@Joshua2000B

Description

@Joshua2000B

As we add more languages to srcML, the differences between languages' use of user defined names causes the complexity of the handler to grow. Python's collection logic has resulted in a lot of one-off if-statements that wrap all of the previous code, and then the code for Python.

In particular is the printing logic, which has been duplicated numerous times. This can be fixed, but will be a bandaid fix and not actually address the underlying design issue.

We should look into splitting nameCollectorHandler apart to compartmentalize the logic for different language types - i.e., no declaration/no typed languages (Python) vs declaration/typed (C,C++,C#,Java). Emphasis should be on supporting the future additions of languages (JavaScript, Swift, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions