TokenInfo Class

TokenInfo Class

 

Provides information about a particular token encountered by a language service's language parser.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

System.Object
  Microsoft.VisualStudio.Package.TokenInfo

public class TokenInfo

NameDescription
System_CAPS_pubmethodTokenInfo()

Initializes a new instance of the TokenInfo class to the default values.

System_CAPS_pubmethodTokenInfo(Int32, Int32, TokenType)

Initializes a new instance of the TokenInfo class to the specified values.

NameDescription
System_CAPS_pubpropertyColor

Determines the color index to use for the token.

System_CAPS_pubpropertyEndIndex

Determines the index of the last character of the token.

System_CAPS_pubpropertyStartIndex

Determines the index of the first character of the token.

System_CAPS_pubpropertyToken

Determines the token ID as represented by the TokenInfo object.

System_CAPS_pubpropertyTrigger

Determines the various triggers that can be set for the token.

System_CAPS_pubpropertyType

Determines the type of the token.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

The IScanner scanner uses this class to provide information about each token parsed. This class identifies the token type, specifies a color index for the token, specifies the start and end characters of the token (relative to the current line being parsed), and specifies any triggers that can be handled based on the token's type. See each property of this class for more details on how and when these properties are used.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft