11 instantiations of RuleValidation
System.Workflow.Activities (11)
Rules\DeclarativeExpressionConditionDeclaration.cs (2)
266
RuleValidation validation = new
RuleValidation
(contextActivity);
396
RuleValidation ruleValidator = new
RuleValidation
(activity, typeProvider, WorkflowCompilationContext.Current.CheckTypes);
Rules\Design\Dialogs\ConditionBrowserDialog.cs (1)
126
RuleValidation validator = new
RuleValidation
(this.Activity, typeProvider, false);
Rules\Design\Dialogs\RuleConditionDialog.cs (2)
63
RuleValidation validation = new
RuleValidation
(activity, typeProvider, false);
76
RuleValidation validation = new
RuleValidation
(activityType, typeProvider);
Rules\Design\Dialogs\RuleSetBrowserDialog.cs (1)
107
RuleValidation validation = new
RuleValidation
(this.Activity, typeProvider, false);
Rules\Design\Dialogs\RuleSetDialog.cs (2)
67
RuleValidation validation = new
RuleValidation
(activity, typeProvider, false);
78
RuleValidation validation = new
RuleValidation
(activityType, typeProvider);
Rules\RuleEngine.cs (1)
26
: this(ruleSet, new
RuleValidation
(objectType, null), null)
Rules\RuleSet.cs (1)
156
RuleValidation validation = new
RuleValidation
(activityType, null);
Rules\RuleSetReference.cs (1)
152
RuleValidation validation = new
RuleValidation
(activity, typeProvider, WorkflowCompilationContext.Current.CheckTypes);
107 references to RuleValidation
System.Workflow.Activities (107)
Rules\ArithmeticLiteral.cs (1)
303
RuleValidation
validator,
Rules\DeclarativeExpressionConditionDeclaration.cs (6)
21
public abstract bool Validate(
RuleValidation
validation);
23
public abstract ICollection<string> GetDependencies(
RuleValidation
validation);
155
public override bool Validate(
RuleValidation
validation)
188
public override ICollection<string> GetDependencies(
RuleValidation
validation)
266
RuleValidation
validation = new RuleValidation(contextActivity);
396
RuleValidation
ruleValidator = new RuleValidation(activity, typeProvider, WorkflowCompilationContext.Current.CheckTypes);
Rules\Design\Dialogs\ConditionBrowserDialog.cs (1)
126
RuleValidation
validator = new RuleValidation(this.Activity, typeProvider, false);
Rules\Design\Dialogs\RuleConditionDialog.cs (2)
63
RuleValidation
validation = new RuleValidation(activity, typeProvider, false);
76
RuleValidation
validation = new RuleValidation(activityType, typeProvider);
Rules\Design\Dialogs\RuleSetBrowserDialog.cs (1)
107
RuleValidation
validation = new RuleValidation(this.Activity, typeProvider, false);
Rules\Design\Dialogs\RuleSetDialog.cs (2)
67
RuleValidation
validation = new RuleValidation(activity, typeProvider, false);
78
RuleValidation
validation = new RuleValidation(activityType, typeProvider);
Rules\Executor.cs (11)
202
private
RuleValidation
validation;
207
public RuleExecution(
RuleValidation
validation, object thisObject)
226
public RuleExecution(
RuleValidation
validation, object thisObject, ActivityExecutionContext activityExecutionContext)
249
public
RuleValidation
Validation
354
internal static IList<RuleState> Preprocess(RuleChainingBehavior behavior, ICollection<Rule> rules,
RuleValidation
validation, Tracer tracer)
468
private static void AnalyzeRules(RuleChainingBehavior behavior, List<RuleState> ruleStates,
RuleValidation
validation, Tracer tracer)
620
private static RuleSymbolInfo AnalyzeRule(RuleChainingBehavior behavior, Rule rule,
RuleValidation
validator, Tracer tracer)
651
private static ICollection<string> GetActionSideEffects(RuleChainingBehavior behavior, IList<RuleAction> actions,
RuleValidation
validation)
706
MethodInfo conversion =
RuleValidation
.FindImplicitConversion(operandType, toType, out error);
753
MethodInfo conversion =
RuleValidation
.FindExplicitConversion(operandType, toType, out error);
811
return
RuleValidation
.StandardImplicitConversion(operandType, toType, null, out error);
Rules\Expressions.cs (17)
20
RuleExpressionInfo Validate(
RuleValidation
validation, bool isWritten);
31
internal abstract RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten);
45
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
114
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
179
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
897
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
1052
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
1264
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
1726
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
1885
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
1987
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
2103
canConvert =
RuleValidation
.ExplicitConversionSpecified(fromType, toType, out error);
2255
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
2634
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
2911
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
3212
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
3306
if (!
RuleValidation
.StandardImplicitConversion(parameterInfo.ExpressionType, resultType, init, out error))
Rules\Literal.cs (16)
417
RuleValidation
validator,
493
RuleValidation
validator,
580
(
RuleValidation
.TypesAreAssignable(rhsType0, underlyingType, rhsExpression, out error)))
602
else if (
RuleValidation
.TypesAreAssignable(rhsType0, underlyingType, rhsExpression, out error))
650
(
RuleValidation
.TypesAreAssignable(lhsType0, underlyingType, lhsExpression, out error)))
668
else if (
RuleValidation
.TypesAreAssignable(lhsType0, underlyingType, lhsExpression, out error))
722
if (
RuleValidation
.ImplicitConversion(lhs, parm1) &&
723
RuleValidation
.ImplicitConversion(rhs, parm2))
902
return (
RuleValidation
.ImplicitConversion(arg1, parm1) &&
903
RuleValidation
.ImplicitConversion(arg2, parm2));
919
RuleValidation
.ImplicitConversion(arg1, parm1) &&
920
RuleValidation
.ImplicitConversion(arg2, parm2))
927
RuleValidation
.ImplicitConversion(arg1, parm1) &&
928
RuleValidation
.ImplicitConversion(arg2, parm2))
935
RuleValidation
.ImplicitConversion(arg1, parm1) &&
936
RuleValidation
.ImplicitConversion(arg2, parm2))
Rules\Parser\Parser.cs (10)
235
internal void SetTypeMemberCompletions(Type computedType, Type thisType, bool isStatic,
RuleValidation
validation)
268
if (
RuleValidation
.TypesAreAssignable(computedType, extension.AssumedDeclaringType, null, out error))
371
completions =
RuleValidation
.GetConstructors(types, flags);
409
internal void SetMethodCompletions(Type computedType, Type thisType, string methodName, bool includeStatic, bool includeInstance,
RuleValidation
validation)
451
(
RuleValidation
.TypesAreAssignable(computedType, extension.AssumedDeclaringType, null, out error)))
612
private
RuleValidation
validation;
628
internal Parser(
RuleValidation
validation)
925
private
RuleValidation
Validator
1039
if (!
RuleValidation
.IsValidBooleanResult(resultType))
2550
if (
RuleValidation
.TypesAreAssignable(argPrimitiveType, parameterType, argPrimitive, out error))
Rules\References.cs (3)
37
private
RuleValidation
validation;
41
public RuleAnalysis(
RuleValidation
validation, bool forWrites)
47
internal
RuleValidation
Validation
Rules\Rule.cs (2)
138
internal void Validate(
RuleValidation
validation)
179
private static void ValidateRuleActions(ICollection<RuleAction> ruleActions,
RuleValidation
validator)
Rules\RuleAction.cs (8)
18
public abstract bool Validate(
RuleValidation
validator);
20
public abstract ICollection<string> GetSideEffects(
RuleValidation
validation);
27
public override bool Validate(
RuleValidation
validator)
40
public override ICollection<string> GetSideEffects(
RuleValidation
validation)
87
public override bool Validate(
RuleValidation
validator)
178
public override ICollection<string> GetSideEffects(
RuleValidation
validation)
232
public override bool Validate(
RuleValidation
validator)
257
public override ICollection<string> GetSideEffects(
RuleValidation
validation)
Rules\RuleAttributes.cs (4)
25
internal abstract bool Validate(
RuleValidation
validation, MemberInfo member, Type contextType, ParameterInfo[] parameters);
50
internal override bool Validate(
RuleValidation
validation, MemberInfo member, Type contextType, ParameterInfo[] parameters)
310
internal override bool Validate(
RuleValidation
validation, MemberInfo member, Type contextType, ParameterInfo[] parameters)
322
private bool ValidateInvokeAttribute(
RuleValidation
validation, MemberInfo member, Type contextType, Stack<MemberInfo> methodStack)
Rules\RuleEngine.cs (3)
17
private
RuleValidation
validation;
20
public RuleEngine(RuleSet ruleSet,
RuleValidation
validation)
30
internal RuleEngine(RuleSet ruleSet,
RuleValidation
validation, ActivityExecutionContext executionContext)
Rules\RuleSet.cs (3)
35
private
RuleValidation
cachedValidation;
93
public bool Validate(
RuleValidation
validation)
156
RuleValidation
validation = new RuleValidation(activityType, null);
Rules\RuleSetReference.cs (1)
152
RuleValidation
validation = new RuleValidation(activity, typeProvider, WorkflowCompilationContext.Current.CheckTypes);
Rules\RuleValidation.cs (9)
2289
accessorMethod.DeclaringType.Assembly,
RuleValidation
.IsPrivate(accessorMethod),
RuleValidation
.IsInternal(accessorMethod), accessorMethod.IsStatic);
2297
accessorMethod.DeclaringType.Assembly,
RuleValidation
.IsPrivate(accessorMethod),
RuleValidation
.IsInternal(accessorMethod), accessorMethod.IsStatic);
2467
internal Argument(CodeExpression expr,
RuleValidation
validation)
2548
if (!
RuleValidation
.TypesAreAssignable(argument.type, this.type, argument.expression, out error))
2597
bool thisConvertsToOther =
RuleValidation
.TypesAreAssignable(this.type, otherParam.type, null, out dummy);
2598
bool otherConvertsToThis =
RuleValidation
.TypesAreAssignable(otherParam.type, this.type, null, out dummy);
2714
internal int CompareMember(Type targetType, CandidateMember other, List<Argument> arguments,
RuleValidation
validator)
Rules\Statements.cs (4)
15
internal abstract bool Validate(
RuleValidation
validation);
37
internal override bool Validate(
RuleValidation
validation)
113
internal override bool Validate(
RuleValidation
validation)
166
if (!
RuleValidation
.TypesAreAssignable(expressionType, assignmentType, assignStatement.Right, out error))
Rules\Walker.cs (3)
56
internal override RuleExpressionInfo Validate(CodeExpression expression,
RuleValidation
validation, bool isWritten)
111
public static RuleExpressionInfo Validate(
RuleValidation
validation, CodeExpression expression, bool isWritten)
251
internal static bool Validate(
RuleValidation
validation, CodeStatement statement)