PSToken PSToken PSToken Class

Definition

This is public class for representing a powershell token.

public sealed class PSToken
type PSToken = class
Public NotInheritable Class PSToken
Inheritance
PSTokenPSTokenPSToken

Remarks

 There is already an internal class Token for representing the token.

 This class wraps the internal Token class for providing limited information
 to syntax editor.

Properties

Content Content Content

Resulting text for the token.

EndColumn EndColumn EndColumn

Position of token end in end line.

EndLine EndLine EndLine

Line number of token end.

Length Length Length

Offset of token end in script buffer.

Start Start Start

Offset of token start in script buffer.

StartColumn StartColumn StartColumn

Position of token start in start line.

StartLine StartLine StartLine

Line number of token start.

Type Type Type

Token type.

Methods

GetPSTokenType(Token) GetPSTokenType(Token) GetPSTokenType(Token)

Map a V3 token to a V2 PSTokenType

Applies to