ShaderTools.Hlsl.Formatting.Formatter.GetEdits C# (CSharp) Method

GetEdits() public static method

public static GetEdits ( SyntaxTree syntaxTree, TextSpan textSpan, FormattingOptions options ) : IList
syntaxTree ShaderTools.Hlsl.Syntax.SyntaxTree
textSpan TextSpan
options FormattingOptions
return IList
        public static IList<Edit> GetEdits(SyntaxTree syntaxTree, TextSpan textSpan, FormattingOptions options)
        {
            // Format.
            var formattingVisitor = new FormattingVisitor(syntaxTree, textSpan, options);
            formattingVisitor.Visit(syntaxTree.Root);

            return formattingVisitor.Edits.Values;
        }