summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-07-04 15:31:05 +0200
committerjmoenig <jens@moenig.org>2013-07-04 15:31:05 +0200
commitb59f7f3e274688a4c70df6e9a16f02d88005a381 (patch)
tree4166e0d642e4c5bcaefafa90ae63a32c3ed8e307 /threads.js
parent8e0f60fdd68a145d7f2acc5d350d5214c844fd54 (diff)
downloadsnap-b59f7f3e274688a4c70df6e9a16f02d88005a381.tar.gz
snap-b59f7f3e274688a4c70df6e9a16f02d88005a381.zip
Codification (blocks to text) support complete
text code mapping and block header support, both via GUI and primitives, for built-in blocks and for custom ones.
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/threads.js b/threads.js
index d98d2b5..ab904ad 100644
--- a/threads.js
+++ b/threads.js
@@ -83,7 +83,7 @@ ArgLabelMorph, localize*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2013-June-18';
+modules.threads = '2013-July-04';
var ThreadManager;
var Process;
@@ -2291,6 +2291,14 @@ Process.prototype.reportTimer = function () {
blocks - not needed to run or debug Snap
*/
+Process.prototype.doMapHeader = function (aContext, aString) {
+ if (aContext instanceof Context) {
+ if (aContext.expression instanceof SyntaxElementMorph) {
+ return aContext.expression.mapHeader(aString || '');
+ }
+ }
+};
+
Process.prototype.doMapCode = function (aContext, aString) {
if (aContext instanceof Context) {
if (aContext.expression instanceof SyntaxElementMorph) {