Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6dbe713

Browse files
committed
Fix up data flow mermaid rendering
1 parent 103236b commit 6dbe713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/syntax_tree/yarv/data_flow_graph.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def to_mermaid
155155
end
156156

157157
insn_flows[length].in.each do |input|
158-
if input.is_a?(Integer)
159-
output.puts(" node_#{input} --> #{node_id}")
158+
if input.is_a?(LocalArgument)
159+
output.puts(" node_#{input.length} --> #{node_id}")
160160
links << "green"
161161
end
162162
end

0 commit comments

Comments
 (0)