public override PostfixTemplateInfo TryCreateInfo(CSharpPostfixTemplateContext context)
        {
            var withValuesContexts = CSharpPostfixUtils.FindExpressionWithValuesContexts(context);

            return(withValuesContexts.Length == 0
                ? null
                : new PostfixTemplateInfo("writeLine", withValuesContexts, availableInPreciseMode: true));
        }
예제 #2
0
        public override PostfixTemplateInfo TryCreateInfo(CSharpPostfixTemplateContext context)
        {
            var withValuesContexts = CSharpPostfixUtils.FindExpressionWithValuesContexts(context);
            var validatorTypes     = GetPossibleValidatorTypes(context, withValuesContexts);

            return(validatorTypes.Length == 0
                ? null
                : new ValidatePostfixTemplateInfo(withValuesContexts, validatorTypes, availableInPreciseMode: true));
        }