diff options
author | Benjamin Coenen <[email protected]> | 2020-04-09 17:37:34 +0100 |
---|---|---|
committer | Benjamin Coenen <[email protected]> | 2020-04-09 18:12:50 +0100 |
commit | c1317d692321ba5ba8f138067ebefbb9559d098d (patch) | |
tree | e29a44577e4d2cf55b6f53e3428abea43bbd33d7 /crates/ra_syntax/src/ast/expr_extensions.rs | |
parent | fc70cf9458c5234decafdd52b9aced790ac43d7a (diff) | |
parent | 30f0ad159a0f260f54356385de63c171722adb72 (diff) |
feat: add support for feature attributes in struct literal
Signed-off-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/ast/expr_extensions.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/expr_extensions.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/expr_extensions.rs b/crates/ra_syntax/src/ast/expr_extensions.rs index 8bbd946c0..40c8fca3b 100644 --- a/crates/ra_syntax/src/ast/expr_extensions.rs +++ b/crates/ra_syntax/src/ast/expr_extensions.rs | |||
@@ -52,6 +52,10 @@ impl ast::RefExpr { | |||
52 | pub fn is_mut(&self) -> bool { | 52 | pub fn is_mut(&self) -> bool { |
53 | self.syntax().children_with_tokens().any(|n| n.kind() == T![mut]) | 53 | self.syntax().children_with_tokens().any(|n| n.kind() == T![mut]) |
54 | } | 54 | } |
55 | |||
56 | pub fn raw_token(&self) -> Option<SyntaxToken> { | ||
57 | None // FIXME: implement &raw | ||
58 | } | ||
55 | } | 59 | } |
56 | 60 | ||
57 | #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] | 61 | #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] |