In This Article

VBTokenTagger Class

Represents an ITagger<T> for the Visual Basic language.

public class VBTokenTagger : TokenTagger, ITagger<ITokenTag>, ITagger<IClassificationTag>, ITaggerBase, IOrderable, IKeyedObject
Inheritance:
object TaggerBase<ITokenTag> TokenTagger object
Implements:
ITagger<ITokenTag> ITagger<IClassificationTag> ITaggerBase IOrderable IKeyedObject

Constructors

VBTokenTagger(ICodeDocument, IDotNetClassificationTypeProvider)

Initializes a new instance of the VBTokenTagger class.

public VBTokenTagger(ICodeDocument document, IDotNetClassificationTypeProvider classificationTypes)
Parameter Type Description
document ICodeDocument

The specific ICodeDocument for which this token tagger will be used.

classificationTypes IDotNetClassificationTypeProvider

A IDotNetClassificationTypeProvider that provides classification types used by this token tagger.

Methods

ClassifyToken(IToken)

Returns an IClassificationType for the specified IToken, if one is appropriate.

public override IClassificationType ClassifyToken(IToken token)
Parameter Type Description
token IToken

The IToken to examine.

Returns

IClassificationType:

An IClassificationType for the specified IToken, if one is appropriate.

Remarks

The default implementation of this method automatically returns the classification type if the token is an IMergableToken.

Inherited Members