forked from SeasideSt/Grease
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from GsDevKit/merge
Sync with SeasideSt/Grease master repo
- Loading branch information
Showing
238 changed files
with
1,439 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
repository/BaselineOfGrease.package/BaselineOfGrease.class/instance/baselineCommon..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
baselines | ||
baselineCommon: spec | ||
|
||
spec | ||
for: #common | ||
do: [ spec blessing: #baseline. | ||
|
1 change: 1 addition & 0 deletions
1
repository/BaselineOfGrease.package/BaselineOfGrease.class/instance/baselineGemStone..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
baselines | ||
baselineGemStone: spec | ||
|
||
spec | ||
for: #'gemstone' | ||
do: [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/BaselineOfGrease.package/monticello.meta/categories.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
self packageOrganizer ensurePackage: #BaselineOfGrease withTags: #('Manifest')! | ||
SystemOrganization addCategory: #BaselineOfGrease! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
repository/Grease-Core.package/GRPlatform.class/instance/newTemporaryFile.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
files | ||
newTemporaryFile | ||
"Create a new temporary file in the systems temp directory and answer its pathString. | ||
It is the users responsibility to delete or move the file, it will not be cleaned up automatically | ||
(unless the host system has a policy for it)." | ||
^ self subclassResponsibility |
6 changes: 6 additions & 0 deletions
6
repository/Grease-Core.package/GRPlatform.class/instance/newTemporaryFileNamed..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
files | ||
newTemporaryFileNamed: aName | ||
"Create a new temporary file in the systems temp directory and answer its pathString. | ||
It is the users responsibility to delete or move the file, it will not be cleaned up automatically | ||
(unless the host system has a policy for it)." | ||
self subclassResponsibility |
8 changes: 0 additions & 8 deletions
8
repository/Grease-Core.package/GRPlatform.class/instance/newTemporaryFileReference.st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
repository/Grease-Core.package/GRPlatform.class/instance/newTemporaryFileReferenceNamed..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
repository/Grease-GemStone-Core.package/GRGemStonePlatform.class/instance/deleteFile..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
files | ||
deleteFile: aPathString | ||
|
||
GsFile removeServerFile: aPathString |
4 changes: 4 additions & 0 deletions
4
...sitory/Grease-GemStone-Core.package/GRGemStonePlatform.class/instance/newTemporaryFile.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
files | ||
newTemporaryFile | ||
|
||
^ self newTemporaryFileNamed: UUID new greaseString |
7 changes: 7 additions & 0 deletions
7
.../Grease-GemStone-Core.package/GRGemStonePlatform.class/instance/newTemporaryFileNamed..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
files | ||
newTemporaryFileNamed: aName | ||
|
||
| fileName | | ||
fileName := GRPlatform current pathSeparator,'tmp', GRPlatform current pathSeparator, aName. | ||
(self fileExists: fileName) ifTrue: [ GRError new signal: 'A (temporary) file with name ', aName, ' already exists.' ]. | ||
^ (GsFile openWriteOnServer: fileName) pathName |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo100-Core.package/GRPharoPlatform.class/instance/newTemporaryFile.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
files | ||
newTemporaryFile | ||
|
||
^ self newTemporaryFileNamed: UUID new greaseString |
7 changes: 7 additions & 0 deletions
7
...ory/Grease-Pharo100-Core.package/GRPharoPlatform.class/instance/newTemporaryFileNamed..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
files | ||
newTemporaryFileNamed: aName | ||
|
||
| newFile | | ||
newFile := FileLocator temp / aName. | ||
newFile exists ifTrue: [ GRError new signal: 'A (temporary) file with name ', aName, ' already exists.' ]. | ||
^ newFile pathString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/Grease-Pharo100-Core.package/monticello.meta/categories.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SystemOrganization addCategory: #'Grease-Pharo100-Core'! | ||
self packageOrganizer ensurePackage: #'Grease-Pharo100-Core' withTags: #()! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"separateMethodMetaAndSource" : false, | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiBooleansRule.class/instance/group.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
group | ||
|
||
^ 'ANSI Compatibility' |
19 changes: 19 additions & 0 deletions
19
repository/Grease-Pharo110-Slime.package/GRAnsiBooleansRule.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self | ||
replace: '``@expr1 and: [ | `@temp2 | ``@expr2 ] and: [ | `@temp3 | ``@expr3 ]' | ||
with: '``@expr1 and: [ | `@temp2 | ``@expr2 and: [ | `@temp3 | ``@expr3 ] ]'; | ||
replace: '``@expr1 and: [ | `@temp2 | ``@expr2 ] and: [ | `@temp3 | ``@expr3 ] and: [ | `@temp4 | ``@expr4 ]' | ||
with: '``@expr1 and: [ | `@temp2 | ``@expr2 and: [ | `@temp3 | ``@expr3 and: [ | `@temp4 | ``@expr4 ] ] ]'; | ||
replace: '``@expr1 and: [ | `@temp2 | ``@expr2 ] and: [ | `@temp3 | ``@expr3 ] and: [ | `@temp4 | ``@expr4 ] and: [ | `@temp5 | ``@expr5 ]' | ||
with: '``@expr1 and: [ | `@temp2 | ``@expr2 and: [ | `@temp3 | ``@expr3 and: [ | `@temp4 | ``@expr4 and: [ | `@temp5 | ``@expr5 ] ] ] ]'; | ||
replace: '``@expr1 or: [ | `@temp2 | ``@expr2 ] or: [ | `@temp3 | ``@expr3 ]' | ||
with: '``@expr1 or: [ | `@temp2 | ``@expr2 or: [ | `@temp3 | ``@expr3 ] ]'; | ||
replace: '``@expr1 or: [ | `@temp2 | ``@expr2 ] or: [ | `@temp3 | ``@expr3 ] or: [ | `@temp4 | ``@expr4 ]' | ||
with: '``@expr1 or: [ | `@temp2 | ``@expr2 or: [ | `@temp3 | ``@expr3 or: [ | `@temp4 | ``@expr4 ] ] ]'; | ||
replace: '``@expr1 or: [ | `@temp2 | ``@expr2 ] or: [ | `@temp3 | ``@expr3 ] or: [ | `@temp4 | ``@expr4 ] or: [ | `@temp5 | ``@expr5 ]' | ||
with: '``@expr1 or: [ | `@temp2 | ``@expr2 or: [ | `@temp3 | ``@expr3 or: [ | `@temp4 | ``@expr4 or: [ | `@temp5 | ``@expr5 ] ] ] ]'; | ||
replace: '``@expr1 or: [ | `@temp2 | ``@expr2 ] or: [ | `@temp3 | ``@expr3 ] or: [ | `@temp4 | ``@expr4 ] or: [ | `@temp5 | ``@expr5 ] or: [ | `@temp6 | ``@expr6 ]' | ||
with: '``@expr1 or: [ | `@temp2 | ``@expr2 or: [ | `@temp3 | ``@expr3 or: [ | `@temp4 | ``@expr4 or: [ | `@temp5 | ``@expr5 or: [ | `@temp6 | ``@expr6 ] ] ] ] ]' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiBooleansRule.class/instance/name.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
name | ||
|
||
^ 'Booleans' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiBooleansRule.class/instance/rationale.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
rationale | ||
|
||
^ '#and:and: and #or:or: are not ANSI compatible.' |
11 changes: 11 additions & 0 deletions
11
repository/Grease-Pharo110-Slime.package/GRAnsiBooleansRule.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "GRSlimeTransformationRule", | ||
"category" : "Grease-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRAnsiBooleansRule", | ||
"type" : "normal" | ||
} |
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/group.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
group | ||
|
||
^ 'ANSI Compatibility' |
16 changes: 16 additions & 0 deletions
16
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self | ||
replace: 'Character value: ``@expr' | ||
with: 'Character codePoint: ``@expr'. | ||
self | ||
replace: '`#source `{:node | node value isCharacter }` to: `#target' | ||
byEvaluating: [ :node | | ||
(node receiver value isCharacter and: [ | ||
node arguments first value isCharacter ]) | ||
ifTrue: [ | ||
RBLiteralNode value: (String streamContents: [ :stream | | ||
node receiver value codePoint to: node arguments first value codePoint do: [ :code | stream nextPut: (Character codePoint: code) ] ]) ] | ||
ifFalse: [ node ] ] |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/name.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
name | ||
|
||
^ 'Characters' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/instance/rationale.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
rationale | ||
|
||
^ 'Character value: 64 and $a to: $b is not ANSI compatible.' |
11 changes: 11 additions & 0 deletions
11
repository/Grease-Pharo110-Slime.package/GRAnsiCharactersRule.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "GRSlimeTransformationRule", | ||
"category" : "Grease-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRAnsiCharactersRule", | ||
"type" : "normal" | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCollectionsRule.class/instance/group.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
group | ||
|
||
^ 'ANSI Compatibility' |
30 changes: 30 additions & 0 deletions
30
repository/Grease-Pharo110-Slime.package/GRAnsiCollectionsRule.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
initialization | ||
initialize | ||
super initialize. | ||
self | ||
replace: '``@collection withIndexDo: [ :`each :`index | | `@temps | ``@.body ]' | ||
with: '``@collection keysAndValuesDo: [ :`index :`each | | `@temps | ``@.body ]'; | ||
replace: '``@collection doWithIndex: [ :`each :`index | | `@temps | ``@.body ]' | ||
with: '``@collection keysAndValuesDo: [ :`index :`each | | `@temps | ``@.body ]'; | ||
replace: '``@collection collect: ``@block1 thenDo: ``@block2' | ||
with: '(``@collection collect: ``@block1) do: ``@block2'; | ||
replace: '``@collection collect: ``@block1 thenSelect: ``@block2' | ||
with: '(``@collection collect: ``@block1) select: ``@block2'; | ||
replace: '``@collection pairsDo: [ :`t1 :`t2 | ``@.statements ]' | ||
with: '1 to: ``@collection size by: 2 do: [ :index | | `t1 `t2 | `t1 := ``@collection at: index. `t2 := ``@collection at: index + 1. ``@.statements ]'; | ||
replace: '``@collection reject: ``@block1 thenDo: ``@block2' | ||
with: '(``@collection reject: ``@block1) do: ``@block2'; | ||
replace: '``@collection select: ``@block1 thenCollect: ``@block2' | ||
with: '(``@collection select: ``@block1) collect: ``@block2'; | ||
replace: '``@collection select: ``@block1 thenDo: ``@block2' | ||
with: '(``@collection select: ``@block1) do: ``@block2'; | ||
replace: '``@collection detectSum: [ :`t1 | ``@.statements. `.last ]' | ||
with: '``@collection inject: 0 into: [ :sum :`t1 | ``@.statements. sum + (`.last) ]'; | ||
replace: '``@collection valuesDo: ``@block' | ||
with: '``@collection do: ``@block'; | ||
replace: '``@collection reversed' | ||
with: '``@collection reverse'; | ||
replace: '``@dictionary keysSortedSafely' | ||
with: '``@dictionary keys asSortedCollection'; | ||
replace: '``@collectionClass new: ``@size withAll: ``@character' | ||
with: '(``@collectionClass new: ``@size) atAllPut: ``@character' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCollectionsRule.class/instance/name.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
name | ||
|
||
^ 'Collections' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiCollectionsRule.class/instance/rationale.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
rationale | ||
|
||
^ 'Some collection methods are not ANSI compatible: #pairsDo:, #collect:thenDo:, #reject:thenDo:, #detectSum:, #valuesDo:, #keysSortedSafely, #new:withAll:, etc.' |
11 changes: 11 additions & 0 deletions
11
repository/Grease-Pharo110-Slime.package/GRAnsiCollectionsRule.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "GRSlimeTransformationRule", | ||
"category" : "Grease-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRAnsiCollectionsRule", | ||
"type" : "normal" | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiConditionalsRule.class/instance/group.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
group | ||
|
||
^ 'ANSI Compatibility' |
17 changes: 17 additions & 0 deletions
17
repository/Grease-Pharo110-Slime.package/GRAnsiConditionalsRule.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self | ||
replace: '``@boolean ifNotNilDo: ``@block' | ||
with: '``@boolean ifNotNil: ``@block'; | ||
replace: '``@boolean ifNotNilDo: ``@block1 ifNil: ``@block2' | ||
with: '``@boolean ifNotNil: ``@block1 ifNil: ``@block2'; | ||
replace: '``@boolean ifNil: ``@block1 ifNotNilDo: ``@block2' | ||
with: '``@boolean ifNil: ``@block1 ifNotNil: ``@block2'; | ||
replace: '``@boolean ifNotNil: [ | `@temps | ``@.body ]' | ||
with: '``@boolean ifNotNil: [ :arg | | `@temps | ``@.body ]'; | ||
replace: '``@boolean ifNotNil: [ | `@temps | ``@.body ] ifNil: ``@block ' | ||
with: '``@boolean ifNotNil: [ :arg | | `@temps | ``@.body ] ifNil: ``@block'; | ||
replace: '``@boolean ifNil: ``@block ifNotNil: [ | `@temps | ``@.body ]' | ||
with: '``@boolean ifNil: ``@block ifNotNil: [ :arg | | `@temps | ``@.body ]' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiConditionalsRule.class/instance/name.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
name | ||
|
||
^ 'Conditionals' |
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiConditionalsRule.class/instance/rationale.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
rationale | ||
|
||
^ 'Conditionals like #ifNotNilDo: are not ANSI compatible.' |
11 changes: 11 additions & 0 deletions
11
repository/Grease-Pharo110-Slime.package/GRAnsiConditionalsRule.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "GRSlimeTransformationRule", | ||
"category" : "Grease-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRAnsiConditionalsRule", | ||
"type" : "normal" | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
repository/Grease-Pharo110-Slime.package/GRAnsiConvertorRule.class/instance/group.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
group | ||
|
||
^ 'ANSI Compatibility' |
7 changes: 7 additions & 0 deletions
7
repository/Grease-Pharo110-Slime.package/GRAnsiConvertorRule.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self | ||
replace: '``@object asString' with: '``@object greaseString'; | ||
replace: '``@object asInteger' with: '``@object greaseInteger' |
Oops, something went wrong.