Currently, IDL parser does not dump properties of IDLNode's, and its test depends on the output. I put an example at the bottom of this description.
For unit tests, we should distinguish the difference between different entries, and for users of output ASTs, its dumped text can be informative with rich information.
Verbose information should be suppressed, but why don't we output more information they have?
/** TREE
*Interface(MyIfaceSerializer)
* Serializer()
* Serializer()
* Operation(toJSON)
* Arguments()
* Type()
* Any()
* Serializer()
* Serializer()
* Map()
* Serializer()
* Map()
* Serializer()
* Map()
* Serializer()
* Map()
* Serializer()
* Map()
* Serializer()
* Map()
* Serializer()
* Map()
* Serializer()
* List()
* Serializer()
* List()
* Serializer()
* List()
*/
interface MyIfaceSerializer {
serializer;
serializer any toJSON();
serializer = name;
serializer = {};
serializer = { getter };
serializer = { attribute };
serializer = { inherit, attribute };
serializer = { inherit };
serializer = { inherit, name1, name2 };
serializer = { name1, name2 };
serializer = [];
serializer = [getter];
serializer = [name1, name2];
};
Comment 1 by bugdroid1@chromium.org
, Sep 14 2017