Class: LiteralToken

Hierarchy

Constructors

constructor

+ new LiteralToken(input: string, begin: number, end: number, file?: undefined | string): LiteralToken

Overrides Token.constructor

Defined in tokens/literal-token.ts:5

Parameters:

Name Type
input string
begin number
end number
file? undefined | string

Returns: LiteralToken

Properties

begin

begin: number

Overrides Token.begin

Defined in tokens/literal-token.ts:8


end

end: number

Overrides Token.end

Defined in tokens/literal-token.ts:9


Optional file

file? : undefined | string

Overrides Token.file

Defined in tokens/literal-token.ts:10


input

input: string

Overrides Token.input

Defined in tokens/literal-token.ts:7


kind

kind: TokenKind

Inherited from Token.kind

Defined in tokens/token.ts:5


literal

literal: string

Defined in tokens/literal-token.ts:5

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


size

size(): number

Inherited from Token.size

Defined in tokens/token.ts:24

Returns: number