Permalink
Browse files

Bug 818976 - Part 3: Generated code for HTML5 parser. r=hsivonen

  • Loading branch information...
1 parent be5cd8e commit ed3fd99a7afc7ed750b9cf9928c44502ab277ee5 William Chen committed Mar 26, 2013
@@ -32,7 +32,7 @@
public final class ElementName
// uncomment when regenerating self
-// implements Comparable<ElementName>
+// implements Comparable<ElementName>
{
/**
@@ -190,7 +190,7 @@ protected ElementName(@Local String name) {
// }
// if ((flags & SCOPING) != 0) {
// buf.append(" | SCOPING");
-// }
+// }
// if ((flags & SCOPING_AS_MATHML) != 0) {
// buf.append(" | SCOPING_AS_MATHML");
// }
@@ -202,7 +202,7 @@ protected ElementName(@Local String name) {
// }
// return buf.toString();
// }
-//
+//
// private String constName() {
// char[] buf = new char[name.length()];
// for (int i = 0; i < name.length(); i++) {
@@ -312,6 +312,8 @@ protected ElementName(@Local String name) {
// return "TEXTAREA";
// case TreeBuilder.TITLE:
// return "TITLE";
+// case TreeBuilder.TEMPLATE:
+// return "TEMPLATE";
// case TreeBuilder.TR:
// return "TR";
// case TreeBuilder.XMP:
@@ -349,7 +351,7 @@ protected ElementName(@Local String name) {
// case TreeBuilder.FIELDSET:
// return "FIELDSET";
// case TreeBuilder.ADDRESS_OR_ARTICLE_OR_ASIDE_OR_DETAILS_OR_DIR_OR_FIGCAPTION_OR_FIGURE_OR_FOOTER_OR_HEADER_OR_HGROUP_OR_MAIN_OR_NAV_OR_SECTION_OR_SUMMARY:
-// return "ADDRESS_OR_ARTICLE_OR_ASIDE_OR_DETAILS_OR_DIR_OR_FIGCAPTION_OR_FIGURE_OR_FOOTER_OR_HEADER_OR_HGROUP_OR_NAV_OR_SECTION_OR_SUMMARY";
+// return "ADDRESS_OR_ARTICLE_OR_ASIDE_OR_DETAILS_OR_DIR_OR_FIGCAPTION_OR_FIGURE_OR_FOOTER_OR_HEADER_OR_HGROUP_OR_MAIN_OR_NAV_OR_SECTION_OR_SUMMARY";
// case TreeBuilder.RUBY_OR_SPAN_OR_SUB_OR_SUP_OR_VAR:
// return "RUBY_OR_SPAN_OR_SUB_OR_SUP_OR_VAR";
// case TreeBuilder.RT_OR_RP:
@@ -374,7 +376,7 @@ protected ElementName(@Local String name) {
//
// /**
// * Regenerate self
-// *
+// *
// * @param args
// */
// public static void main(String[] args) {
@@ -724,6 +726,7 @@ protected ElementName(@Local String name) {
public static final ElementName QUOTIENT = new ElementName("quotient", "quotient", TreeBuilder.OTHER);
public static final ElementName SELECTOR = new ElementName("selector", "selector", TreeBuilder.OTHER);
public static final ElementName TEXTAREA = new ElementName("textarea", "textarea", TreeBuilder.TEXTAREA | SPECIAL);
+ public static final ElementName TEMPLATE = new ElementName("template", "template", TreeBuilder.TEMPLATE | SPECIAL);
public static final ElementName TEXTPATH = new ElementName("textpath", "textPath", TreeBuilder.OTHER);
public static final ElementName VARIANCE = new ElementName("variance", "variance", TreeBuilder.OTHER);
public static final ElementName ANIMATION = new ElementName("animation", "animation", TreeBuilder.OTHER);
@@ -1118,6 +1121,7 @@ protected ElementName(@Local String name) {
QUOTIENT,
SELECTOR,
TEXTAREA,
+ TEMPLATE,
TEXTPATH,
VARIANCE,
ANIMATION,
@@ -1513,6 +1517,7 @@ protected ElementName(@Local String name) {
286931113,
288964227,
289445441,
+ 289591340,
289689648,
291671489,
303512884,
@@ -36,22 +36,24 @@
/**
* Constant for "charset".
*/
- private static final char[] CHARSET = "harset".toCharArray();
+ private static final char[] CHARSET = { 'h', 'a', 'r', 's', 'e', 't' };
/**
* Constant for "content".
*/
- private static final char[] CONTENT = "ontent".toCharArray();
+ private static final char[] CONTENT = { 'o', 'n', 't', 'e', 'n', 't' };
/**
* Constant for "http-equiv".
*/
- private static final char[] HTTP_EQUIV = "ttp-equiv".toCharArray();
+ private static final char[] HTTP_EQUIV = { 't', 't', 'p', '-', 'e', 'q',
+ 'u', 'i', 'v' };
/**
* Constant for "content-type".
*/
- private static final char[] CONTENT_TYPE = "content-type".toCharArray();
+ private static final char[] CONTENT_TYPE = { 'c', 'o', 'n', 't', 'e', 'n',
+ 't', '-', 't', 'y', 'p', 'e' };
private static final int NO = 0;
@@ -270,22 +270,24 @@
/**
* "CDATA[" as <code>char[]</code>
*/
- private static final @NoLength char[] CDATA_LSQB = "CDATA[".toCharArray();
+ private static final @NoLength char[] CDATA_LSQB = { 'C', 'D', 'A', 'T',
+ 'A', '[' };
/**
* "octype" as <code>char[]</code>
*/
- private static final @NoLength char[] OCTYPE = "octype".toCharArray();
+ private static final @NoLength char[] OCTYPE = { 'o', 'c', 't', 'y', 'p',
+ 'e' };
/**
* "ublic" as <code>char[]</code>
*/
- private static final @NoLength char[] UBLIC = "ublic".toCharArray();
+ private static final @NoLength char[] UBLIC = { 'u', 'b', 'l', 'i', 'c' };
/**
* "ystem" as <code>char[]</code>
*/
- private static final @NoLength char[] YSTEM = "ystem".toCharArray();
+ private static final @NoLength char[] YSTEM = { 'y', 's', 't', 'e', 'm' };
private static final char[] TITLE_ARR = { 't', 'i', 't', 'l', 'e' };
Oops, something went wrong.

0 comments on commit ed3fd99

Please sign in to comment.