#FEATURE by exept
class: Method
added: #methodArgAndVarNamesInContextForInspector:
--- 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."