Skip to content

Commit

Permalink
Merge pull request #144 from Pennycook/node-dataclass
Browse files Browse the repository at this point in the history
Refactor Node using dataclass
  • Loading branch information
Pennycook authored Feb 4, 2025
2 parents 4dfb0c6 + 3ee5ab1 commit f58df1f
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 209 deletions.
2 changes: 1 addition & 1 deletion codebasin/file_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def insert_directive_node(tree, line_group, logical_line):
filename = tree.root.filename
line = tokens[0].line
column = tokens[0].col
spelling = preprocessor.toklist_print(tokens)
spelling = new_node.spelling()
message = f"unrecognized directive '{spelling}'"
log.warning(f"{filename}:{line}:{column}: {message}")

Expand Down
Loading

0 comments on commit f58df1f

Please sign in to comment.