-
Notifications
You must be signed in to change notification settings - Fork 26
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 #121 from jecisc/categories
Remove usage of categories
- Loading branch information
Showing
9 changed files
with
37 additions
and
32 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
8 changes: 4 additions & 4 deletions
8
MonticelloTonel-Core.package/TonelWriter.class/instance/packageNameForMethodDefinition..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,7 +1,7 @@ | ||
private | ||
packageNameForMethodDefinition: aMethodDefinition | ||
|
||
| category | | ||
self assert: aMethodDefinition category first = $*. | ||
category := aMethodDefinition category allButFirst. | ||
^ (MCWorkingCopy allWorkingCopies detect: [ :wc | category sameAs: wc packageName ]) packageName | ||
| protocol | | ||
self assert: aMethodDefinition protocol first = $*. | ||
protocol := aMethodDefinition protocol allButFirst. | ||
^ (MCWorkingCopy allWorkingCopies detect: [ :wc | protocol sameAs: wc packageName ]) packageName |
25 changes: 13 additions & 12 deletions
25
MonticelloTonel-Tests.package/TonelReaderTest.class/instance/assertClassDefinition.and..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,13 +1,14 @@ | ||
tests | ||
assertClassDefinition: a and: b | ||
self assert: a className equals: b className. | ||
self assert: a superclassName equals: b superclassName. | ||
self assert: a traitCompositionString equals: b traitCompositionString. | ||
self assert: a classTraitCompositionString equals: b classTraitCompositionString. | ||
self assert: a category equals: b category. | ||
self assert: a instVarNames equals: b instVarNames. | ||
self assert: a classInstVarNames equals: b classInstVarNames. | ||
self assert: a classVarNames equals: b classVarNames. | ||
self assert: a poolDictionaries equals: b poolDictionaries. | ||
self assert: a type equals: b type. | ||
self assert: a comment equals: b comment | ||
assertClassDefinition: actualDefinition and: expectedDefinition | ||
self assert: actualDefinition className equals: expectedDefinition className. | ||
self assert: actualDefinition superclassName equals: expectedDefinition superclassName. | ||
self assert: actualDefinition traitCompositionString equals: expectedDefinition traitCompositionString. | ||
self assert: actualDefinition classTraitCompositionString equals: expectedDefinition classTraitCompositionString. | ||
self assert: actualDefinition packageName equals: expectedDefinition packageName. | ||
self assert: actualDefinition tagName equals: expectedDefinition tagName. | ||
self assert: actualDefinition instVarNames equals: expectedDefinition instVarNames. | ||
self assert: actualDefinition classInstVarNames equals: expectedDefinition classInstVarNames. | ||
self assert: actualDefinition classVarNames equals: expectedDefinition classVarNames. | ||
self assert: actualDefinition poolDictionaries equals: expectedDefinition poolDictionaries. | ||
self assert: actualDefinition type equals: expectedDefinition type. | ||
self assert: actualDefinition comment equals: expectedDefinition comment |
9 changes: 5 additions & 4 deletions
9
MonticelloTonel-Tests.package/TonelReaderTest.class/instance/assertDefinition.and..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 @@ | ||
tests | ||
assertDefinition: a and: b | ||
a isOrganizationDefinition ifTrue: [ ^ self assertOrganisationDefinition: a and: b ]. | ||
a isClassDefinition ifTrue: [ ^ self assertClassDefinition: a and: b ]. | ||
a isMethodDefinition ifTrue: [ ^ self assertMethodDefinition: a and: b ] | ||
assertDefinition: actualDefinition and: expectedDefinition | ||
|
||
actualDefinition isOrganizationDefinition ifTrue: [ ^ self assertOrganisationDefinition: actualDefinition and: expectedDefinition ]. | ||
actualDefinition isClassDefinition ifTrue: [ ^ self assertClassDefinition: actualDefinition and: expectedDefinition ]. | ||
actualDefinition isMethodDefinition ifTrue: [ ^ self assertMethodDefinition: actualDefinition and: expectedDefinition ] |
13 changes: 7 additions & 6 deletions
13
MonticelloTonel-Tests.package/TonelReaderTest.class/instance/assertMethodDefinition.and..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,7 +1,8 @@ | ||
tests | ||
assertMethodDefinition: a and: b | ||
self assert: a className equals: b className. | ||
self assert: a selector equals: b selector. | ||
self assert: a protocol equals: b protocol. | ||
self assert: a source asByteArray equals: b source asByteArray. | ||
self assert: a classIsMeta equals: b classIsMeta | ||
assertMethodDefinition: actualDefinition and: expectedDefinition | ||
|
||
self assert: actualDefinition className equals: expectedDefinition className. | ||
self assert: actualDefinition selector equals: expectedDefinition selector. | ||
self assert: actualDefinition protocol equals: expectedDefinition protocol. | ||
self assert: actualDefinition source asByteArray equals: expectedDefinition source asByteArray. | ||
self assert: actualDefinition classIsMeta equals: expectedDefinition classIsMeta |
6 changes: 4 additions & 2 deletions
6
...loTonel-Tests.package/TonelReaderTest.class/instance/assertOrganisationDefinition.and..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,3 +1,5 @@ | ||
tests | ||
assertOrganisationDefinition: a and: b | ||
self assert: a categories equals: b categories | ||
assertOrganisationDefinition: actualDefinition and: expectedDefinition | ||
|
||
self assert: actualDefinition packageName equals: expectedDefinition packageName. | ||
self assert: actualDefinition tagNames equals: expectedDefinition tagNames |
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
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