|
@@ -970,7 +970,7 @@ return ast;
|
|
|
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
|
|
|
-throw $early=[self._alert_($recv(ex)._messageText())];
|
|
|
+throw $early=[$recv($globals.Terminal)._alert_($recv(ex)._messageText())];
|
|
|
|
|
|
}, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1,2)});
|
|
|
|
|
@@ -987,8 +987,8 @@ catch(e) {if(e===$early)return e[0]; throw e}
|
|
|
},
|
|
|
|
|
|
args: ["aString", "aContext"],
|
|
|
-source: "evaluate: aString context: aContext\x0a\x09\x22Similar to #evaluate:for:, with the following differences:\x0a\x09- instead of compiling and running `aString`, `aString` is interpreted using an `ASTInterpreter`\x0a\x09- instead of evaluating against a receiver, evaluate in the context of `aContext`\x22\x0a\x0a\x09| compiler ast |\x0a\x09\x0a\x09compiler := Compiler new.\x0a\x09[ ast := compiler parseExpression: aString ] \x0a\x09\x09on: Error \x0a\x09\x09do: [ :ex | ^ self alert: ex messageText ].\x0a\x09\x09\x0a\x09(AISemanticAnalyzer on: aContext receiver class)\x0a\x09\x09context: aContext;\x0a\x09\x09visit: ast.\x0a\x0a\x09^ aContext evaluateNode: ast",
|
|
|
-referencedClasses: ["Compiler", "Error", "AISemanticAnalyzer"],
|
|
|
+source: "evaluate: aString context: aContext\x0a\x09\x22Similar to #evaluate:for:, with the following differences:\x0a\x09- instead of compiling and running `aString`, `aString` is interpreted using an `ASTInterpreter`\x0a\x09- instead of evaluating against a receiver, evaluate in the context of `aContext`\x22\x0a\x0a\x09| compiler ast |\x0a\x09\x0a\x09compiler := Compiler new.\x0a\x09[ ast := compiler parseExpression: aString ] \x0a\x09\x09on: Error \x0a\x09\x09do: [ :ex | ^ Terminal alert: ex messageText ].\x0a\x09\x09\x0a\x09(AISemanticAnalyzer on: aContext receiver class)\x0a\x09\x09context: aContext;\x0a\x09\x09visit: ast.\x0a\x0a\x09^ aContext evaluateNode: ast",
|
|
|
+referencedClasses: ["Compiler", "Error", "Terminal", "AISemanticAnalyzer"],
|
|
|
|
|
|
messageSends: ["new", "on:do:", "parseExpression:", "alert:", "messageText", "context:", "on:", "class", "receiver", "visit:", "evaluateNode:"]
|
|
|
}),
|
|
@@ -1042,7 +1042,7 @@ return $recv(compiler)._parseExpression_(aString);
|
|
|
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
|
|
|
-throw $early=[self._alert_($recv(ex)._messageText())];
|
|
|
+throw $early=[$recv($globals.Terminal)._alert_($recv(ex)._messageText())];
|
|
|
|
|
|
}, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1,2)});
|
|
|
|
|
@@ -1056,8 +1056,8 @@ catch(e) {if(e===$early)return e[0]; throw e}
|
|
|
},
|
|
|
|
|
|
args: ["aString", "anObject"],
|
|
|
-source: "evaluate: aString receiver: anObject\x0a\x09| compiler |\x0a\x09\x0a\x09compiler := Compiler new.\x0a\x09[ compiler parseExpression: aString ] \x0a\x09\x09on: Error \x0a\x09\x09do: [ :ex | ^ self alert: ex messageText ].\x0a\x0a\x09^ compiler evaluateExpression: aString on: anObject",
|
|
|
-referencedClasses: ["Compiler", "Error"],
|
|
|
+source: "evaluate: aString receiver: anObject\x0a\x09| compiler |\x0a\x09\x0a\x09compiler := Compiler new.\x0a\x09[ compiler parseExpression: aString ] \x0a\x09\x09on: Error \x0a\x09\x09do: [ :ex | ^ Terminal alert: ex messageText ].\x0a\x0a\x09^ compiler evaluateExpression: aString on: anObject",
|
|
|
+referencedClasses: ["Compiler", "Error", "Terminal"],
|
|
|
|
|
|
messageSends: ["new", "on:do:", "parseExpression:", "alert:", "messageText", "evaluateExpression:on:"]
|
|
|
}),
|