user_action static method
action ──╮─→ $action on ╰─→ $node.className with ╰─→ $node.nodeId and ╰─→ $node.attributes
Implementation
static void user_action(String action, Node node) {
var tag = node.nodeName;
var id = node.nodeId;
var attributes = node.attributes;
"action".write(inYellow);
" ──╮─→".write(inRed);
" $action".writeLine(inPurple);
"on".write(inYellow);
" ╰─→".write(inRed);
" $tag".writeLine(inWhite);
"with".write(inYellow);
" ╰─→".write(inRed);
" $id".writeLine(inWhite);
if (attributes != null) {
"and".write(inYellow);
" ╰─→".write(inRed);
" $attributes".writeLine(inWhite);
}
}