Skip to content

Commit ab67728

Browse files
committed
Bug in module definition via the keyword
There are two ways of creating a module. 1. File with .ql extension 2. via `module` keyword If the module was defined via keyword then it may wrongly assume there is a file named <module>.ql while concating all modules into the monolith. This isn't ideal. This is a low prio.
1 parent d5b2ca8 commit ab67728

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,8 @@ impl Parser {
781781
Err(QccErrorKind::ParseError)?
782782
}
783783

784-
// TODO:
784+
// TODO: This may not exist if the module was defined via the
785+
// `module` keyword and not in a separate file.
785786
let import_file = delimited_dir_name.clone() + &import_module + ".ql";
786787
let import_session = Parser::new(vec![import_file.as_str()])?;
787788
match import_session {

0 commit comments

Comments
 (0)