protected InitialisationTranslationBase( ExpressionType initType, NewExpression newing, IInitializerSetTranslation initializerTranslations, ITranslationContext context) : this( initType, NewingTranslation.For(newing, context, omitParenthesesIfParameterless : initializerTranslations.Count != 0), initializerTranslations) { }
protected static bool InitHasNoInitializers( NewExpression newing, ICollection <TInitializer> initializers, ITranslationContext context, out ITranslation newingTranslation) { var hasInitializers = initializers.Count != 0; newingTranslation = NewingTranslation.For( newing, context, omitParenthesesIfParameterless: hasInitializers); return(hasInitializers == false); }