aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/expr_ext.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-29 18:18:53 +0100
committerGitHub <[email protected]>2020-07-29 18:18:53 +0100
commit2dfda0b984c45946b9a4148bd848350deac544f2 (patch)
tree1942eeab995b0bd191c6a998b47cb20a426e5dd3 /crates/ra_syntax/src/ast/expr_ext.rs
parent525ae706b3e4c0f5f8b80d197e5fede0a9974442 (diff)
parent3d28292157e1b6c9675ef64eddf53786c3e7dc5f (diff)
Merge #5572
5572: Switch to ungrammar from ast_src r=matklad a=matklad The primary advantage of ungrammar is that it (eventually) allows one to describe concrete syntax tree structure -- with alternatives and specific sequence of tokens & nodes. That should be re-usable for: * generate `make` calls * Rust reference * Hypothetical parser's evented API We loose doc comments for the time being unfortunately. I don't think we should add support for doc comments to ungrammar -- they'll make grammar file hard to read. We might supply docs as out-of band info, or maybe just via a reference, but we'll think about that once things are no longer in flux bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/ast/expr_ext.rs')
-rw-r--r--crates/ra_syntax/src/ast/expr_ext.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/expr_ext.rs b/crates/ra_syntax/src/ast/expr_ext.rs
index db5438d68..69c85c809 100644
--- a/crates/ra_syntax/src/ast/expr_ext.rs
+++ b/crates/ra_syntax/src/ast/expr_ext.rs
@@ -7,6 +7,8 @@ use crate::{
7 SyntaxToken, T, 7 SyntaxToken, T,
8}; 8};
9 9
10impl ast::AttrsOwner for ast::Expr {}
11
10impl ast::Expr { 12impl ast::Expr {
11 pub fn is_block_like(&self) -> bool { 13 pub fn is_block_like(&self) -> bool {
12 match self { 14 match self {