-
Notifications
You must be signed in to change notification settings - Fork 71
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 #1398 from SeasideSt/slime-renovation
Slime renovation
- Loading branch information
Showing
148 changed files
with
792 additions
and
68 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
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/BaselineOfSeaside3.package/BaselineOfSeaside3.class/instance/baselinepharo..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 | ||
baselinepharo: spec | ||
|
||
spec | ||
for: #squeakCommon | ||
do: [ spec | ||
|
28 changes: 16 additions & 12 deletions
28
repository/BaselineOfSeaside3.package/BaselineOfSeaside3.class/instance/baselineslime..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,25 +1,29 @@ | ||
baselines | ||
baselineslime: spec | ||
|
||
spec | ||
for: #squeakCommon | ||
do: [ spec | ||
for: #pharo | ||
do: [ | ||
spec | ||
project: 'Grease Slime' copyFrom: 'Grease' with: [ spec loads: #('Slime') ]; | ||
project: 'Grease Slime Tests' copyFrom: 'Grease' with: [ spec loads: #('Slime Tests') ] ]. | ||
|
||
spec | ||
for: #squeak | ||
do: [ spec | ||
package: 'Seaside-Slime' with: [ spec requires: #('Grease Slime') ]; | ||
package: 'Seaside-Tests-Slime' with: [ spec requires: #('Seaside-Slime' 'Seaside-Tests-Component' 'Grease Slime Tests') ]. | ||
for: #(#'pharo8.x' #'pharo9.x') | ||
do: [ | ||
spec | ||
group: 'Development' with: #('Seaside-Slime'); | ||
group: 'Development Tests' with: #('Seaside-Tests-Slime') ]. | ||
|
||
spec | ||
for: #pharo | ||
do: [ spec | ||
package: 'Seaside-Pharo-Slime' with: [ spec requires: #('Grease Slime') ]; | ||
package: 'Seaside-Tests-Slime' with: [ spec requires: #('Seaside-Pharo-Slime' 'Seaside-Tests-Component' 'Grease Slime Tests') ]. | ||
spec | ||
group: 'Development' with: #('Seaside-Pharo-Slime'); | ||
group: 'Development Tests' with: #('Seaside-Tests-Slime') ]. | ||
|
||
spec | ||
for: #(#'pharo10.x' #'pharo11.x' #'pharo12.x') | ||
do: [ | ||
spec | ||
package: 'Seaside-Pharo110-Slime' with: [ spec requires: #('Grease Slime') ]; | ||
package: 'Seaside-Tests-Slime' with: [ spec requires: #('Seaside-Pharo110-Slime' 'Seaside-Tests-Component' 'Grease Slime Tests') ]. | ||
spec | ||
group: 'Development' with: #('Seaside-Pharo110-Slime'); | ||
group: 'Development Tests' with: #('Seaside-Tests-Slime') ] |
16 changes: 16 additions & 0 deletions
16
...Seaside-Pharo-Development.package/WADevelopment.class/class/enableSeasideCodeCritiques.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 @@ | ||
tools | ||
enableSeasideCodeCritiques | ||
"This script enables/disables relevant code critiques for Seaside development" | ||
<script> | ||
|
||
| disabledRules | | ||
|
||
disabledRules := { | ||
|
||
}. | ||
|
||
ReRuleManager visibleRuleClasses do: [ :ruleClass | | ||
ruleClass enabled: (disabledRules includes: ruleClass) not ]. | ||
|
||
"Ensure some rules do not disappear from Pharo.." | ||
self assert: ReMultiplePeriodsTerminatingStatementRule enabled |
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 | ||
} |
6 changes: 6 additions & 0 deletions
6
...ory/Seaside-Pharo110-Slime.package/CompiledMethod.extension/instance/isRenderingMethod.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 @@ | ||
*Seaside-Pharo110-Slime | ||
isRenderingMethod | ||
|
||
(self numArgs > 0 and: [ self selector beginsWith: #render ]) | ||
ifFalse: [ ^ false ]. | ||
^ self literals anySatisfy: [ :each | each isSymbol and: [ WASlime isBrushSelector: each ] ] |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Pharo110-Slime.package/CompiledMethod.extension/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,3 @@ | ||
{ | ||
"name" : "CompiledMethod" | ||
} |
8 changes: 8 additions & 0 deletions
8
repository/Seaside-Pharo110-Slime.package/GRPackage.extension/class/seasideSlime.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,8 @@ | ||
*Seaside-Pharo110-Slime | ||
seasideSlime | ||
^ self new | ||
name: 'Seaside-Pharo110-Slime'; | ||
description: 'Code critis for Seaside. Detects common types of Seaside-specific bugs.'; | ||
addDependency: 'Grease-Pharo110-Slime'; | ||
url: #seasideUrl; | ||
yourself |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Pharo110-Slime.package/GRPackage.extension/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,3 @@ | ||
{ | ||
"name" : "GRPackage" | ||
} |
8 changes: 8 additions & 0 deletions
8
...0-Slime.package/GRSlimeParseTreeLintRule.extension/instance/genericPatternForSelector..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,8 @@ | ||
*Seaside-Pharo110-Slime | ||
genericPatternForSelector: aSymbol | ||
|
||
^ String streamContents: [ :stream | | ||
aSymbol keywords keysAndValuesDo: [ :index :value | | ||
stream space; nextPutAll: value. | ||
aSymbol last = $: | ||
ifTrue: [ stream space; nextPutAll: '`@object'; print: index ] ] ] |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Pharo110-Slime.package/GRSlimeParseTreeLintRule.extension/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,3 @@ | ||
{ | ||
"name" : "GRSlimeParseTreeLintRule" | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
.../Seaside-Pharo110-Slime.package/WACallSuperImplementationRule.class/class/checksMethod.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 @@ | ||
testing - interest | ||
checksMethod | ||
|
||
^ true |
17 changes: 17 additions & 0 deletions
17
...easide-Pharo110-Slime.package/WACallSuperImplementationRule.class/instance/basicCheck..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 @@ | ||
running | ||
basicCheck: aMethod | ||
|
||
| current superSelectors | | ||
aMethod methodClass isMeta | ||
ifTrue: [ ^ false ]. | ||
|
||
superSelectors := Set new. | ||
current := aMethod methodClass superclass. | ||
[ current isNil ] whileFalse: [ | ||
classesAndSelectors | ||
at: current name | ||
ifPresent: [ :values | superSelectors addAll: values ]. | ||
current := current superclass ]. | ||
|
||
^ ((superSelectors includes: aMethod selector) | ||
and: [ (aMethod superMessages includes: aMethod selector) not ]) |
4 changes: 4 additions & 0 deletions
4
...tory/Seaside-Pharo110-Slime.package/WACallSuperImplementationRule.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 | ||
|
||
^ 'Seaside' |
13 changes: 13 additions & 0 deletions
13
...Seaside-Pharo110-Slime.package/WACallSuperImplementationRule.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,13 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
classesAndSelectors := Dictionary new. | ||
classesAndSelectors | ||
at: #WAObject put: #( initialize postCopy ); | ||
at: #WAPainter put: #( updateRoot: updateUrl: ); | ||
at: #WAPresenter put: #( updateStates: initialRequest: ); | ||
at: #WABrush put: #( setParent:canvas: with: ); | ||
at: #WATagBrush put: #( before after openTag closeTag ); | ||
at: #WARequestFilter put: #( handleFiltered: updateStates: ); | ||
at: #WASession put: #( updateRoot: updateUrl: updateStates: ) |
4 changes: 4 additions & 0 deletions
4
...itory/Seaside-Pharo110-Slime.package/WACallSuperImplementationRule.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 | ||
|
||
^ 'Call super implementation' |
4 changes: 4 additions & 0 deletions
4
.../Seaside-Pharo110-Slime.package/WACallSuperImplementationRule.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 template methods provided by the framework require to call super to work correctly.' |
13 changes: 13 additions & 0 deletions
13
...sitory/Seaside-Pharo110-Slime.package/WACallSuperImplementationRule.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,13 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "GRSlimeBlockLintRule", | ||
"category" : "Seaside-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"classesAndSelectors" | ||
], | ||
"name" : "WACallSuperImplementationRule", | ||
"type" : "normal" | ||
} |
Empty file.
8 changes: 8 additions & 0 deletions
8
...110-Slime.package/WAChangesStateWhileRenderingRule.class/instance/afterCheck.mappings..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,8 @@ | ||
hooks | ||
afterCheck: aNode mappings: dict | ||
|
||
aNode methodNode method isRenderingMethod ifFalse: [ ^ false ]. | ||
aNode isWrite ifFalse: [ ^ false ]. | ||
(WASlime isWithinCallback: aNode) ifTrue:[ ^ false ]. | ||
|
||
^ true |
4 changes: 4 additions & 0 deletions
4
...y/Seaside-Pharo110-Slime.package/WAChangesStateWhileRenderingRule.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 | ||
|
||
^ 'Seaside' |
5 changes: 5 additions & 0 deletions
5
...side-Pharo110-Slime.package/WAChangesStateWhileRenderingRule.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,5 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self matches: '`var' |
4 changes: 4 additions & 0 deletions
4
...ry/Seaside-Pharo110-Slime.package/WAChangesStateWhileRenderingRule.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 | ||
|
||
^ 'Changes state while rendering' |
4 changes: 4 additions & 0 deletions
4
...aside-Pharo110-Slime.package/WAChangesStateWhileRenderingRule.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 | ||
|
||
^ 'Application state should not be changed in the rendering code, use a callback to define state.' |
11 changes: 11 additions & 0 deletions
11
...ory/Seaside-Pharo110-Slime.package/WAChangesStateWhileRenderingRule.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" : "GRSlimeParseTreeLintRule", | ||
"category" : "Seaside-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WAChangesStateWhileRenderingRule", | ||
"type" : "normal" | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Pharo110-Slime.package/WACookieConversionRule.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 | ||
|
||
^ 'Seaside 3.2' |
8 changes: 8 additions & 0 deletions
8
...sitory/Seaside-Pharo110-Slime.package/WACookieConversionRule.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,8 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self | ||
replace: '``@a oldNetscapeString' with: '``@a rfc6265String'; | ||
replace: '``@a rfc2109String' with: '``@a rfc6265String'; | ||
replace: '``@a rfc2965String' with: '``@a rfc6265String' |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Pharo110-Slime.package/WACookieConversionRule.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 | ||
|
||
^ '#oldNetscapeString, #rfc2109String and #rfc2965String have been replaced with #rfc6265String' |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-Pharo110-Slime.package/WACookieConversionRule.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 | ||
|
||
^ '#oldNetscapeString, #rfc2109String and #rfc2965String have been replaced by #rfc6265String.' |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-Pharo110-Slime.package/WACookieConversionRule.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" : "Seaside-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WACookieConversionRule", | ||
"type" : "normal" | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
...Pharo110-Slime.package/WADoNotCombineMultiplePrimaryAjaxCallbacks.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 | ||
|
||
^ 'Seaside' |
10 changes: 10 additions & 0 deletions
10
...110-Slime.package/WADoNotCombineMultiplePrimaryAjaxCallbacks.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,10 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self matchesAny: | ||
#( '``html jQuery ajax callback: ``@block;script:``@block2' | ||
'``html jQuery ajax script: ``@block;callback:``@block2' | ||
'``html jQuery ajax callback: ``@block;callback:``@block2' | ||
'``html jQuery ajax callback: ``@block;html:``@block2' | ||
'``html jQuery ajax html: ``@block;callback:``@block2' ) |
4 changes: 4 additions & 0 deletions
4
...-Pharo110-Slime.package/WADoNotCombineMultiplePrimaryAjaxCallbacks.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 | ||
|
||
^ 'Multiple primary Ajax callbacks' |
4 changes: 4 additions & 0 deletions
4
...o110-Slime.package/WADoNotCombineMultiplePrimaryAjaxCallbacks.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 | ||
|
||
^ 'Multiple primary callback blocks attached to a single ajax request override each other. You can only combine multiple secondary callbacks with a single primary callback.' |
11 changes: 11 additions & 0 deletions
11
...e-Pharo110-Slime.package/WADoNotCombineMultiplePrimaryAjaxCallbacks.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" : "GRSlimeParseTreeLintRule", | ||
"category" : "Seaside-Pharo110-Slime", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WADoNotCombineMultiplePrimaryAjaxCallbacks", | ||
"type" : "normal" | ||
} |
Empty file.
6 changes: 6 additions & 0 deletions
6
...haro110-Slime.package/WADoNotUseWhileRenderingRule.class/instance/afterCheck.mappings..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 @@ | ||
hooks | ||
afterCheck: aNode mappings: dict | ||
|
||
aNode methodNode method isRenderingMethod ifFalse: [ ^ false ]. | ||
(WASlime isWithinCallback: aNode) ifTrue: [ ^ false ]. | ||
^ true |
4 changes: 4 additions & 0 deletions
4
...itory/Seaside-Pharo110-Slime.package/WADoNotUseWhileRenderingRule.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 | ||
|
||
^ 'Seaside' |
6 changes: 6 additions & 0 deletions
6
.../Seaside-Pharo110-Slime.package/WADoNotUseWhileRenderingRule.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,6 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self matchesAny: (self selectors | ||
collect: [ :each | 'self' , (self genericPatternForSelector: each) ]) |
4 changes: 4 additions & 0 deletions
4
...sitory/Seaside-Pharo110-Slime.package/WADoNotUseWhileRenderingRule.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 | ||
|
||
^ 'Do not use while rendering' |
4 changes: 4 additions & 0 deletions
4
...y/Seaside-Pharo110-Slime.package/WADoNotUseWhileRenderingRule.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 | ||
|
||
^ 'Certain functionaly should not be used while rendering. For example: #call: and #answer: should only be used from within callback code.' |
4 changes: 4 additions & 0 deletions
4
...y/Seaside-Pharo110-Slime.package/WADoNotUseWhileRenderingRule.class/instance/selectors.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 @@ | ||
private | ||
selectors | ||
|
||
^ #( answer answer: call: show: show:onAnswer: show:onAnswer:delegation: lightbox: chooseFrom: chooseFrom:caption: confirm: inform: request: request:default: request:label: request:label:default: wait: addDecoration: addMessage: answer answer: authenticateWith:during: call: chooseFrom: chooseFrom:caption: chooseFrom:caption:onAnswer: chooseFrom:onAnswer: confirm: confirm:onAnswer: decorateWith:during: filterWith:during: home inform: inform:onAnswer: isolate: lightbox: removeDecoration: removeDelegation request: request:default: request:default:onAnswer: request:label: request:label:default: request:label:default:onAnswer: request:label:onAnswer: request:onAnswer: show: show:onAnswer: show:onAnswer:delegation: validateWith: wait: ) |
Oops, something went wrong.