From 83b28e99aed4a168238148a56a5fe2e0bc91d01f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 29 Jan 2023 01:07:20 +0100 Subject: Import completions --- src/syntax/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/syntax') diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 08def533..1d2ebe17 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -1696,7 +1696,7 @@ node! { impl ModuleImport { /// The module or path from which the items should be imported. pub fn source(&self) -> Expr { - self.0.cast_last_match().unwrap_or_default() + self.0.cast_first_match().unwrap_or_default() } /// The items to be imported. -- cgit v1.2.3