public int GetIndentSize() { var indentSize = _typeNameTranslation.GetIndentSize(); switch (_boundTranslationCount) { case 0: return(indentSize); case 1: return(indentSize + _boundTranslations[0].GetIndentSize()); default: for (var i = 0; ;) { indentSize += _boundTranslations[i].GetIndentSize(); ++i; if (i == _boundTranslationCount) { return(indentSize); } } } }
public int GetIndentSize() { _initializerTranslations.IsLongTranslation = TranslationSize > 40; return(_newingTranslation.GetIndentSize() + _initializerTranslations.GetIndentSize()); }
public int GetIndentSize() { if (_isEmptyTranslation) { return(0); } var indentSize = _translation.GetIndentSize(); if (_indentContents || _writeBraces) { var indentLength = _context.Settings.IndentLength; var translationIndentSize = _translation.GetLineCount() * indentLength; indentSize += translationIndentSize; if (_writeBraces) { indentSize += 2 * indentLength; if (_indentContents) { indentSize += translationIndentSize; } } } return(indentSize); }
public int GetIndentSize() { var indentSize = _subjectTranslation.GetIndentSize(); indentSize += _isPartOfMethodCallChain ? _methodInvocationTranslation.GetLineCount() * _context.Settings.IndentLength : _methodInvocationTranslation.GetLineCount(); return(indentSize); }
public int GetIndentSize() { var indentSize = _parameterTranslation.GetIndentSize(); if (_typeNameTranslation != null) { indentSize += _typeNameTranslation.GetIndentSize(); } return(indentSize); }
public int GetIndentSize() => _translation.GetIndentSize();
public int GetIndentSize() => _subject.GetIndentSize() + _parameters.GetIndentSize();
public int GetIndentSize() => _typeCanBeNull ? 0 : _typeNameTranslation?.GetIndentSize() ?? 0;
public int GetIndentSize() => _statementTranslation.GetIndentSize();
public int GetIndentSize() { return(_operandTranslation.GetIndentSize() + _typeNameTranslation.GetIndentSize()); }
public int GetIndentSize() => _negatedValue.GetIndentSize();
public int GetIndentSize() { return(_castTypeNameTranslation.GetIndentSize() + _castValueTranslation.GetIndentSize()); }
public int GetIndentSize() => _operand.GetIndentSize();
public int GetIndentSize() => _thrownItemTranslation?.GetIndentSize() ?? 0;
public int GetIndentSize() => _emptyArrayNewing.GetIndentSize();
public int GetIndentSize() { return(Parameters.None ? _typeNameTranslation.GetIndentSize() : Parameters.GetIndentSize()); }
public int GetIndentSize() => _returnValueTranslation.GetIndentSize();
public int GetIndentSize() => _typeNameTranslation.GetIndentSize();
public int GetIndentSize() => _valueTranslation.GetIndentSize();
public int GetIndentSize() => _lambdaTranslation.GetIndentSize();
public int GetIndentSize() { return(_testedValueTranslation.GetIndentSize() + _testedTypeNameTranslation.GetIndentSize()); }
public int GetIndentSize() => _parameterTranslation.GetIndentSize();
public int GetIndentSize() { return(_binaryConditionLeftTranslation.GetIndentSize() + _binaryConditionRightTranslation.GetIndentSize() + _binaryConditionRightTranslation.GetLineCount() * _context.Settings.IndentLength); }
public int GetIndentSize() => _subjectTranslation.GetIndentSize();
public int GetIndentSize() => _exceptionTypeTranslation.GetIndentSize();
public int GetIndentSize() => _quotedLambdaTranslation.GetIndentSize();
public int GetIndentSize() => _loopBodyTranslation.GetIndentSize();
public int GetIndentSize() => _value.GetIndentSize();
public int GetIndentSize() => _subject?.GetIndentSize() ?? 0;