Skip to content

Commit be9fbbf

Browse files
committed
IdentifierFromFile: shorter string representation
1 parent 8bd03f5 commit be9fbbf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cedarscript_ast_parser/cedarscript_ast_parser.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def __str__(self):
150150
result = f"{str(self.identifier_type).lower()} {self.name}{wc}"
151151
if self.offset is not None:
152152
result += f" at offset {self.offset}"
153-
return f"{result} from file {self.file_path}"
153+
return f"{result} [{str(self.file_path).split('/')[-1]}]"
154154

155155

156156
FileOrIdentifierWithin: TypeAlias = SingleFileClause | IdentifierFromFile
@@ -196,7 +196,6 @@ class MoveClause(DeleteClause, InsertClause):
196196

197197
# </editing-clause>
198198

199-
200199
# <command>
201200

202201
@dataclass

0 commit comments

Comments
 (0)