diff --git a/blueprintcompiler/language/gobject_signal.py b/blueprintcompiler/language/gobject_signal.py index 9c27b97..b052e3c 100644 --- a/blueprintcompiler/language/gobject_signal.py +++ b/blueprintcompiler/language/gobject_signal.py @@ -143,13 +143,12 @@ class Signal(AstNode): @property def document_symbol(self) -> DocumentSymbol: - detail = self.ranges["detail_start", "detail_end"] return DocumentSymbol( self.full_name, SymbolKind.Event, self.range, self.group.tokens["name"].range, - detail.text if detail is not None else None, + self.ranges["detail_start", "detail_end"].text, ) def get_reference(self, idx: int) -> T.Optional[LocationLink]: diff --git a/tests/sample_errors/incomplete_signal.blp b/tests/sample_errors/incomplete_signal.blp deleted file mode 100644 index 4ec693d..0000000 --- a/tests/sample_errors/incomplete_signal.blp +++ /dev/null @@ -1,5 +0,0 @@ -using Gtk 4.0; - -Label { - notify:: -} diff --git a/tests/sample_errors/incomplete_signal.err b/tests/sample_errors/incomplete_signal.err deleted file mode 100644 index 901ef3b..0000000 --- a/tests/sample_errors/incomplete_signal.err +++ /dev/null @@ -1,2 +0,0 @@ -5,1,0,Expected a signal detail name -4,9,3,Unexpected tokens \ No newline at end of file