Skip to content

Ambiguous category for C# using aliases #70

Description

@Joshua2000B

Like C++, C# has using statements in the form of:

using A = B;

However, there are two semantic uses of this syntax:

Namespace Aliasing

using ProjectIO = System.IO;

and Type Aliasing

using IntList = System.Collections.Generic.List<int>;

nameCollector should collect the first as ProjectIO is a namespace... and the second as IntList is a System.Collections.Generic.List<int> typedef.... However, there is overloaded syntax between them, and srcML marks the later half as an <expr>.

We need to discuss how to collect these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions