Skip to content
Prev Previous commit
Next Next commit
Fix up data flow mermaid rendering
  • Loading branch information
kddnewton committed Feb 10, 2023
commit 6dbe713baf4dd6fd87183d77dfc38340d7bbbf6f
4 changes: 2 additions & 2 deletions lib/syntax_tree/yarv/data_flow_graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def to_mermaid
end

insn_flows[length].in.each do |input|
if input.is_a?(Integer)
output.puts(" node_#{input} --> #{node_id}")
if input.is_a?(LocalArgument)
output.puts(" node_#{input.length} --> #{node_id}")
links << "green"
end
end
Expand Down