コード例 #1
0
 protected InitialisationTranslationBase(
     ExpressionType initType,
     NewExpression newing,
     InitializerSetTranslationBase <TInitializer> initializerTranslations,
     ITranslationContext context)
     : this(
         initType,
         NewingTranslation.For(newing, context, omitParenthesesIfParameterless : initializerTranslations.Count != 0),
         initializerTranslations)
 {
 }
コード例 #2
0
        protected InitialisationTranslationBase(
            ExpressionType initType,
            ITranslation newingTranslation,
            InitializerSetTranslationBase <TInitializer> initializerTranslations)
        {
            NodeType                = initType;
            _newingTranslation      = newingTranslation;
            InitializerTranslations = initializerTranslations;
            EstimatedSize           = newingTranslation.EstimatedSize + initializerTranslations.EstimatedSize;

            initializerTranslations.IsLongTranslation = EstimatedSize > 40;
        }