|
@@ -1836,299 +1836,6 @@ referencedClasses: []
|
|
|
smalltalk.AmdPackageHandler.klass);
|
|
|
|
|
|
|
|
|
-smalltalk.addClass('LegacyPackageHandler', smalltalk.PackageHandler, [], 'Importer-Exporter');
|
|
|
-smalltalk.LegacyPackageHandler.comment="I am responsible for handling package loading and committing.\x0a\x0aI should not be used directly. Instead, use the corresponding `Package` methods.";
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitChannels",
|
|
|
-category: 'committing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-function $Exporter(){return smalltalk.Exporter||(typeof Exporter=="undefined"?nil:Exporter)}
|
|
|
-function $StrippedExporter(){return smalltalk.StrippedExporter||(typeof StrippedExporter=="undefined"?nil:StrippedExporter)}
|
|
|
-function $ChunkExporter(){return smalltalk.ChunkExporter||(typeof ChunkExporter=="undefined"?nil:ChunkExporter)}
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1;
|
|
|
-$1=[(function(pkg){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(_st(_st($Exporter())._default())._recipe()).__minus_gt(_st(_st(_st(_st(pkg)._commitPathJs()).__comma("/")).__comma(_st(pkg)._name())).__comma(".js"));
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({pkg:pkg},$ctx1)})}),(function(pkg){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(_st(_st($StrippedExporter())._default())._recipe()).__minus_gt(_st(_st(_st(_st(pkg)._commitPathJs()).__comma("/")).__comma(_st(pkg)._name())).__comma(".deploy.js"));
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({pkg:pkg},$ctx1)})}),(function(pkg){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(_st(_st($ChunkExporter())._default())._recipe()).__minus_gt(_st(_st(_st(_st(pkg)._commitPathSt()).__comma("/")).__comma(_st(pkg)._name())).__comma(".st"));
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({pkg:pkg},$ctx1)})})];
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"commitChannels",{},smalltalk.LegacyPackageHandler)})},
|
|
|
-args: [],
|
|
|
-source: "commitChannels\x0a\x09^{ \x0a\x09\x09[ :pkg | Exporter default recipe -> (pkg commitPathJs, '/', pkg name, '.js') ].\x0a\x09\x09[ :pkg | StrippedExporter default recipe -> (pkg commitPathJs, '/', pkg name, '.deploy.js') ].\x0a\x09\x09[ :pkg | ChunkExporter default recipe -> (pkg commitPathSt, '/', pkg name, '.st') ]\x0a\x09}",
|
|
|
-messageSends: ["->", ",", "name", "commitPathJs", "recipe", "default", "commitPathSt"],
|
|
|
-referencedClasses: ["Exporter", "StrippedExporter", "ChunkExporter"]
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitPathJsFor:",
|
|
|
-category: 'committing',
|
|
|
-fn: function (aPackage){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1;
|
|
|
-$1=_st(self._class())._defaultCommitPathJs();
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"commitPathJsFor:",{aPackage:aPackage},smalltalk.LegacyPackageHandler)})},
|
|
|
-args: ["aPackage"],
|
|
|
-source: "commitPathJsFor: aPackage\x0a\x09^self class defaultCommitPathJs",
|
|
|
-messageSends: ["defaultCommitPathJs", "class"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitPathStFor:",
|
|
|
-category: 'committing',
|
|
|
-fn: function (aPackage){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1;
|
|
|
-$1=_st(self._class())._defaultCommitPathSt();
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"commitPathStFor:",{aPackage:aPackage},smalltalk.LegacyPackageHandler)})},
|
|
|
-args: ["aPackage"],
|
|
|
-source: "commitPathStFor: aPackage\x0a\x09^self class defaultCommitPathSt",
|
|
|
-messageSends: ["defaultCommitPathSt", "class"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "loadPackage:prefix:",
|
|
|
-category: 'loading',
|
|
|
-fn: function (packageName,aString){
|
|
|
-var self=this;
|
|
|
-var url;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1;
|
|
|
-url=_st(_st(_st("/".__comma(aString)).__comma("/js/")).__comma(packageName)).__comma(".js");
|
|
|
-self._ajax_(smalltalk.HashedCollection._from_(["url".__minus_gt(url),"type".__minus_gt("GET"),"dataType".__minus_gt("script"),"complete".__minus_gt((function(jqXHR,textStatus){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-$1=_st(_st(jqXHR)._readyState()).__eq((4));
|
|
|
-if(smalltalk.assert($1)){
|
|
|
-return self._setupPackageNamed_prefix_(packageName,aString);
|
|
|
-};
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({jqXHR:jqXHR,textStatus:textStatus},$ctx1)})})),"error".__minus_gt((function(){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return self._alert_("Could not load package at: ".__comma(url));
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))]));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"loadPackage:prefix:",{packageName:packageName,aString:aString,url:url},smalltalk.LegacyPackageHandler)})},
|
|
|
-args: ["packageName", "aString"],
|
|
|
-source: "loadPackage: packageName prefix: aString\x0a\x09| url |\x0a\x09url := '/', aString, '/js/', packageName, '.js'.\x0a\x09self\x0a\x09\x09ajax: #{\x0a\x09\x09\x09'url' -> url.\x0a\x09\x09\x09'type' -> 'GET'.\x0a\x09\x09\x09'dataType' -> 'script'.\x0a\x09\x09\x09'complete' -> [ :jqXHR :textStatus |\x0a\x09\x09\x09\x09jqXHR readyState = 4\x0a\x09\x09\x09\x09\x09ifTrue: [ self setupPackageNamed: packageName prefix: aString ] ].\x0a\x09\x09\x09'error' -> [ self alert: 'Could not load package at: ', url ]\x0a\x09\x09}",
|
|
|
-messageSends: [",", "ajax:", "->", "ifTrue:", "setupPackageNamed:prefix:", "=", "readyState", "alert:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "loadPackages:prefix:",
|
|
|
-category: 'loading',
|
|
|
-fn: function (aCollection,aString){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-_st(aCollection)._do_((function(each){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return self._loadPackage_prefix_(each,aString);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"loadPackages:prefix:",{aCollection:aCollection,aString:aString},smalltalk.LegacyPackageHandler)})},
|
|
|
-args: ["aCollection", "aString"],
|
|
|
-source: "loadPackages: aCollection prefix: aString\x0a\x09aCollection do: [ :each |\x0a\x09\x09self loadPackage: each prefix: aString ]",
|
|
|
-messageSends: ["do:", "loadPackage:prefix:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "setupPackageNamed:prefix:",
|
|
|
-category: 'private',
|
|
|
-fn: function (packageName,aString){
|
|
|
-var self=this;
|
|
|
-function $Package(){return smalltalk.Package||(typeof Package=="undefined"?nil:Package)}
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1,$2;
|
|
|
-$1=_st($Package())._named_(packageName);
|
|
|
-_st($1)._setupClasses();
|
|
|
-_st($1)._commitPathJs_(_st("/".__comma(aString)).__comma("/js"));
|
|
|
-$2=_st($1)._commitPathSt_(_st("/".__comma(aString)).__comma("/st"));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"setupPackageNamed:prefix:",{packageName:packageName,aString:aString},smalltalk.LegacyPackageHandler)})},
|
|
|
-args: ["packageName", "aString"],
|
|
|
-source: "setupPackageNamed: packageName prefix: aString\x0a\x0a\x09(Package named: packageName)\x0a\x09\x09setupClasses;\x0a\x09\x09commitPathJs: '/', aString, '/js';\x0a\x09\x09commitPathSt: '/', aString, '/st'",
|
|
|
-messageSends: ["setupClasses", "named:", "commitPathJs:", ",", "commitPathSt:"],
|
|
|
-referencedClasses: ["Package"]
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler);
|
|
|
-
|
|
|
-
|
|
|
-smalltalk.LegacyPackageHandler.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitPathsFromLoader",
|
|
|
-category: 'commit paths',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-
|
|
|
- var commitPath = typeof amber !== 'undefined' && amber.commitPath;
|
|
|
- if (!commitPath) return;
|
|
|
- if (commitPath.js) self._defaultCommitPathJs_(commitPath.js);
|
|
|
- if (commitPath.st) self._defaultCommitPathSt_(commitPath.st);
|
|
|
- ;
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"commitPathsFromLoader",{},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: [],
|
|
|
-source: "commitPathsFromLoader\x0a\x09<\x0a\x09\x09var commitPath = typeof amber !== 'undefined' && amber.commitPath;\x0a\x09\x09if (!commitPath) return;\x0a\x09\x09if (commitPath.js) self._defaultCommitPathJs_(commitPath.js);\x0a\x09\x09if (commitPath.st) self._defaultCommitPathSt_(commitPath.st);\x0a\x09>",
|
|
|
-messageSends: [],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "defaultCommitPathJs",
|
|
|
-category: 'commit paths',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $2,$1;
|
|
|
-$2=self["@defaultCommitPathJs"];
|
|
|
-if(($receiver = $2) == nil || $receiver == undefined){
|
|
|
-self["@defaultCommitPathJs"]="js";
|
|
|
-$1=self["@defaultCommitPathJs"];
|
|
|
-} else {
|
|
|
-$1=$2;
|
|
|
-};
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathJs",{},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: [],
|
|
|
-source: "defaultCommitPathJs\x0a\x09^ defaultCommitPathJs ifNil: [ defaultCommitPathJs := 'js']",
|
|
|
-messageSends: ["ifNil:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "defaultCommitPathJs:",
|
|
|
-category: 'commit paths',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-self["@defaultCommitPathJs"]=aString;
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathJs:",{aString:aString},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: ["aString"],
|
|
|
-source: "defaultCommitPathJs: aString\x0a\x09defaultCommitPathJs := aString",
|
|
|
-messageSends: [],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "defaultCommitPathSt",
|
|
|
-category: 'commit paths',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $2,$1;
|
|
|
-$2=self["@defaultCommitPathSt"];
|
|
|
-if(($receiver = $2) == nil || $receiver == undefined){
|
|
|
-self["@defaultCommitPathSt"]="st";
|
|
|
-$1=self["@defaultCommitPathSt"];
|
|
|
-} else {
|
|
|
-$1=$2;
|
|
|
-};
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathSt",{},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: [],
|
|
|
-source: "defaultCommitPathSt\x0a\x09^ defaultCommitPathSt ifNil: [ defaultCommitPathSt := 'st']",
|
|
|
-messageSends: ["ifNil:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "defaultCommitPathSt:",
|
|
|
-category: 'commit paths',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-self["@defaultCommitPathSt"]=aString;
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathSt:",{aString:aString},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: ["aString"],
|
|
|
-source: "defaultCommitPathSt: aString\x0a\x09defaultCommitPathSt := aString",
|
|
|
-messageSends: [],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "initialize",
|
|
|
-category: 'initialization',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-smalltalk.LegacyPackageHandler.klass.superclass.fn.prototype._initialize.apply(_st(self), []);
|
|
|
-self._registerFor_("unknown");
|
|
|
-self._commitPathsFromLoader();
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: [],
|
|
|
-source: "initialize\x0a\x09super initialize.\x0a\x09self registerFor: 'unknown'.\x0a\x09self commitPathsFromLoader",
|
|
|
-messageSends: ["initialize", "registerFor:", "commitPathsFromLoader"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "loadPackages:prefix:",
|
|
|
-category: 'loading',
|
|
|
-fn: function (aCollection,aString){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1;
|
|
|
-$1=_st(self._new())._loadPackages_prefix_(aCollection,aString);
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"loadPackages:prefix:",{aCollection:aCollection,aString:aString},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: ["aCollection", "aString"],
|
|
|
-source: "loadPackages: aCollection prefix: aString\x0a\x09^ self new loadPackages: aCollection prefix: aString",
|
|
|
-messageSends: ["loadPackages:prefix:", "new"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "resetCommitPaths",
|
|
|
-category: 'commit paths',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-self["@defaultCommitPathJs"]=nil;
|
|
|
-self["@defaultCommitPathSt"]=nil;
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"resetCommitPaths",{},smalltalk.LegacyPackageHandler.klass)})},
|
|
|
-args: [],
|
|
|
-source: "resetCommitPaths\x0a\x09defaultCommitPathJs := nil.\x0a\x09defaultCommitPathSt := nil",
|
|
|
-messageSends: [],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.LegacyPackageHandler.klass);
|
|
|
-
|
|
|
-
|
|
|
smalltalk.addClass('PackageTransport', smalltalk.Object, ['package'], 'Importer-Exporter');
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -2629,42 +2336,6 @@ referencedClasses: []
|
|
|
}),
|
|
|
smalltalk.PluggableExporter.klass);
|
|
|
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "amdNamespace",
|
|
|
-category: '*Importer-Exporter',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-return (self.transport && self.transport.amdNamespace) || nil;
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"amdNamespace",{},smalltalk.Package)})},
|
|
|
-args: [],
|
|
|
-source: "amdNamespace\x0a\x09<return (self.transport && self.transport.amdNamespace) || nil>",
|
|
|
-messageSends: [],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.Package);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "amdNamespace:",
|
|
|
-category: '*Importer-Exporter',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-
|
|
|
- if (!self.transport) { self.transport = { type: 'amd' }; }
|
|
|
- if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not "amd".'); }
|
|
|
- self.transport.amdNamespace = aString;
|
|
|
- ;
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"amdNamespace:",{aString:aString},smalltalk.Package)})},
|
|
|
-args: ["aString"],
|
|
|
-source: "amdNamespace: aString\x0a\x09<\x0a\x09\x09if (!self.transport) { self.transport = { type: 'amd' }; }\x0a\x09\x09if (self.transport.type !== 'amd') { throw new Error('Package '+self._name()+' has transport type '+self.transport.type+', not \x22amd\x22.'); }\x0a\x09\x09self.transport.amdNamespace = aString;\x0a\x09>",
|
|
|
-messageSends: [],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.Package);
|
|
|
-
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "commit",
|
|
@@ -2683,112 +2354,6 @@ referencedClasses: []
|
|
|
}),
|
|
|
smalltalk.Package);
|
|
|
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitPathJs",
|
|
|
-category: '*Importer-Exporter',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $3,$2,$1;
|
|
|
-$3=self["@extension"];
|
|
|
-if(($receiver = $3) == nil || $receiver == undefined){
|
|
|
-self["@extension"]=smalltalk.HashedCollection._from_([]);
|
|
|
-$2=self["@extension"];
|
|
|
-} else {
|
|
|
-$2=$3;
|
|
|
-};
|
|
|
-$1=_st($2)._at_ifAbsent_("commitPathJs",(function(){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(self._handler())._commitPathJsFor_(self);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"commitPathJs",{},smalltalk.Package)})},
|
|
|
-args: [],
|
|
|
-source: "commitPathJs\x0a\x09^ (extension ifNil: [ extension := #{} ]) at: #commitPathJs ifAbsent: [ self handler commitPathJsFor: self ]",
|
|
|
-messageSends: ["at:ifAbsent:", "commitPathJsFor:", "handler", "ifNil:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.Package);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitPathJs:",
|
|
|
-category: '*Importer-Exporter',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $3,$2,$1;
|
|
|
-$3=self["@extension"];
|
|
|
-if(($receiver = $3) == nil || $receiver == undefined){
|
|
|
-self["@extension"]=smalltalk.HashedCollection._from_([]);
|
|
|
-$2=self["@extension"];
|
|
|
-} else {
|
|
|
-$2=$3;
|
|
|
-};
|
|
|
-$1=_st($2)._at_put_("commitPathJs",aString);
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"commitPathJs:",{aString:aString},smalltalk.Package)})},
|
|
|
-args: ["aString"],
|
|
|
-source: "commitPathJs: aString\x0a\x09^ (extension ifNil: [ extension := #{} ]) at: #commitPathJs put: aString",
|
|
|
-messageSends: ["at:put:", "ifNil:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.Package);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitPathSt",
|
|
|
-category: '*Importer-Exporter',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $3,$2,$1;
|
|
|
-$3=self["@extension"];
|
|
|
-if(($receiver = $3) == nil || $receiver == undefined){
|
|
|
-self["@extension"]=smalltalk.HashedCollection._from_([]);
|
|
|
-$2=self["@extension"];
|
|
|
-} else {
|
|
|
-$2=$3;
|
|
|
-};
|
|
|
-$1=_st($2)._at_ifAbsent_("commitPathSt",(function(){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return _st(self._handler())._commitPathStFor_(self);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"commitPathSt",{},smalltalk.Package)})},
|
|
|
-args: [],
|
|
|
-source: "commitPathSt\x0a\x09^ (extension ifNil: [ extension := #{} ]) at: #commitPathSt ifAbsent: [ self handler commitPathStFor: self ]",
|
|
|
-messageSends: ["at:ifAbsent:", "commitPathStFor:", "handler", "ifNil:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.Package);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "commitPathSt:",
|
|
|
-category: '*Importer-Exporter',
|
|
|
-fn: function (aString){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $3,$2,$1;
|
|
|
-$3=self["@extension"];
|
|
|
-if(($receiver = $3) == nil || $receiver == undefined){
|
|
|
-self["@extension"]=smalltalk.HashedCollection._from_([]);
|
|
|
-$2=self["@extension"];
|
|
|
-} else {
|
|
|
-$2=$3;
|
|
|
-};
|
|
|
-$1=_st($2)._at_put_("commitPathSt",aString);
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"commitPathSt:",{aString:aString},smalltalk.Package)})},
|
|
|
-args: ["aString"],
|
|
|
-source: "commitPathSt: aString\x0a\x09^ (extension ifNil: [ extension := #{} ]) at: #commitPathSt put: aString",
|
|
|
-messageSends: ["at:put:", "ifNil:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.Package);
|
|
|
-
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "transportJson",
|