# HG changeset patch # User Claus Gittinger # Date 1566863863 -7200 # Node ID 60a039a6f1377f44a9e305adba597bb5dd4d84b0 # Parent 44f3f181ff2437ae63b0d693bfb70b1dc9cf1cd7 #FEATURE by exept class: Method added: #methodArgAndVarNamesInContextForInspector: diff -r 44f3f181ff24 -r 60a039a6f137 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 " ! +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."