C# Class ShaderTools.Hlsl.Formatting.Formatter

Exibir arquivo Open project: tgjones/HlslTools

Public Methods

Method Description
ApplyEdits ( string code, IList edits ) : string
GetEdits ( SyntaxTree syntaxTree, TextSpan textSpan, FormattingOptions options ) : IList
GetEditsAfterKeystroke ( SyntaxTree syntaxTree, int position, char character, FormattingOptions options ) : IList

Method Details

ApplyEdits() public static method

public static ApplyEdits ( string code, IList edits ) : string
code string
edits IList
return string

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

GetEditsAfterKeystroke() public static method

public static GetEditsAfterKeystroke ( SyntaxTree syntaxTree, int position, char character, FormattingOptions options ) : IList
syntaxTree ShaderTools.Hlsl.Syntax.SyntaxTree
position int
character char
options FormattingOptions
return IList