(&mut self)
| 201 | let ty = self.parse_type()?; |
| 202 | DeclNode::Variable { |
| 203 | name, |
| 204 | ty, |
| 205 | init: None, |
| 206 | is_extern: true, |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | Some(Token::Ident(_)) => { |
| 211 | // Look ahead to determine if this is a function or variable declaration |
| 212 | if self.peek_n(1) == Some(&Token::ColonEqual) { |
| 213 | // `alias := import("path")` is a module binding, not an ordinary |
| 214 | // inferred variable; its RHS is the `import(...)` builtin. |
| 215 | if self.peek_n(2) == Some(&Token::Import) { |
| 216 | let alias = self.expect_ident()?; |
| 217 | self.expect_colon_equal()?; |
| 218 | let path = self.parse_import_call()?; |
no test coverage detected