Browse Source

Move ivars from `obj["@x"]` to `obj.x`.

Step 2: Compiler compiles dot notation,
recompile and apply to code base.
Herby Vojčík 3 years ago
parent
commit
4a48d6b12b
1 changed files with 37 additions and 37 deletions
  1. 37 37
      src/ProfStef.js

+ 37 - 37
src/ProfStef.js

@@ -847,10 +847,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$receiver;
-$1=$self["@contents"];
+$1=$self.contents;
 if(($receiver = $1) == null || $receiver.a$nil){
-$self["@contents"]="";
-return $self["@contents"];
+$self.contents="";
+return $self.contents;
 } else {
 return $1;
 }
@@ -873,7 +873,7 @@ selector: "contents:",
 protocol: "accessing",
 fn: function (aString){
 var self=this,$self=this;
-$self["@contents"]=aString;
+$self.contents=aString;
 return self;
 
 },
@@ -896,10 +896,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$receiver;
-$1=$self["@title"];
+$1=$self.title;
 if(($receiver = $1) == null || $receiver.a$nil){
-$self["@title"]="";
-return $self["@title"];
+$self.title="";
+return $self.title;
 } else {
 return $1;
 }
@@ -922,7 +922,7 @@ selector: "title:",
 protocol: "accessing",
 fn: function (aString){
 var self=this,$self=this;
-$self["@title"]=aString;
+$self.title=aString;
 return self;
 
 },
@@ -1087,8 +1087,8 @@ return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$2;
 lesson=$recv($self._tutorialPlayer())._currentLesson();
-$recv($self["@widget"])._contents_($recv(lesson)._contents());
-$1=$self["@widget"];
+$recv($self.widget)._contents_($recv(lesson)._contents());
+$1=$self.widget;
 $2=$recv($recv($recv(lesson)._title()).__comma(" ")).__comma($self._progress());
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 $ctx1.sendIdx[","]=1;
@@ -1118,10 +1118,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$receiver;
-$1=$self["@tutorialPlayer"];
+$1=$self.tutorialPlayer;
 if(($receiver = $1) == null || $receiver.a$nil){
-$self["@tutorialPlayer"]=$recv($globals.TutorialPlayer)._new();
-return $self["@tutorialPlayer"];
+$self.tutorialPlayer=$recv($globals.TutorialPlayer)._new();
+return $self.tutorialPlayer;
 } else {
 return $1;
 }
@@ -1190,7 +1190,7 @@ selector: "widget:",
 protocol: "accessing",
 fn: function (aWidget){
 var self=this,$self=this;
-$self["@widget"]=aWidget;
+$self.widget=aWidget;
 return self;
 
 },
@@ -1215,10 +1215,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$receiver;
-$1=$self["@instance"];
+$1=$self.instance;
 if(($receiver = $1) == null || $receiver.a$nil){
-$self["@instance"]=$self._new();
-return $self["@instance"];
+$self.instance=$self._new();
+return $self.instance;
 } else {
 return $1;
 }
@@ -1508,8 +1508,8 @@ $recv($1)._with_((function(){
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx2) {
 //>>excludeEnd("ctx");
-$self["@header"]=$recv(html)._h2();
-return $self["@header"];
+$self.header=$recv(html)._h2();
+return $self.header;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
 //>>excludeEnd("ctx");
@@ -1564,7 +1564,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$recv($self["@header"])._contents_((function(html){
+$recv($self.header)._contents_((function(html){
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx2) {
 //>>excludeEnd("ctx");
@@ -1597,10 +1597,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$receiver;
-$1=$self["@workspace"];
+$1=$self.workspace;
 if(($receiver = $1) == null || $receiver.a$nil){
-$self["@workspace"]=$recv($globals.SourceArea)._new();
-return $self["@workspace"];
+$self.workspace=$recv($globals.SourceArea)._new();
+return $self.workspace;
 } else {
 return $1;
 }
@@ -1703,7 +1703,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$self["@tutorialPosition"]=$self._size();
+$self.tutorialPosition=$self._size();
 return $self._currentLesson();
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"last",{},$globals.TutorialPlayer)});
@@ -1730,8 +1730,8 @@ return $core.withContext(function($ctx1) {
 var $1;
 $1=$recv($self._tutorialPosition()).__lt($self._size());
 if($core.assert($1)){
-$self["@tutorialPosition"]=$recv($self["@tutorialPosition"]).__plus((1));
-$self["@tutorialPosition"];
+$self.tutorialPosition=$recv($self.tutorialPosition).__plus((1));
+$self.tutorialPosition;
 }
 return $self._currentLesson();
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
@@ -1757,10 +1757,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1;
-$1=$recv($self["@tutorialPosition"]).__gt((1));
+$1=$recv($self.tutorialPosition).__gt((1));
 if($core.assert($1)){
-$self["@tutorialPosition"]=$recv($self["@tutorialPosition"]).__minus((1));
-$self["@tutorialPosition"];
+$self.tutorialPosition=$recv($self.tutorialPosition).__minus((1));
+$self.tutorialPosition;
 }
 return $self._currentLesson();
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
@@ -1782,7 +1782,7 @@ selector: "rewind",
 protocol: "navigation",
 fn: function (){
 var self=this,$self=this;
-$self["@tutorialPosition"]=(1);
+$self.tutorialPosition=(1);
 return self;
 
 },
@@ -1828,10 +1828,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$receiver;
-$1=$self["@tutorial"];
+$1=$self.tutorial;
 if(($receiver = $1) == null || $receiver.a$nil){
-$self["@tutorial"]=$recv($globals.SmalltalkSyntaxTutorial)._new();
-return $self["@tutorial"];
+$self.tutorial=$recv($globals.SmalltalkSyntaxTutorial)._new();
+return $self.tutorial;
 } else {
 return $1;
 }
@@ -1854,7 +1854,7 @@ selector: "tutorial:",
 protocol: "accessing",
 fn: function (aTutorial){
 var self=this,$self=this;
-$self["@tutorial"]=aTutorial;
+$self.tutorial=aTutorial;
 return self;
 
 },
@@ -1877,10 +1877,10 @@ var self=this,$self=this;
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 var $1,$receiver;
-$1=$self["@tutorialPosition"];
+$1=$self.tutorialPosition;
 if(($receiver = $1) == null || $receiver.a$nil){
 $self._rewind();
-return $self["@tutorialPosition"];
+return $self.tutorialPosition;
 } else {
 return $1;
 }
@@ -1903,7 +1903,7 @@ selector: "tutorialPosition:",
 protocol: "accessing",
 fn: function (aTutorialPosition){
 var self=this,$self=this;
-$self["@tutorialPosition"]=aTutorialPosition;
+$self.tutorialPosition=aTutorialPosition;
 return self;
 
 },