Skip to content

Enum values with underscores sometimes don't convert to native cross references #1542

Description

@limingchina

When enum values with underscores in their names are used in comments as cross references, they are not converted correctly as native cross references. I've constructed a test case CommentsWithCrossReferenceOfEnumValue.lime.

After building the gluecodium project, run the following command in the project root folder:

./generate -input ../functional-tests/functional/input/lime/CommentsWithCrossReferenceOfEnumValue.lime -generators cpp,swift,dart -output test

One can also use the absolute path for the input lime file.

Check the generated files

    /**
     * Note:* [Error.INVALID_PARAMETER] error is generated.
     */

instead of the correct one

    /**
     * Note:* ::test::Error::INVALID_PARAMETER error is generated.
     */

TestClassEnumValueWithoutUnderScore.h always working.

/// Note:* [Error.INVALID_PARAMETER] error is generated.

instead of the correct one

/// Note:* [Error.invalidParameter] error is generated.

test_class_enum_value_without_under_score.dart always working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions