GH_SourceCodeBlock

References
public class GH_SourceCodeBlock
Represents a continuous collection of source code lines with similar READONLY flags.

Constructors

GH_SourceCodeBlock

#
public GH_SourceCodeBlock(int i0, int i1, bool b_readonly)
Create a new block.
i0 (int)Line index for start of block
i1 (int)Line index for end of block
b_readonly (bool)State flag of block

Fields

m_0

#
protected int m_0

m_1

#
protected int m_1

m_readonly

#
protected bool m_readonly

Properties

End

#
public int End { get; }
Inclusive end line index of block.

LineCount

#
public int LineCount { get; }
Number of lines contained in this block.

Readonly

#
public bool Readonly { get; }
Gets the Readonly flag for this block.

Start

#
public int Start { get; }
Inclusive start line index of block.

Methods

Grow

#
public void Grow(int line_index)
Grow this block to include the given line index.
line_index (int)