Traceback (most recent call last):
File "/opt/homebrew/bin/code2flow", line 8, in <module>
sys.exit(main())
File "/opt/homebrew/lib/python3.10/site-packages/code2flow/engine.py", line 860, in main
code2flow(
File "/opt/homebrew/lib/python3.10/site-packages/code2flow/engine.py", line 734, in code2flow
file_groups, all_nodes, edges = map_it(sources, language, no_trimming,
File "/opt/homebrew/lib/python3.10/site-packages/code2flow/engine.py", line 478, in map_it
file_group = make_file_group(file_ast_tree, source, extension)
File "/opt/homebrew/lib/python3.10/site-packages/code2flow/engine.py", line 356, in make_file_group
for new_node in language.make_nodes(node_tree, parent=file_group):
File "/opt/homebrew/lib/python3.10/site-packages/code2flow/javascript.py", line 354, in make_nodes
variables = make_local_variables(this_scope_body, parent)
File "/opt/homebrew/lib/python3.10/site-packages/code2flow/javascript.py", line 193, in make_local_variables
variables += process_assign(element)
File "/opt/homebrew/lib/python3.10/site-packages/code2flow/javascript.py", line 134, in process_assign
token = target['id']['name']
KeyError: 'name'
It can resolve:
and
but when I use:
It caught an error: