forked from pharo-project/pharo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing problem with class trait compositions with parens.
When monticello was saving the traits, it was not able to handle complex trait compositions with parentensis. This was also affecting Iceberg and Tonel, as both of them relies in the MC model. - Adding the node of withPrecedenceOf: in the Class parser - The trait definition has to have the class trait composition. - Improving the handling of parentheses. - Updating the version of iceberg and Tonel
- Loading branch information
Showing
7 changed files
with
109 additions
and
21 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
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,22 @@ | ||
" | ||
I represent the trait composition node used when an sequence of traits has to define precedence for one of the traits. | ||
I am a syntax sugar to declare traits, as my behavior is exactly the same than removing all the messages of the prefered trait from the rest of the composition. | ||
" | ||
Class { | ||
#name : #CDTraitPrecedenceCompositionNode, | ||
#superclass : #CDTraitCompositionSequenceNode, | ||
#instVars : [ | ||
'preferedTrait' | ||
], | ||
#category : #'ClassParser-Model' | ||
} | ||
|
||
{ #category : #accessing } | ||
CDTraitPrecedenceCompositionNode >> preferedTrait [ | ||
^ preferedTrait | ||
] | ||
|
||
{ #category : #accessing } | ||
CDTraitPrecedenceCompositionNode >> preferedTrait: anObject [ | ||
preferedTrait := anObject | ||
] |
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
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