IDL parser: Rename property of IDLNode "Partial" to "PARTIAL"

In IDL parser, we use UPPERCASE for property names. But only
'Partial' is in CamelCase.
This CL makes 'Partial' to 'PARTIAL' to be consistent with other
properties.

Bug: None
Change-Id: I2da082e412cf9d333c4e83ec05859e3c18d0dcec
Reviewed-on: https://chromium-review.googlesource.com/666347
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Commit-Queue: Hitoshi Yoshida <peria@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#501913}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ee63a5ba7429ec1acffb4031c75937afff628068
diff --git a/idl_parser.py b/idl_parser.py
index 4517372..0f3d3cb 100755
--- a/idl_parser.py
+++ b/idl_parser.py
@@ -292,7 +292,7 @@
 
   def p_Partial(self, p):
     """Partial : PARTIAL PartialDefinition"""
-    p[2].AddChildren(self.BuildTrue('Partial'))
+    p[2].AddChildren(self.BuildTrue('PARTIAL'))
     p[0] = p[2]
 
   # Error recovery for Partial
@@ -383,8 +383,7 @@
 
   def p_PartialDictionary(self, p):
     """PartialDictionary : DICTIONARY identifier '{' DictionaryMembers '}' ';'"""
-    partial = self.BuildTrue('Partial')
-    p[0] = self.BuildNamed('Dictionary', p, 2, ListFromConcat(p[4], partial))
+    p[0] = self.BuildNamed('Dictionary', p, 2, p[4])
 
   # Error recovery for Partial Dictionary
   def p_PartialDictionaryError(self, p):
diff --git a/test_parser/dictionary_web.idl b/test_parser/dictionary_web.idl
index 6f20b37..b33d0bd 100644
--- a/test_parser/dictionary_web.idl
+++ b/test_parser/dictionary_web.idl
@@ -35,7 +35,7 @@
 
 /** TREE
  *Dictionary(MyDictPartial)
- *  Partial: True
+ *  PARTIAL: True
  */
 partial dictionary MyDictPartial { };
 
diff --git a/test_parser/interface_web.idl b/test_parser/interface_web.idl
index dac2a31..71316b0 100644
--- a/test_parser/interface_web.idl
+++ b/test_parser/interface_web.idl
@@ -35,7 +35,7 @@
 
 /** TREE
  *Interface(MyIFacePartial)
- *  Partial: True
+ *  PARTIAL: True
  */
 partial interface MyIFacePartial { };