From 7f88fe8790014f4c879ec49de4bfdb823043e16a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 6 Nov 2018 22:06:58 +0300 Subject: Add a pinch of comments --- crates/ra_syntax/src/ast/generated.rs.tera | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/ra_syntax/src/ast/generated.rs.tera') diff --git a/crates/ra_syntax/src/ast/generated.rs.tera b/crates/ra_syntax/src/ast/generated.rs.tera index 6e28575b2..d4fc6b5bd 100644 --- a/crates/ra_syntax/src/ast/generated.rs.tera +++ b/crates/ra_syntax/src/ast/generated.rs.tera @@ -3,6 +3,12 @@ the below applies to the result of this template #}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-syntax` is run // Do not edit manually +//! This module contains auto-generated Rust AST. Like `SyntaxNode`s, AST nodes +//! are generic over ownership: `X<'a>` things are `Copy` references, `XNode` +//! are Arc-based. You can switch between the two variants using `.owned` and +//! `.borrowed` functions. Most of the code works with borowed mode, and only +//! this mode has all AST accessors. + #![cfg_attr(rustfmt, rustfmt_skip)] use crate::{ -- cgit v1.2.3