@@ -2323,6 +2323,19 @@ return self}, function($ctx1) {$ctx1.fill(self,"asNumber",{}, smalltalk.String)}
}),
smalltalk.String);
+smalltalk.addMethod(
+"_asRegexp",
+smalltalk.method({
+selector: "asRegexp",
+fn: function (){
+var self=this;
+return smalltalk.withContext(function($ctx1) { var $1;
+$1=_st((smalltalk.RegularExpression || RegularExpression))._fromString_(self);
+return $1;
+}, function($ctx1) {$ctx1.fill(self,"asRegexp",{}, smalltalk.String)})}
+}),
+smalltalk.String);
+
smalltalk.addMethod(
"_asSelector",
smalltalk.method({
@@ -3114,6 +3114,24 @@ referencedClasses: []
+category: 'converting',
+}, function($ctx1) {$ctx1.fill(self,"asRegexp",{}, smalltalk.String)})},
+args: [],
+source: "asRegexp\x0a\x09^ RegularExpression fromString: self",
+messageSends: ["fromString:"],
+referencedClasses: ["RegularExpression"]
@@ -1042,6 +1042,10 @@ asNumber
<return Number(self)>
!
+asRegexp
+ ^ RegularExpression fromString: self
+!
asSelector
<return smalltalk.selector(self)>