IDL parser should remove a leading "_" from identifier names
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2013 23:32:47 +0000 (23:32 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2013 23:32:47 +0000 (23:32 +0000)
commitb3d7ed8192cddcd0a648acc1fc56d0c678eec06e
tree113caa13b38db016a8d178fd3b650f0c6ba7354f
parentf77a71c44eea0be6b6b0d94d453f9bdd97fe99ab
IDL parser should remove a leading "_" from identifier names
https://bugs.webkit.org/show_bug.cgi?id=122239

Reviewed by Jer Noble.

No new tests, updated bindings tests and results.

* bindings/scripts/IDLParser.pm:
(identifierRemoveNullablePrefix): Remove leading "_".
(parseInterface): Call identifierRemoveNullablePrefix.
(parseException): Ditto.
(parseEnum): Ditto.
(parseConst): Ditto.
(parseAttributeRest): Ditto.
(parseOperationRest): Ditto.
(parseOptionalOrRequiredArgument): Ditto.
(parseExceptionField): Ditto.
(parseNonAnyType): Ditto.

Update tests and results.
* bindings/scripts/test/CPP/WebDOMTestObj.cpp:
* bindings/scripts/test/CPP/WebDOMTestObj.h:
* bindings/scripts/test/CPP/WebDOMattribute.cpp: Added.
* bindings/scripts/test/CPP/WebDOMattribute.h: Added.
* bindings/scripts/test/CPP/WebDOMreadonly.cpp: Added.
* bindings/scripts/test/CPP/WebDOMreadonly.h: Added.
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:
* bindings/scripts/test/GObject/WebKitDOMTestObj.symbols:
* bindings/scripts/test/GObject/WebKitDOMattribute.cpp: Added.
* bindings/scripts/test/GObject/WebKitDOMattribute.h: Added.
* bindings/scripts/test/GObject/WebKitDOMattribute.symbols: Added.
* bindings/scripts/test/GObject/WebKitDOMattributePrivate.h: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonly.cpp: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonly.h: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonly.symbols: Added.
* bindings/scripts/test/GObject/WebKitDOMreadonlyPrivate.h: Added.
* bindings/scripts/test/JS/JSTestObj.cpp:
* bindings/scripts/test/JS/JSTestObj.h:
* bindings/scripts/test/JS/JSattribute.cpp: Added.
* bindings/scripts/test/JS/JSattribute.h: Added.
* bindings/scripts/test/JS/JSreadonly.cpp: Added.
* bindings/scripts/test/JS/JSreadonly.h: Added.
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.mm:
* bindings/scripts/test/ObjC/DOMattribute.h: Added.
* bindings/scripts/test/ObjC/DOMattribute.mm: Added.
* bindings/scripts/test/ObjC/DOMattributeInternal.h: Added.
* bindings/scripts/test/ObjC/DOMreadonly.h: Added.
* bindings/scripts/test/ObjC/DOMreadonly.mm: Added.
* bindings/scripts/test/ObjC/DOMreadonlyInternal.h: Added.
* bindings/scripts/test/TestException.idl:
* bindings/scripts/test/TestInterface.idl:
* bindings/scripts/test/TestObj.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
36 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/IDLParser.pm
Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp
Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h
Source/WebCore/bindings/scripts/test/CPP/WebDOMattribute.cpp [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/CPP/WebDOMattribute.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/CPP/WebDOMreadonly.cpp [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/CPP/WebDOMreadonly.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.symbols
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMattribute.cpp [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMattribute.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMattribute.symbols [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMattributePrivate.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMreadonly.cpp [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMreadonly.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMreadonly.symbols [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMreadonlyPrivate.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestObj.h
Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/JS/JSattribute.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/JS/JSreadonly.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm
Source/WebCore/bindings/scripts/test/ObjC/DOMattribute.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/ObjC/DOMattribute.mm [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/ObjC/DOMattributeInternal.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/ObjC/DOMreadonly.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/ObjC/DOMreadonly.mm [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/ObjC/DOMreadonlyInternal.h [new file with mode: 0644]
Source/WebCore/bindings/scripts/test/TestException.idl
Source/WebCore/bindings/scripts/test/TestInterface.idl
Source/WebCore/bindings/scripts/test/TestObj.idl