Class: PropertyAccessToken

Hierarchy

  • Token

    PropertyAccessToken

Constructors

constructor

+ new PropertyAccessToken(variable: WordToken | QuotedToken, props: WordToken | QuotedToken | PropertyAccessToken[], end: number): PropertyAccessToken

Overrides Token.constructor

Defined in tokens/property-access-token.ts:7

Parameters:

Name Type
variable WordToken | QuotedToken
props WordToken | QuotedToken | PropertyAccessToken[]
end number

Returns: PropertyAccessToken

Properties

begin

begin: number

Inherited from Token.begin

Defined in tokens/token.ts:7


end

end: number

Inherited from Token.end

Defined in tokens/token.ts:8


Optional file

file? : undefined | string

Inherited from Token.file

Defined in tokens/token.ts:9


input

input: string

Inherited from Token.input

Defined in tokens/token.ts:6


kind

kind: TokenKind

Inherited from Token.kind

Defined in tokens/token.ts:5


props

props: WordToken | QuotedToken | PropertyAccessToken[]

Defined in tokens/property-access-token.ts:10


variable

variable: WordToken | QuotedToken

Defined in tokens/property-access-token.ts:9

Methods

getPosition

getPosition(): number[]

Inherited from Token.getPosition

Defined in tokens/token.ts:14

Returns: number[]


getText

getText(): string

Inherited from Token.getText

Defined in tokens/token.ts:11

Returns: string


getVariableAsText

getVariableAsText(): string

Defined in tokens/property-access-token.ts:16

Returns: string


size

size(): number

Inherited from Token.size

Defined in tokens/token.ts:24

Returns: number