Skip to content

Commit

Permalink
add declare
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhou.yi committed Mar 19, 2024
1 parent e7040f8 commit e787914
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/idl_gen_dart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class DartGenerator : public BaseGenerator {
std::string filename =
namer_.File(filebase + (component.empty() ? "" : "_" + component));

std::string rename_namespace = component == current_namespace ? "" : component;
imports.emplace("import './" + filename + "'" +
(rename_namespace.empty()
? ";\n"
Expand Down

0 comments on commit e787914

Please sign in to comment.