[][src]Module ra_ap_syntax::ast::make

This module contains free-standing functions for creating AST fragments out of smaller pieces.

Note that all functions here intended to be stupid constructors, which just assemble a finish node from immediate children. If you want to do something smarter than that, it probably doesn't belong in this module.

Modules

tokens

Functions

arg_list
block_expr
condition
expr_break
expr_call
expr_continue
expr_empty_block
expr_if
expr_match
expr_method_call
expr_path
expr_prefix
expr_return
expr_stmt
expr_todo
expr_unimplemented
expr_unit
expr_unreachable
fn_
ident_pat
let_stmt
match_arm
match_arm_list
name
name_ref
param
param_list
path_from_text
path_pat

Returns a BindPat if the path has just one segment, a PathPat otherwise.

path_qualified
path_segment
path_segment_self
path_unqualified
record_expr_field
record_field
record_pat
token
try_expr_from_text
tuple_pat

Creates a tuple of patterns from an interator of patterns.

tuple_struct_pat
ty
use_
use_tree
use_tree_list
visibility_pub_crate
where_clause
where_pred
wildcard_pat