Closed
Bug 820544
Opened 12 years ago
Closed 12 years ago
WebIDL dictionary with C++ keyword as member identifier will fail to compile.
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: wchen, Assigned: wchen)
References
Details
Attachments
(1 file, 1 obsolete file)
Stuff like this will fail to compile:
dictionary ElementRegistrationOptions {
DocumentFragment? template = null;
};
Assignee | ||
Comment 1•12 years ago
|
||
Prefix dictionary members.
Attachment #691025 -
Flags: review?(bzbarsky)
![]() |
||
Comment 2•12 years ago
|
||
Comment on attachment 691025 [details] [diff] [review]
Prefix webidl dictionary native members names to avoid C++ keywords.
The big comment about "Use this->%s" is no longer relevant, since none of the locals will be named mFoo. You can probably just use self.makeMemberName(member.identifier.name) for the declName now, and remove this comment altogether. Similar for the "prop" in conversionReplacements, and for memberLoc and the comment before it.
Please update the documentation at https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings#Dictionary_types as well.
r=me with that.
Attachment #691025 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #691025 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
![]() |
||
Comment 4•12 years ago
|
||
Keywords: checkin-needed
Comment 5•12 years ago
|
||
Assignee | ||
Comment 6•12 years ago
|
||
Flags: in-testsuite+
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•