In This Article

XmlCodeBlockFinder Class

Provides a XML language code block finder service.

public class XmlCodeBlockFinder : LLParseDataCodeBlockFinder, ICodeBlockFinder
Inheritance:
object LLParseDataCodeBlockFinder object
Implements:
ICodeBlockFinder

Constructors

XmlCodeBlockFinder()

Initializes an instance of the class.

public XmlCodeBlockFinder()

Methods

GetSnapshotRange(TextSnapshotRange, IAstNode, TextSnapshotRange)

Returns a TextSnapshotRange for the specified IAstNode.

protected override TextSnapshotRange GetSnapshotRange(TextSnapshotRange searchSnapshotRange, IAstNode astNode, TextSnapshotRange astNodeSnapshotRange)
Parameter Type Description
searchSnapshotRange TextSnapshotRange

The TextSnapshotRange from which to begin the search.

astNode IAstNode

The IAstNode that was found to contain the search snapshot range.

astNodeSnapshotRange TextSnapshotRange

The full snapshot range of the IAstNode.

Returns

TextSnapshotRange:

A TextSnapshotRange for the specified IAstNode.

Remarks

The default implementation of this method returns the astNodeSnapshotRange value. This method can optionally be used to adjust the snapshot range for an AST node as necessary.

Inherited Members