Skip to content

Commit

Permalink
fix loop reference parts issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ebwood committed Mar 16, 2024
1 parent a70a796 commit 75c3edb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rfw_builder/lib/src/txt_visitor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ class TxtVisitor extends SpecVisitor<StringSink> {
StringSink visitLoopReference(LoopReference spec, [StringSink? context]) {
final output = context ?? StringBuffer();
output.write('loop${spec.loop}');
// output.write('loop${spec.loop}.${spec.parts.join(".")}');
if (spec.parts.isNotEmpty) {
output.write('.${spec.parts.join('.')}');
}
return output;
}

Expand Down

0 comments on commit 75c3edb

Please sign in to comment.