Skip to content

Commit

Permalink
Merge pull request #108 from jecisc/follow-Pharo9-AST-changes
Browse files Browse the repository at this point in the history
follow-Pharo9-AST-changes
  • Loading branch information
jecisc committed Aug 13, 2020
2 parents efc0de5 + 7e1277a commit 23e5380
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 25 deletions.
39 changes: 21 additions & 18 deletions src/BaselineOfChanel/BaselineOfChanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,32 @@ Class {
#category : #BaselineOfChanel
}

{ #category : #baseline }
{ #category : #baselines }
BaselineOfChanel >> baseline: spec [
<baseline>
spec
for: #common
do: [ self
iterators: spec;
tinyLogger: spec.
spec for: #common do: [
self
iterators: spec;
tinyLogger: spec.

spec
package: 'Chanel' with: [ spec requires: #('Iterators' 'TinyLogger') ];
package: 'Chanel-Tests' with: [ spec requires: #('Chanel') ].
spec
package: 'Chanel' with: [ spec requires: #( 'Iterators' 'TinyLogger' ) ];
package: 'Chanel-Tests' with: [ spec requires: #( 'Chanel' ) ].

spec
group: 'Core' with: #('Chanel');
group: 'Tests' with: #('Chanel-Tests') ].
spec
group: 'Core' with: #( 'Chanel' );
group: 'Tests' with: #( 'Chanel-Tests' ) ].

spec
for: #(#'pharo7.x')
do: [ self pharoBackwardCompatibility: spec.
spec
package: 'Chanel-Pharo7';
package: 'Chanel-Tests' with: [ spec requires: #('Chanel-Pharo7' 'PharoBackwardCompatibility') ] ]
spec for: #( #'pharo7.x' ) do: [
self pharoBackwardCompatibility: spec.
spec
package: 'Chanel-Pharo7';
package: 'Chanel-Tests' with: [ spec requires: #( 'Chanel-Pharo7' 'PharoBackwardCompatibility' ) ] ].

spec for: #( #'pharo7.x' #'pharo8.x' ) do: [
spec
package: 'Chanel-Pharo8';
package: 'Chanel' with: [ spec requires: #( 'Chanel-Pharo8' ) ] ]
]

{ #category : #dependencies }
Expand Down
6 changes: 6 additions & 0 deletions src/Chanel-Pharo8/RBVariableNode.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Extension { #name : #RBVariableNode }

{ #category : #'*Chanel-Pharo8' }
RBVariableNode class >> superNode [
^ self named: #super
]
1 change: 1 addition & 0 deletions src/Chanel-Pharo8/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Chanel-Pharo8' }
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ChanelClassifyUnclassifiedMethodsCleanerTest >> setUp [
class := self createDefaultClass
]

{ #category : #running }
{ #category : #tests }
ChanelClassifyUnclassifiedMethodsCleanerTest >> testCannotCategorizeUncategorizedMethodNotPresentInProtocolOrganizer [
class compile: 'badetitou'.

Expand All @@ -24,7 +24,7 @@ ChanelClassifyUnclassifiedMethodsCleanerTest >> testCannotCategorizeUncategorize
self assert: (class >> #badetitou) protocol equals: 'as yet unclassified'
]

{ #category : #running }
{ #category : #tests }
ChanelClassifyUnclassifiedMethodsCleanerTest >> testCategorizeUncategorizedClassMethod [
class class compile: 'initialize'.

Expand All @@ -35,7 +35,7 @@ ChanelClassifyUnclassifiedMethodsCleanerTest >> testCategorizeUncategorizedClass
self deny: (class class >> #initialize) protocol equals: 'as yet unclassified'
]

{ #category : #running }
{ #category : #tests }
ChanelClassifyUnclassifiedMethodsCleanerTest >> testCategorizeUncategorizedMethod [
class compile: 'initialize'.

Expand All @@ -46,7 +46,7 @@ ChanelClassifyUnclassifiedMethodsCleanerTest >> testCategorizeUncategorizedMetho
self deny: (class >> #initialize) protocol equals: 'as yet unclassified'
]

{ #category : #running }
{ #category : #tests }
ChanelClassifyUnclassifiedMethodsCleanerTest >> testCategorizeUncategorizedMethodFromTrait [
class := self createDefaultTrait.

Expand All @@ -59,7 +59,7 @@ ChanelClassifyUnclassifiedMethodsCleanerTest >> testCategorizeUncategorizedMetho
self deny: (class >> #initialize) protocol equals: 'as yet unclassified'
]

{ #category : #running }
{ #category : #tests }
ChanelClassifyUnclassifiedMethodsCleanerTest >> testDontCategorizeCategorizedMethod [
class compile: 'initialize' classified: 'peacock'.

Expand All @@ -68,7 +68,7 @@ ChanelClassifyUnclassifiedMethodsCleanerTest >> testDontCategorizeCategorizedMet
self assert: (class >> #initialize) protocol equals: 'peacock'
]

{ #category : #running }
{ #category : #tests }
ChanelClassifyUnclassifiedMethodsCleanerTest >> testDontCategorizeExtensionMethods [
class compile: 'initialize' classified: self extensionProtocol.

Expand Down
2 changes: 1 addition & 1 deletion src/Chanel/RBMessageNode.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RBMessageNode >> isSuperSendTo: aSelector [

{ #category : #'*Chanel' }
RBMessageNode class >> superSendTo: aSelector [
^ self receiver: (RBVariableNode named: #super) selector: aSelector
^self receiver: RBVariableNode superNode selector: aSelector
]

{ #category : #'*Chanel' }
Expand Down

0 comments on commit 23e5380

Please sign in to comment.