C# Class ShaderTools.VisualStudio.Hlsl.Editing.SmartIndenting.SmartIndent

Inheritance: ISmartIndent
Datei anzeigen Open project: tgjones/HlslTools

Public Methods

Method Description
Dispose ( ) : void
FindTotalParentChainIndent ( SyntaxNode node, int position, int indent ) : int
GetDesiredIndentation ( ITextSnapshotLine line ) : int?
SmartIndent ( LanguagePackageBase languagePackage ) : System.Threading

Private Methods

Method Description
DoBlockIndent ( ITextSnapshotLine line ) : int?
DoSmartIndent ( ITextSnapshotLine line ) : int?
GetLeadingWhiteSpace ( string text ) : int
ShouldIndent ( SyntaxNode node ) : bool

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FindTotalParentChainIndent() public static method

public static FindTotalParentChainIndent ( SyntaxNode node, int position, int indent ) : int
node SyntaxNode
position int
indent int
return int

GetDesiredIndentation() public method

public GetDesiredIndentation ( ITextSnapshotLine line ) : int?
line ITextSnapshotLine
return int?

SmartIndent() public method

public SmartIndent ( LanguagePackageBase languagePackage ) : System.Threading
languagePackage LanguagePackageBase
return System.Threading