In This Article

JavaScriptTokenTagger Class

A token tagger for the JavaScript language.

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

Remarks

This type was generated by the Actipro Language Designer tool v26.1.0 (http://www.actiprosoftware.com).

Constructors

JavaScriptTokenTagger(ICodeDocument, IJavaScriptClassificationTypeProvider)

Initializes an instance of the class.

public JavaScriptTokenTagger(ICodeDocument document, IJavaScriptClassificationTypeProvider classificationTypeProvider)
Parameter Type Description
document ICodeDocument

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

classificationTypeProvider IJavaScriptClassificationTypeProvider

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

Properties

ClassificationTypeProvider

The IJavaScriptClassificationTypeProvider that provides classification types used by this token tagger.

public IJavaScriptClassificationTypeProvider ClassificationTypeProvider { get; }

Property Value

IJavaScriptClassificationTypeProvider

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

Remarks

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

Inherited Members

Extension Methods