mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-17 07:22:45 +08:00
Rearrange ast::node_t fields to improve packing
This commit is contained in:
parent
487de1e6c3
commit
c12ab7a674
|
@ -211,15 +211,15 @@ void accept_field_visitor(FieldVisitor &v, bool reverse, Field &field, Rest &...
|
|||
/// node_t is the base node of all AST nodes.
|
||||
/// It is not a template: it is possible to work concretely with this type.
|
||||
struct node_t {
|
||||
/// The parent node, or null if this is root.
|
||||
const node_t *parent{nullptr};
|
||||
|
||||
/// The type of this node.
|
||||
const type_t type;
|
||||
|
||||
/// The category of this node.
|
||||
const category_t category;
|
||||
|
||||
/// The parent node, or null if this is root.
|
||||
const node_t *parent{nullptr};
|
||||
|
||||
constexpr explicit node_t(type_t t, category_t c) : type(t), category(c) {}
|
||||
|
||||
/// Disallow copying, etc.
|
||||
|
|
Loading…
Reference in New Issue
Block a user