C# 클래스 AvalonStudio.Languages.CSharp.IndentationReformatter.Block

An indentation block. Tracks the state of the indentation.
파일 보기 프로젝트 열기: VitalElement/AvalonStudio

공개 프로퍼티들

프로퍼티 타입 설명
Bracket char
Continuation bool
InnerIndent string
LastWord string
OneLineBlock int
OuterIndent string
PreviousOneLineBlock int
StartLine int

공개 메소드들

메소드 설명
Indent ( IndentationSettings set ) : void
Indent ( string indentationString ) : void
ResetOneLineBlock ( ) : void
ToString ( ) : string

메소드 상세

Indent() 공개 메소드

public Indent ( IndentationSettings set ) : void
set IndentationSettings
리턴 void

Indent() 공개 메소드

public Indent ( string indentationString ) : void
indentationString string
리턴 void

ResetOneLineBlock() 공개 메소드

public ResetOneLineBlock ( ) : void
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

Bracket 공개적으로 프로퍼티

The type of bracket that opened this block (, [ or {
public char Bracket
리턴 char

Continuation 공개적으로 프로퍼티

Gets whether there's currently a line continuation going on inside this block.
public bool Continuation
리턴 bool

InnerIndent 공개적으로 프로퍼티

The indentation inside the block.
public string InnerIndent
리턴 string

LastWord 공개적으로 프로퍼티

The last word that was seen inside this block. Because parenthesis open a sub-block and thus don't change their parent's LastWord, this property can be used to identify the type of block statement (if, while, switch) at the position of the '{'.
public string LastWord
리턴 string

OneLineBlock 공개적으로 프로퍼티

Gets whether there's currently a 'one-line-block' going on. 'one-line-blocks' occur with if statements that don't use '{}'. They are not represented by a Block instance on the stack, but are instead handled similar to line continuations. This property is an integer because there might be multiple nested one-line-blocks. As soon as there is a finished statement, OneLineBlock is reset to 0.
public int OneLineBlock
리턴 int

OuterIndent 공개적으로 프로퍼티

The indentation outside of the block.
public string OuterIndent
리턴 string

PreviousOneLineBlock 공개적으로 프로퍼티

The previous value of one-line-block before it was reset. Used to restore the indentation of 'else' to the correct level.
public int PreviousOneLineBlock
리턴 int

StartLine 공개적으로 프로퍼티

Gets the line number where this block started.
public int StartLine
리턴 int