当前位置: 首页>>代码示例>>C#>>正文


C# RuleDispatcher类代码示例

本文整理汇总了C#中RuleDispatcher的典型用法代码示例。如果您正苦于以下问题:C# RuleDispatcher类的具体用法?C# RuleDispatcher怎么用?C# RuleDispatcher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RuleDispatcher类属于命名空间,在下文中一共展示了RuleDispatcher类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitBranch");
			dispatcher.Register(this, "VisitCompare");
			dispatcher.Register(this, "VisitEnd");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:7,代码来源:ArrayIndexOfRule.cs

示例2: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			if (m_enabled)
			{
				dispatcher.Register(this, "VisitBegin");
				dispatcher.Register(this, "VisitCall");
			}
		}
开发者ID:dbremner,项目名称:smokey,代码行数:8,代码来源:MessageBoxOptionsRule.cs

示例3: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBegin");	
			dispatcher.Register(this, "VisitReturn");	
			dispatcher.Register(this, "VisitCast");	
			dispatcher.Register(this, "VisitInstruction");	
			dispatcher.Register(this, "VisitEnd");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:8,代码来源:EqualsRequiresNullCheckRule.cs

示例4: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitStoreArg");
			dispatcher.Register(this, "VisitStoreLocal");
			dispatcher.Register(this, "VisitStoreField");
			dispatcher.Register(this, "VisitStoreStaticField");
			dispatcher.Register(this, "VisitEnd");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:9,代码来源:UnusedStoreRule.cs

示例5: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			m_dispatcher = dispatcher;

			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitNew");
			dispatcher.Register(this, "VisitCall");
			dispatcher.Register(this, "VisitEnd");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:9,代码来源:RandomUsedOnceRule.cs

示例6: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitType");
			dispatcher.Register(this, "VisitField");
			dispatcher.Register(this, "VisitLoadField");
			dispatcher.Register(this, "VisitLoadFieldAddr");
			dispatcher.Register(this, "VisitLoadStaticField");
			dispatcher.Register(this, "VisitLoadStaticFieldAddress");
			dispatcher.Register(this, "VisitFini");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:10,代码来源:UnusedFieldRule.cs

示例7: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			m_dispatcher = dispatcher;
			
			dispatcher.Register(this, "VisitAssembly");
			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitCall");
			dispatcher.Register(this, "VisitStoreStatic");
			dispatcher.Register(this, "VisitEnd");
			dispatcher.Register(this, "VisitCallGraph");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:11,代码来源:StaticSetterRule.cs

示例8: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitMethodBegin");
			dispatcher.Register(this, "VisitConditional");	
			dispatcher.Register(this, "VisitCall");	
			dispatcher.Register(this, "VisitNewObj");	
			dispatcher.Register(this, "VisitThrow");	
			dispatcher.Register(this, "VisitMethodEnd");
			dispatcher.Register(this, "VisitEnd");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:11,代码来源:DisposableRule.cs

示例9: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitType");
			dispatcher.Register(this, "VisitEndTypes");
			dispatcher.Register(this, "VisitMethod");
			dispatcher.Register(this, "VisitCall");
			dispatcher.Register(this, "VisitNewObj");
			dispatcher.Register(this, "VisitInitObj");
			dispatcher.Register(this, "VisitFini");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:11,代码来源:NotInstantiatedRule.cs

示例10: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitMethod");
			dispatcher.Register(this, "VisitCall");
			dispatcher.Register(this, "VisitLoadField");
			dispatcher.Register(this, "VisitLoadFieldAdr");
			dispatcher.Register(this, "VisitStoreField");
			dispatcher.Register(this, "VisitSLoadField");
			dispatcher.Register(this, "VisitSStoreField");
			dispatcher.Register(this, "VisitEnd");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:12,代码来源:MaximizeCohesionRule.cs

示例11: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBegin");
			dispatcher.Register(this, "VisitMethod");
			dispatcher.Register(this, "VisitCast");
			dispatcher.Register(this, "VisitCall");
			dispatcher.Register(this, "VisitInit");
			dispatcher.Register(this, "VisitLoadField");
			dispatcher.Register(this, "VisitLoadStaticField");
			dispatcher.Register(this, "VisitNew");
			dispatcher.Register(this, "VisitStoreField");
			dispatcher.Register(this, "VisitStoreStaticField");
			dispatcher.Register(this, "VisitEnd");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:14,代码来源:GodClassRule.cs

示例12: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
#if !TEST
			string convention = Settings.Get("naming", "mono");
			if (convention == "jurassic")
#endif
			{
				dispatcher.Register(this, "VisitBegin");
				dispatcher.Register(this, "VisitType");
				dispatcher.Register(this, "VisitMethod");
				dispatcher.Register(this, "VisitJurassicFields");
				dispatcher.Register(this, "VisitEvent");
				dispatcher.Register(this, "VisitProperty");
				dispatcher.Register(this, "VisitEnd");
			}
		}
开发者ID:dbremner,项目名称:smokey,代码行数:16,代码来源:JurassicNamingRule.cs

示例13: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitMethod");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:4,代码来源:TooManyArgsRule.cs

示例14: Register

		public override void Register(RuleDispatcher dispatcher) 
		{
			dispatcher.Register(this, "VisitBinary");
			dispatcher.Register(this, "VisitFini");
		}
开发者ID:dbremner,项目名称:smokey,代码行数:5,代码来源:UncheckedAssemblyRule.cs

示例15: DoRunTest

        private void DoRunTest(Rule rule, List<TypeDefinition> types, AssemblyCache cache)
        {
            RuleDispatcher dispatcher = new RuleDispatcher();
            rule.Register(dispatcher);
            m_failed = false;

            dispatcher.Dispatch(new BeginTesting());
            dispatcher.Dispatch(Assembly);

            dispatcher.Dispatch(new BeginTypes());
            foreach (TypeDefinition t in types)
                dispatcher.Dispatch(t);
            dispatcher.Dispatch(new EndTypes());

            foreach (MethodInfo info in cache.Methods)
            {
                dispatcher.Dispatch(info);
            }

            dispatcher.DispatchCallGraph();
            dispatcher.Dispatch(new EndTesting());
        }
开发者ID:dbremner,项目名称:smokey,代码行数:22,代码来源:AssemblyTest.cs


注:本文中的RuleDispatcher类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。