Skip to content

XML assignExpression operator does not escape value #151

@workhorsy

Description

@workhorsy

XML generation is broken with "&=" and "<<=" operators. It does not escape them into "&=" and "<<=". So it generates invalid XML.

./dscanner --ast example.d > example.xml

// example.d
int main() {
size_t a, b;

a &= b; // is:        <assignExpression operator="&=">
        // should be: <assignExpression operator="&amp;=">

a <<= b; // is:        <assignExpression operator="<<=">
         // should be: <assignExpression operator="&lt;&lt;=">

return 0;

}

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