Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot commit class with some traits compositions #4270

Open
jecisc opened this issue Aug 10, 2019 · 0 comments

Comments

@jecisc
Copy link
Member

commented Aug 10, 2019

I cannot commit this class:

Trait named: #FamixTClass
	 uses: FamixTWithMethods + FamixTWithSubInheritances + FamixTWithSuperInheritances + FamixTWithAttributes + (FamixTNamed - {#mooseNameOn:}) + FamixTType + FamixTPackageable + FamixTWithComments
	 slots: {  }
	 package: 'Famix-Traits-Class'

Because I get this error:

ByteSymbol(Object)>>doesNotUnderstand: #isUppercase
[ :each | each first isUppercase ifTrue: [ tcs := tcs , each , ' classTrait + ' ] ] in MCTraitDefinition>>classTraitCompositionString in Block: [ :each | each first isUppercase ifTrue: [ tcs := ...etc...
Array(SequenceableCollection)>>do:
MCTraitDefinition>>classTraitCompositionString
MCTraitDefinition(MCClassDefinition)>>hasClassTraitComposition
TonelWriter>>typeTraitDefinitionOf:
TonelWriter>>typeDefinitionOf:
TonelWriter>>writeClassDefinition:on:
[ self writeClassDefinition: aClassDefinition on: aStream.
self writeClassSideMethodDefinitions: aClassDefinition on: aStream.
self writeInstanceSideMethodDefinitions: aClassDefinition on: aStream ] in TonelWriter>>writeClass:on: in Block: [ self writeClassDefinition: aClassDefinition on: ...etc...
BlockClosure>>on:do:
TonelWriter>>writeClass:on:

The problem is that in #classTraitCompositionString, the variable #each is: #(#FamixTNamed #- #'{' #mooseNameOn: #'}') and not 'FamixTNamed - { #mooseNameOn:}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.