syntax::ast

Module syntax_factory

source
Expand description

Builds upon crate::ast::make constructors to create ast fragments with optional syntax mappings.

Instead of forcing make constructors to perform syntax mapping, we instead let SyntaxFactory handle constructing the mappings. Care must be taken to remember to feed the syntax mappings into a SyntaxEditor, if applicable.

Structsยง