Skip to content

Commit f58df1f

Browse files
authored
Merge pull request #144 from Pennycook/node-dataclass
Refactor Node using dataclass
2 parents 4dfb0c6 + 3ee5ab1 commit f58df1f

File tree

3 files changed

+88
-209
lines changed

3 files changed

+88
-209
lines changed

codebasin/file_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def insert_directive_node(tree, line_group, logical_line):
157157
filename = tree.root.filename
158158
line = tokens[0].line
159159
column = tokens[0].col
160-
spelling = preprocessor.toklist_print(tokens)
160+
spelling = new_node.spelling()
161161
message = f"unrecognized directive '{spelling}'"
162162
log.warning(f"{filename}:{line}:{column}: {message}")
163163

0 commit comments

Comments
 (0)