#FEATURE by exept
authorClaus Gittinger <cg@exept.de>
Tue, 27 Aug 2019 01:57:43 +0200
changeset 24658 60a039a6f137
parent 24657 44f3f181ff24
child 24659 c42004494020
#FEATURE by exept class: Method added: #methodArgAndVarNamesInContextForInspector:
Method.st
--- a/Method.st	Mon Aug 26 23:59:59 2019 +0200
+++ b/Method.st	Tue Aug 27 01:57:43 2019 +0200
@@ -2997,6 +2997,16 @@
      "Created: / 18-12-2012 / 18:17:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+methodArgAndVarNamesInContextForInspector:context
+    "return a collection with the method's argument and variable names.
+     Uses Parser to parse methods source and extract the names.
+     Returns nil if the source is not available, or some other
+     syntax/parse error occurred. For methods with no args and no vars,
+     an empty collection is returned."
+
+     ^self methodArgAndVarNamesInContext: context
+!
+
 methodArgNames
     "return a collection with the method's argument names.
      Uses Parser to parse the method's source and extract the names."