Closed chappertron closed 1 day ago
All the variants of ast::CommandType have spans associated with them, so the ast::CommandNode is not needed. ast::CommandNode is just a wrapper with a span added:
ast::CommandType
ast::CommandNode
struct CommandNode { type: CommandType, span: Span }
Doing this will make the ASTs significantly easier to use, removeing the need to extract the actual type from the command node,
This has been done. Not sure when.
All the variants of
ast::CommandType
have spans associated with them, so theast::CommandNode
is not needed.ast::CommandNode
is just a wrapper with a span added:Doing this will make the ASTs significantly easier to use, removeing the need to extract the actual type from the command node,