CSharpOutliningSource Class
Represents a C#
language range-based outlining source.
public class CSharpOutliningSource : RangeOutliningSourceBase, IOutliningSource
- Inheritance:
- object RangeOutliningSourceBase object
- Implements:
- IOutliningSource
Constructors
CSharpOutliningSource(ITextSnapshot)
Initializes a new instance of the CSharpOutliningSource
class.
public CSharpOutliningSource(ITextSnapshot snapshot)
Parameter | Type | Description |
---|---|---|
snapshot | ITextSnapshot | The ITextSnapshot to use for this outlining source. |
Properties
CanOutlineCodeLevelConstructs
Gets or sets whether the outlining source can create outlining nodes for code-level constructs such as block statements.
public bool CanOutlineCodeLevelConstructs { get; set; }
Property Value
- bool:
true
if the outlining source can create outlining nodes for code-level constructs such as block statements; otherwise,false
.
Methods
AddNodesFromParseData(IDotNetParseData)
Adds nodes recursively based on AST information in the specified parse data.
public virtual void AddNodesFromParseData(IDotNetParseData parseData)
Parameter | Type | Description |
---|---|---|
parseData | IDotNetParseData | The IDotNetParseData containing AST data. |
AddNodesFromParseData(IDotNetParseData, ITextBufferReader)
Adds nodes recursively based on AST information in the specified parse data.
protected void AddNodesFromParseData(IDotNetParseData parseData, ITextBufferReader reader)
Parameter | Type | Description |
---|---|---|
parseData | IDotNetParseData | The IDotNetParseData containing AST data. |
reader | ITextBufferReader | The ITextBufferReader to use. |
AddNodesRecursive(ITextBufferReader, IAstNode)
Recursively adds outlining nodes for a given IAstNode.
protected virtual void AddNodesRecursive(ITextBufferReader reader, IAstNode astNode)
Parameter | Type | Description |
---|---|---|
reader | ITextBufferReader | The optional ITextBufferReader to use for examining text. |
astNode | IAstNode | The IAstNode to examine. |
Inherited Members
- RangeOutliningSourceBase.AddNode(TextRange, IOutliningNodeDefinition)
- RangeOutliningSourceBase.AddOpenNode(int, IOutliningNodeDefinition)
- RangeOutliningSourceBase.GetNodeAction(ref int, out IOutliningNodeDefinition)
- RangeOutliningSourceBase.TranslateTo(ITextSnapshot)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()