[NewCompiler] Comment in AST are ready !

Mathieu Suen mathieusuen at yahoo.fr
Wed Sep 20 18:25:52 UTC 2006


Stéphane Ducasse a écrit :
> This is cool
> 
> Mathieu peekBefore or peekBefor?
> Because the first one is right!

Thanks
Yes I have fix it. Fortunatly we have refactoring browser and TestRunner!

http://www.squeaksource.com/NewCompilerPragma/NewCompiler-ms.130.mcz
http://www.squeaksource.com/NewCompilerPragma/AST-ms.98.mcz

> 
> Stef
> 
> On 20 sept. 06, at 00:55, Mathieu Suen wrote:
> 
>> Hi,
>>
>> I have finish commetn parsing.
>> So to use it you have several way:
>>
>> 1. The old way for being compatible with refactoring engine
>>
>>     aNode comments -> list of Interval
>>
>> 2. The new way:
>>     
>>     aNode peekBeforComment -> list of SqueakToken being befor the node
>>     aNode peekAfterComment -> list of SqueakToken being after the node
>>     aNode peekInsideComment -> list of SqueakToken who belong to
>> nobody inside the node
>>
>> To enable this feather you have to visit method node with ASTCommenter.
>>
>>     ASTCommenter new visitNode: aNode
>>
>> You will find the package in
>> http://www.squeaksource.com/NewCompilerPragma
>> Beceause of many change, I have recompile all the image without bug
>> (only the one seen befor
>> beceause of a dot at the end of method pattern).
>>
>> For more information on where are comment on the tree you can see the
>> test:
>>
>> SqueakParserTest>>#methodDescribeWithAllComment:And:
>> SqueakParserTest>>#test*
>>
>> I didn't throw any comment beceause people can make code commenting,
>> thus losing them can be
>> annoying. That the aim of peekInsideComment: retreive comments that
>> aren't at a good place.
>>
>> Tell me if you find it all ok.
>>
>> Thanks
>>     Math
>>
>>     
>>     
>>        
>> ___________________________________________________________________________
>>
>> Découvrez un nouveau moyen de poser toutes vos questions quelque soit
>> le sujet !
>> Yahoo! Questions/Réponses pour partager vos connaissances, vos
>> opinions et vos expériences.
>> http://fr.answers.yahoo.com
>>
> 
> 


	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com


More information about the Newcompiler mailing list