aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-09-07 14:13:05 +0100
committerFlorian Diebold <[email protected]>2019-09-07 14:13:05 +0100
commitd21cdf3c998bb24e48e81a7e6909df2146ce097c (patch)
tree5f6928f1ee40b3f314c6f74f3552e06f820b5ca7 /crates/ra_syntax/src
parent60bdb66ef23f78d8c73afa1897a4542e7e722ed2 (diff)
Lower `Fn(X, Y) -> Z` paths
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs6
-rw-r--r--crates/ra_syntax/src/grammar.ron2
2 files changed, 7 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index bcf753f78..d274b6fbc 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -2312,6 +2312,12 @@ impl PathSegment {
2312 pub fn type_arg_list(&self) -> Option<TypeArgList> { 2312 pub fn type_arg_list(&self) -> Option<TypeArgList> {
2313 AstChildren::new(&self.syntax).next() 2313 AstChildren::new(&self.syntax).next()
2314 } 2314 }
2315 pub fn param_list(&self) -> Option<ParamList> {
2316 AstChildren::new(&self.syntax).next()
2317 }
2318 pub fn ret_type(&self) -> Option<RetType> {
2319 AstChildren::new(&self.syntax).next()
2320 }
2315} 2321}
2316#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2322#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2317pub struct PathType { 2323pub struct PathType {
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index 3e6c2d3f3..993e58e64 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -684,7 +684,7 @@ Grammar(
684 ] 684 ]
685 ), 685 ),
686 "PathSegment": ( 686 "PathSegment": (
687 options: [ "NameRef", "TypeArgList" ] 687 options: [ "NameRef", "TypeArgList", "ParamList", "RetType" ]
688 ), 688 ),
689 "TypeArgList": (collections: [ 689 "TypeArgList": (collections: [
690 ("type_args", "TypeArg"), 690 ("type_args", "TypeArg"),