|
@@ -412,28 +412,23 @@ fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
function $ASTInterpreter(){return smalltalk.ASTInterpreter||(typeof ASTInterpreter=="undefined"?nil:ASTInterpreter)}
|
|
function $ASTInterpreter(){return smalltalk.ASTInterpreter||(typeof ASTInterpreter=="undefined"?nil:ASTInterpreter)}
|
|
return smalltalk.withContext(function($ctx1) {
|
|
return smalltalk.withContext(function($ctx1) {
|
|
-var $1,$2,$3,$4;
|
|
|
|
|
|
+var $1,$2,$3;
|
|
$1=_st($ASTInterpreter())._new();
|
|
$1=_st($ASTInterpreter())._new();
|
|
_st($1)._context_(self);
|
|
_st($1)._context_(self);
|
|
|
|
+_st($1)._node_(self._retrieveNode());
|
|
$2=_st($1)._yourself();
|
|
$2=_st($1)._yourself();
|
|
self["@interpreter"]=$2;
|
|
self["@interpreter"]=$2;
|
|
-$3=self["@ast"];
|
|
|
|
-if(($receiver = $3) == nil || $receiver == undefined){
|
|
|
|
-$3;
|
|
|
|
-} else {
|
|
|
|
-_st(self["@interpreter"])._node_(self._retrieveNode());
|
|
|
|
-};
|
|
|
|
-$4=_st(_st(self._innerContext())._notNil())._and_((function(){
|
|
|
|
|
|
+$3=_st(_st(self._innerContext())._notNil())._and_((function(){
|
|
return smalltalk.withContext(function($ctx2) {
|
|
return smalltalk.withContext(function($ctx2) {
|
|
return _st(_st(self._innerContext())._isBlockContext())._not();
|
|
return _st(_st(self._innerContext())._isBlockContext())._not();
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)})}));
|
|
|
|
-if(smalltalk.assert($4)){
|
|
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
|
|
|
|
+if(smalltalk.assert($3)){
|
|
self._setupInterpreter_(self["@interpreter"]);
|
|
self._setupInterpreter_(self["@interpreter"]);
|
|
};
|
|
};
|
|
return self}, function($ctx1) {$ctx1.fill(self,"initializeInterpreter",{},smalltalk.AIContext)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"initializeInterpreter",{},smalltalk.AIContext)})},
|
|
args: [],
|
|
args: [],
|
|
-source: "initializeInterpreter\x0a\x09interpreter := ASTInterpreter new\x0a\x09\x09context: self;\x0a\x09\x09yourself.\x0a\x09ast ifNotNil: [ interpreter node: self retrieveNode ].\x0a\x09\x0a\x09(self innerContext notNil and: [ \x0a\x09\x09self innerContext isBlockContext not ]) ifTrue: [\x0a\x09\x09\x09self setupInterpreter: interpreter ]",
|
|
|
|
-messageSends: ["context:", "new", "yourself", "ifNotNil:", "node:", "retrieveNode", "ifTrue:", "and:", "notNil", "innerContext", "not", "isBlockContext", "setupInterpreter:"],
|
|
|
|
|
|
+source: "initializeInterpreter\x0a\x09interpreter := ASTInterpreter new\x0a\x09\x09context: self;\x0a\x09\x09node: self retrieveNode;\x0a\x09\x09yourself.\x0a\x09\x0a\x09(self innerContext notNil and: [ \x0a\x09\x09self innerContext isBlockContext not ]) ifTrue: [\x0a\x09\x09\x09self setupInterpreter: interpreter ]",
|
|
|
|
+messageSends: ["context:", "new", "node:", "retrieveNode", "yourself", "ifTrue:", "and:", "notNil", "innerContext", "not", "isBlockContext", "setupInterpreter:"],
|
|
referencedClasses: ["ASTInterpreter"]
|
|
referencedClasses: ["ASTInterpreter"]
|
|
}),
|
|
}),
|
|
smalltalk.AIContext);
|
|
smalltalk.AIContext);
|