/// <summary> /// return AdjustSpacesOperation for the node provided by the given formatting rules /// </summary> internal static AdjustSpacesOperation GetAdjustSpacesOperation(IEnumerable <AbstractFormattingRule> formattingRules, SyntaxToken previousToken, SyntaxToken currentToken, AnalyzerConfigOptions options) { var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); return(chainedFormattingRules.GetAdjustSpacesOperation(previousToken, currentToken)); }
/// <summary> /// return AdjustSpacesOperation for the node provided by the given formatting rules /// </summary> internal static AdjustSpacesOperation GetAdjustSpacesOperation(IEnumerable <IFormattingRule> formattingRules, SyntaxToken previousToken, SyntaxToken currentToken, OptionSet optionSet) { var chainedFormattingRules = new ChainedFormattingRules(formattingRules, optionSet); return(chainedFormattingRules.GetAdjustSpacesOperation(previousToken, currentToken)); }
/// <summary> /// return AdjustSpacesOperation for the node provided by the given formatting rules /// </summary> internal static AdjustSpacesOperation GetAdjustSpacesOperation(IEnumerable<IFormattingRule> formattingRules, SyntaxToken previousToken, SyntaxToken currentToken, OptionSet optionSet) { var chainedFormattingRules = new ChainedFormattingRules(formattingRules, optionSet); return chainedFormattingRules.GetAdjustSpacesOperation(previousToken, currentToken); }