本文整理汇总了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");
}
示例2: Register
public override void Register(RuleDispatcher dispatcher)
{
if (m_enabled)
{
dispatcher.Register(this, "VisitBegin");
dispatcher.Register(this, "VisitCall");
}
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
}
示例13: Register
public override void Register(RuleDispatcher dispatcher)
{
dispatcher.Register(this, "VisitMethod");
}
示例14: Register
public override void Register(RuleDispatcher dispatcher)
{
dispatcher.Register(this, "VisitBinary");
dispatcher.Register(this, "VisitFini");
}
示例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());
}