2
Vote

Criteria InheritsType and Implements Error

description

hi
i want to use this two Criteria : InheritsType and Implements but when i use each of them compiler sent an error:

[SelectTypes("Implements:'*INotifyPropertyChanged'")]
public void VMs() { }

Error 3 Automation.ViewModel.Aspects.ViewModelAspect::VMs
Error parsing pointcut: Unknown criteria 'Implements: SheepAspect.Saql.Ast.LiteralValueNode' for SheepAspect.Pointcuts.Impl.TypePointcut ViewModel

and

[SelectTypes("InheritsType:Namespace:'System.Collections'")]
public void VMs() { }

Error 2 Automation.ViewModel.Aspects.ViewModelAspect::VMs

Error parsing pointcut: Unknown criteria 'InheritsType: Namespace: SheepAspect.Saql.Ast.LiteralValueNode' for SheepAspect.Pointcuts.Impl.TypePointcut ViewModel

im using sheepAspect version 0.3.0.15
please tell me whats the problem?

comments

VoiceOfWisdom wrote Dec 19, 2013 at 12:12 AM

I am having the same issue. I did some searching through the code and it does not look like either Implements or InheritsType is implemented anywhere.

wrote Dec 19, 2013 at 12:13 AM

VoiceOfWisdom wrote Dec 19, 2013 at 12:23 AM

Hah! Got it! They were renamed to AssignableToType and ImplementsType. It would be nice if there was a document that has the Saql syntax written up in it, it has a ton of power, its just not very well documented.

VoiceOfWisdom wrote Dec 19, 2013 at 12:26 AM

Also, make sure and specify your the namespace your type is in. The syntax I ended up using is

[SelectPropertyMethods("Setter & InType:AssignableToType:'CustomEntityFramework.DataBaseObject'")]

khatarat wrote Dec 19, 2013 at 7:29 AM

thanks for your help.im going to test this one.

i think that there is more items that changed and not documented. its very difficult to write just one criteria phrase. it takes very much time to do.