Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

buildMethodTopicsOn: topic for: aClass should use MDBuilder and not forge MD by hand #11

Open
Ducasse opened this issue Oct 6, 2021 · 0 comments

Comments

@Ducasse
Copy link
Contributor

Ducasse commented Oct 6, 2021

buildMethodTopicsOn: topic for: aClass

	| stream methodComment |
	stream := String new writeStream.
	aClass selectors asSortedCollection do: [:selector | 
		methodComment := (aClass>>selector) comment.
		addMethodsWithoutComment | methodComment notNil ifTrue: [ 
			stream 
				nextPutAll: '`';
				nextPutAll: aClass name;
				nextPutAll: '>>#';
				nextPutAll: selector asString;
				nextPutAll: '`';
				cr.		
		methodComment ifNil: [ methodComment := 'Method has no comment.' ].
		stream 
			nextPutAll: '_"'; 
			nextPutAll: methodComment; nextPutAll: '"_';cr;cr ] ].
	
	topic addNode: (MicroDownParser new parse: stream contents).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant