public ValidatePostfixTemplateInfo( [NotNull] IEnumerable <PostfixExpressionContext> expressions, ITypeElement[] validatorTypes, PostfixTemplateTarget target = PostfixTemplateTarget.Expression, bool availableInPreciseMode = true, string matchingText = null) : base("validate", expressions, target, availableInPreciseMode, matchingText) { ValidatorTypes = validatorTypes; }
public PostfixTemplateInfo( [NotNull] string text, [NotNull] PostfixExpressionContext expression, PostfixTemplateTarget target = PostfixTemplateTarget.Expression) { Multiplier = 0; myText = text.ToLowerInvariant(); myShortcut = text; myTarget = target; myImages = new[] { new PostfixExpressionContextImage(expression) }; myExecutionContext = expression.PostfixContext.ExecutionContext; }
public PostfixTemplateInfo( [NotNull] string text, [NotNull] IEnumerable <PostfixExpressionContext> expressions, PostfixTemplateTarget target = PostfixTemplateTarget.Expression) { Multiplier = 0; myText = text.ToLowerInvariant(); myShortcut = text; myTarget = target; myImages = new List <PostfixExpressionContextImage>(); foreach (var expressionContext in expressions) { myImages.Add(new PostfixExpressionContextImage(expressionContext)); myExecutionContext = expressionContext.PostfixContext.ExecutionContext; } if (myExecutionContext == null) { throw new ArgumentException("Expecting non-empty sequence of expressions", "expressions"); } }
public CheckForNullPostfixTemplateInfo( [NotNull] string text, [NotNull] PostfixExpressionContext expression, bool checkNotNull, PostfixTemplateTarget target) : base(text, expression, target) { CheckNotNull = checkNotNull; }