Resolve paths to defs (functions currently) during type inference
This commit is contained in:
parent
93ffbf80c6
commit
ef67581104
17 changed files with 215 additions and 87 deletions
|
|
@ -3083,7 +3083,11 @@ impl<R: TreeRoot<RaTypes>> RetTypeNode<R> {
|
|||
}
|
||||
|
||||
|
||||
impl<'a> RetType<'a> {}
|
||||
impl<'a> RetType<'a> {
|
||||
pub fn type_ref(self) -> Option<TypeRef<'a>> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// ReturnExpr
|
||||
#[derive(Debug, Clone, Copy,)]
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ Grammar(
|
|||
],
|
||||
options: [ "ParamList", ["body", "Block"], "RetType" ],
|
||||
),
|
||||
"RetType": (),
|
||||
"RetType": (options: ["TypeRef"]),
|
||||
"StructDef": (
|
||||
traits: [
|
||||
"NameOwner",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue