Skip to content

alias NodeTypeName


(alias) NodeTypeName = ("hlist"|"vlist"|"rule"|"ins"|"mark"|"adjust"|"boundary"|"disc"|"whatsit"|"local_par"...)
    | "hlist" -- 0 `hlist_node`
    | "vlist" -- 1 `vlist_node`
    | "rule" -- 2 `rule_node`
    | "ins" -- 3 `ins_node`
    | "mark" -- 4 `mark_node`
    | "adjust" -- 5 `adjust_node`
    | "boundary" -- 6 `boundary_node`
    | "disc" -- 7 `disc_node`
    | "whatsit" -- 8 `whatsit_node`
    | "local_par" -- 9 `local_par_node`
    | "dir" -- 10 `dir_node`
    | "math" -- 11 `math_node`
    | "glue" -- 12 `glue_node`
    | "kern" -- 13 `kern_node`
    | "penalty" -- 14 `penalty_node`
    | "unset" -- 15 `unset_node`
    | "style" -- 16 `style_node`
    | "choice" -- 17 `choice_node`
    | "noad" -- 18 `simple_noad`
    | "radical" -- 19 `radical_noad`
    | "fraction" -- 20 `fraction_noad`
    | "accent" -- 21 `accent_noad`
    | "fence" -- 22 `fence_noad`
    | "math_char" -- 23 `math_char_node`
    | "sub_box" -- 24 `sub_box_node`
    | "sub_mlist" -- 25 `sub_mlist_node`
    | "math_text_char" -- 26 `math_text_char_node`
    | "delim" -- 27 `delim_node`
    | "margin_kern" -- 28 `margin_kern_node`
    | "glyph" -- 29 `glyph_node`
    | "align_record" -- 30 `align_record_node`
    | "pseudo_file" -- 31 `pseudo_file_node`
    | "pseudo_line" -- 32 `pseudo_line_node`
    | "page_insert" -- 33 `inserting_node`
    | "split_insert" -- 34 `split_up_node`
    | "expr_stack" -- 35 `expr_node`
    | "nested_list" -- 36 `nesting_node`
    | "span" -- 37 `span_node`
    | "attribute" -- 38 `attribute_node`
    | "glue_spec" -- 39 `glue_spec_node`
    | "attribute_list" -- 40 `attribute_list_node`
    | "temp" -- 41 `temp_node`
    | "align_stack" -- 42 `align_stack_node`
    | "movement_stack" -- 43 `movement_node`
    | "if_stack" -- 44 `if_node`
    | "unhyphenated" -- 45 `unhyphenated_node`
    | "hyphenated" -- 46 `hyphenated_node`
    | "delta" -- 47 `delta_node`
    | "passive" -- 48 `passive_node`
    | "shape" -- 49 `shape_node`

Example:

assert.same(node.types(), {
  [0] = "hlist",
  [1] = "vlist",
  [2] = "rule",
  [3] = "ins",
  [4] = "mark",
  [5] = "adjust",
  [6] = "boundary",
  [7] = "disc",
  [8] = "whatsit",
  [9] = "local_par",
  [10] = "dir",
  [11] = "math",
  [12] = "glue",
  [13] = "kern",
  [14] = "penalty",
  [15] = "unset",
  [16] = "style",
  [17] = "choice",
  [18] = "noad",
  [19] = "radical",
  [20] = "fraction",
  [21] = "accent",
  [22] = "fence",
  [23] = "math_char",
  [24] = "sub_box",
  [25] = "sub_mlist",
  [26] = "math_text_char",
  [27] = "delim",
  [28] = "margin_kern",
  [29] = "glyph",
  [30] = "align_record",
  [31] = "pseudo_file",
  [32] = "pseudo_line",
  [33] = "page_insert",
  [34] = "split_insert",
  [35] = "expr_stack",
  [36] = "nested_list",
  [37] = "span",
  [38] = "attribute",
  [39] = "glue_spec",
  [40] = "attribute_list",
  [41] = "temp",
  [42] = "align_stack",
  [43] = "movement_stack",
  [44] = "if_stack",
  [45] = "unhyphenated",
  [46] = "hyphenated",
  [47] = "delta",
  [48] = "passive",
  [49] = "shape",
})

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!