public override PostfixTemplateInfo TryCreateInfo(CSharpPostfixTemplateContext context) { var withValuesContexts = CSharpPostfixUtils.FindExpressionWithValuesContexts(context); return(withValuesContexts.Length == 0 ? null : new PostfixTemplateInfo("writeLine", withValuesContexts, availableInPreciseMode: true)); }
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)); }