From c43dd52d2830b415bb59d23e446454941ea51b8d Mon Sep 17 00:00:00 2001 From: tokyRT Date: Thu, 20 Nov 2025 16:19:14 +0100 Subject: [PATCH] add method to check if the comment is a docString or not --- src/Famix-Python-Entities/FamixPythonComment.class.st | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Famix-Python-Entities/FamixPythonComment.class.st b/src/Famix-Python-Entities/FamixPythonComment.class.st index a44af69..88e71ee 100644 --- a/src/Famix-Python-Entities/FamixPythonComment.class.st +++ b/src/Famix-Python-Entities/FamixPythonComment.class.st @@ -33,3 +33,9 @@ FamixPythonComment class >> annotation [ ^ self ] + +{ #category : 'testing' } +FamixPythonComment >> isDocString [ + + ^ self sourceAnchor beginsWith: '"""' +]