summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-29 01:07:20 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-29 01:07:20 +0100
commit83b28e99aed4a168238148a56a5fe2e0bc91d01f (patch)
tree93cea78af3bac0d146d6f79066225329fbe53f09 /src/syntax
parentec21927d08d380c2b760a152c821910d57475ff2 (diff)
Import completions
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/ast.rs2
1 files changed, 1 insertions, 1 deletions
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.