Skip to content

alias NodeTypeId


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