On Aug 15, 2010, at 8:55 PM, Mariano Martinez Peck wrote:

> Hi folks...while browsing AutomaticMethodCategorizer  I found the place where 
> the rules are defined. It is cool becuase we can add the rules we want. I am 
> all ears.

yes I would really like to have consistent categories.
Now we should pay attention that the automaticmethodcategory does not do 
anythin when the category is * something.

Stef
> 
> For now, it is doing this:
> 
> 
> defaultCategorizationRules
> 
>     "The order is relevant, the categorizer uses the first rule matching - DF"
> 
>     ^OrderedCollection new
>         add: MethodCategorizationRule forAccessors;
>         add: (MethodCategorizationRule whenSelectorMatches: 'initialize*' 
> categorizeIn: #initialization);
                                                                                
                                        #initialize
                                
>         add: (MethodCategorizationRule whenSelectorMatches: 'is*' 
> categorizeIn: #testing);
>         add: (MethodCategorizationRule whenSelectorMatches: 'has*' 
> categorizeIn: #testing);
>         add: (MethodCategorizationRule whenSelectorMatches: '=' categorizeIn: 
> #comparing);
>         add: (MethodCategorizationRule whenSelectorMatches: 'hash' 
> categorizeIn: #comparing);
>         add: (MethodCategorizationRule whenSelectorMatches: 'default*' 
> categorizeIn: #defaults);
>         add: (MethodCategorizationRule whenSelectorMatches: 'printOn:' 
> categorizeIn: #printing);
>         add: (MethodCategorizationRule whenSelectorMatches: 'accept:' 
> categorizeIn: #'visitor accepting');
>         add: (MethodCategorizationRule whenSelectorMatches: 'visit*:' 
> categorizeIn: #visiting);
>         add: (MethodCategorizationRule whenSelectorMatches: 'value' 
> categorizeIn: #evaluating);
>         add: (MethodCategorizationRule 
>                     whenSelectorMatches: 'test*'
>                     andClassInheritsFrom: TestCase
>                     categorizeIn: #tests);
>         add: MethodCategorizationRule usingMostUsedCategoryInSuperClasses;
>         add: MethodCategorizationRule usingMostUsedCategoryInImage;
>         yourself
> 
> 
> 
> We should improve this guy.... ideas to add/change?
> 
> Cheers
> 
> Mariano
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to