AspectSharp.Lang.Steps.Semantic.SemanticAnalizerStep.CheckAdvices C# (CSharp) Method

CheckAdvices() private method

private CheckAdvices ( InterceptorDefinitionCollection advices ) : void
advices AspectSharp.Lang.AST.InterceptorDefinitionCollection
return void
		private void CheckAdvices(InterceptorDefinitionCollection advices)
		{
			IDictionary advicesDefined = new Hashtable();

			foreach(InterceptorDefinition advice in advices)
			{
				if (advice.TypeReference.TargetType == TargetTypeEnum.Link)
				{
					AssertKeyExists( _globalInterceptors, advice, advice.TypeReference.LinkRef, "The referenced interceptor is not declared in the global interceptor section" );
				}

				AssertUnique( advicesDefined, advice, advice.TypeReference.ToString(), "Duplicated advices found" );
			}
		}