syntax

Module ast

source
Expand description

Abstract Syntax Tree, layered on top of untyped SyntaxNodes

Modules§

  • This module contains functions for editing syntax trees. As the trees are immutable, all function here return a fresh copy of the tree, instead of doing an in-place modification.
  • Structural editing for ast.
  • This module contains free-standing functions for creating AST fragments out of smaller pieces.
  • Precedence representation.
  • Builds upon crate::ast::make constructors to create ast fragments with optional syntax mappings.

Structs§

Enums§

Traits§