/// <summary> /// Method invoked after aspects have been implemented for each target declaration. /// </summary> /// <param name="targetDeclaration">Declaration on which targets have been applied.</param> /// <param name="aspectWeavers">Ordered list of aspect weavers applied to this declaration.</param> public void AfterImplementAspects( MetadataDeclaration targetDeclaration, LaosAspectWeaver[] aspectWeavers ) { // We only remember a list of the types that have been enhanced. TypeDefDeclaration typeDef = targetDeclaration as TypeDefDeclaration; if ( typeDef == null ) { if ( targetDeclaration is FieldDefDeclaration ) typeDef = ((FieldDefDeclaration) targetDeclaration).DeclaringType; else if ( targetDeclaration is MethodDefDeclaration ) typeDef = ((MethodDefDeclaration) targetDeclaration).DeclaringType; } if (typeDef != null) this.types.AddIfAbsent( typeDef ); }
void ILaosAwareness.ValidateAspects(MetadataDeclaration targetDeclaration, LaosAspectWeaver[] aspectWeavers) { }
void ILaosAwareness.BeforeImplementAspects(MetadataDeclaration targetDeclaration, LaosAspectWeaver[] aspectWeavers) { }