Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Plural form use of the attribute, method, event, and property pragmas overwrites computed key names #10

@robbear

Description

@robbear

If a source file mistakenly uses the plural form of the pragmas - attribute, method, event, property - the default case in the switch statement is invoked in the parse method. This results in a key being used that conflicts with the computed plural form of the pragma. The result is that instead of the consumer of the document seeing an Array for the pragma values, a string is returned.

Because the code converts "attribute" to "attributes", etc, the plural form used within a document source should be treated as a no-op so that the author will address the error in their documentation.

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