Beispiel #1
0
        /// <summary>
        /// return AnchorIndentationOperation for the node provided by the given formatting rules
        /// </summary>
        internal static IEnumerable <AnchorIndentationOperation> GetAnchorIndentationOperations(IEnumerable <AbstractFormattingRule> formattingRules, SyntaxNode node, AnalyzerConfigOptions options)
        {
            var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options);

            var list = new List <AnchorIndentationOperation>();

            chainedFormattingRules.AddAnchorIndentationOperations(list, node);
            return(list);
        }
Beispiel #2
0
        /// <summary>
        /// return AnchorIndentationOperation for the node provided by the given formatting rules
        /// </summary>
        internal static IEnumerable <AnchorIndentationOperation> GetAnchorIndentationOperations(IEnumerable <IFormattingRule> formattingRules, SyntaxNode node, OptionSet optionSet)
        {
            var chainedFormattingRules = new ChainedFormattingRules(formattingRules, optionSet);

            var list = new List <AnchorIndentationOperation>();

            chainedFormattingRules.AddAnchorIndentationOperations(list, node);
            return(list);
        }
        /// <summary>
        /// return AnchorIndentationOperation for the node provided by the given formatting rules
        /// </summary>
        internal static IEnumerable<AnchorIndentationOperation> GetAnchorIndentationOperations(IEnumerable<IFormattingRule> formattingRules, SyntaxNode node, OptionSet optionSet)
        {
            var chainedFormattingRules = new ChainedFormattingRules(formattingRules, optionSet);

            var list = new List<AnchorIndentationOperation>();
            chainedFormattingRules.AddAnchorIndentationOperations(list, node);
            return list;
        }