We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160a8a6 commit ed7cfa5Copy full SHA for ed7cfa5
src/frontend/src/lib/Graph.svelte
@@ -68,7 +68,10 @@
68
69
const functionNode = getFirstFunction(tree);
70
71
- ast = functionNode.toString();
+ ast = functionNode
72
+ .toString()
73
+ .replaceAll("(", "<div style='margin-left:10px;border-left: 1px #888 solid;'>")
74
+ .replaceAll(")", "</div>");
75
76
let builder = new CFGBuilder();
77
let cfg = builder.buildCFG(functionNode);
@@ -101,5 +104,11 @@
101
104
{@html renderWrapper(code, { simplify, verbose, trim })}
102
105
{/await}
103
106
<br />
- {ast}
107
+ <details>
108
+ <summary>AST</summary>
109
+ {@html ast}
110
+ </details>
111
</div>
112
+
113
+<style>
114
+</style>
0 commit comments