C# Class ReSharperNTriplesLanguage.N3CodeFormatter

Inheritance: CodeFormatterBase
Show file Open project: xsburg/ReSharper.NTriples

Public Methods

Method Description
CreateSpace ( string indent, ITreeNode rightNonSpace, ITreeNode replacedSpace ) : ITreeNode[]
Format ( ITreeNode firstElement, ITreeNode lastElement, CodeFormatProfile profile, IProgressIndicator pi, IContextBoundSettingsStore overrideSettingsStore = null ) : ITreeRange
FormatDeletedNodes ( ITreeNode parent, ITreeNode prevNode, ITreeNode nextNode ) : void
FormatInsertedNodes ( ITreeNode nodeFirst, ITreeNode nodeLast, bool formatSurround ) : void
FormatInsertedRange ( ITreeNode nodeFirst, ITreeNode nodeLast, ITreeRange origin ) : ITreeRange
FormatReplacedNode ( ITreeNode oldNode, ITreeNode newNode ) : void
GetMinimalSeparator ( ITokenNode leftToken, ITokenNode rightToken ) : ITokenNode
IsWhitespaceToken ( ITokenNode token ) : bool
N3CodeFormatter ( Lifetime lifetime, N3Language language, ISettingsStore settingsStore, ISettingsOptimization settingsOptimization ) : JetBrains.Application.Progress

Protected Methods

Method Description
IsFormatNextSpaces ( CodeFormatProfile profile ) : bool

Private Methods

Method Description
GetFirstAndLastNode ( ITreeNode firstElement, ITreeNode lastElement, ITreeNode &firstNode, ITreeNode &lastNode ) : void
GetFirstNode ( ITreeNode firstChild, ITreeNode commonParent ) : ITreeNode
GetLastNode ( ITreeNode lastChild, ITreeNode commonParent ) : ITreeNode

Method Details

CreateSpace() public method

public CreateSpace ( string indent, ITreeNode rightNonSpace, ITreeNode replacedSpace ) : ITreeNode[]
indent string
rightNonSpace ITreeNode
replacedSpace ITreeNode
return ITreeNode[]

Format() public method

public Format ( ITreeNode firstElement, ITreeNode lastElement, CodeFormatProfile profile, IProgressIndicator pi, IContextBoundSettingsStore overrideSettingsStore = null ) : ITreeRange
firstElement ITreeNode
lastElement ITreeNode
profile CodeFormatProfile
pi IProgressIndicator
overrideSettingsStore IContextBoundSettingsStore
return ITreeRange

FormatDeletedNodes() public method

public FormatDeletedNodes ( ITreeNode parent, ITreeNode prevNode, ITreeNode nextNode ) : void
parent ITreeNode
prevNode ITreeNode
nextNode ITreeNode
return void

FormatInsertedNodes() public method

public FormatInsertedNodes ( ITreeNode nodeFirst, ITreeNode nodeLast, bool formatSurround ) : void
nodeFirst ITreeNode
nodeLast ITreeNode
formatSurround bool
return void

FormatInsertedRange() public method

public FormatInsertedRange ( ITreeNode nodeFirst, ITreeNode nodeLast, ITreeRange origin ) : ITreeRange
nodeFirst ITreeNode
nodeLast ITreeNode
origin ITreeRange
return ITreeRange

FormatReplacedNode() public method

public FormatReplacedNode ( ITreeNode oldNode, ITreeNode newNode ) : void
oldNode ITreeNode
newNode ITreeNode
return void

GetMinimalSeparator() public method

public GetMinimalSeparator ( ITokenNode leftToken, ITokenNode rightToken ) : ITokenNode
leftToken ITokenNode
rightToken ITokenNode
return ITokenNode

IsFormatNextSpaces() protected method

protected IsFormatNextSpaces ( CodeFormatProfile profile ) : bool
profile CodeFormatProfile
return bool

IsWhitespaceToken() public method

public IsWhitespaceToken ( ITokenNode token ) : bool
token ITokenNode
return bool

N3CodeFormatter() public method

public N3CodeFormatter ( Lifetime lifetime, N3Language language, ISettingsStore settingsStore, ISettingsOptimization settingsOptimization ) : JetBrains.Application.Progress
lifetime Lifetime
language N3Language
settingsStore ISettingsStore
settingsOptimization ISettingsOptimization
return JetBrains.Application.Progress