internal RuleRunner(string leftName, string[] rightNames, bool strictMode, IEqualityComparer <ISymbol> symbolComparer, bool includeInternalSymbols, bool withReferences) { _context = new RuleRunnerContext(); _settings = new RuleSettings(strictMode, symbolComparer, includeInternalSymbols, withReferences); _leftName = leftName; _rightNames = rightNames; InitializeRules(); }
public override void Initialize(RuleRunnerContext context) { // StrictMode scenario should be handled by MembersMustExist rule. if (!Settings.StrictMode) { context.RegisterOnMemberSymbolAction(RunOnMemberSymbol); } }
/// <summary> /// Method that is called when the rules are created by the <see cref="IRuleRunner"/> in /// order to do the initial setup for the rule. /// </summary> /// <param name="context">The context that the <see cref="IRuleRunner"/> creates holding callbacks to get the differences.</param> public override void Initialize(RuleRunnerContext context) { // This rule should only run when not in strict mode. // When running in strict mode this diff will be handled by MembersMustExist rule. if (!Settings.StrictMode) { context.RegisterOnMemberSymbolAction(RunOnMemberMapperAction); } }
public override void Initialize(RuleRunnerContext context) => context.RegisterOnTypeSymbolAction(RunOnTypeSymbol);
public override void Initialize(RuleRunnerContext context) { context.RegisterOnAssemblySymbolAction(RunOnAssemblySymbol); }
internal RuleRunner(bool strictMode) { _context = new RuleRunnerContext(); _settings = new RuleSettings(strictMode); InitializeRules(); }