Class: DelimitedToken

Hierarchy

Constructors

constructor

+ new DelimitedToken(kind: TokenKind, content: string, input: string, begin: number, end: number, trimLeft: boolean, trimRight: boolean, file?: undefined | string): DelimitedToken

Overrides Token.constructor

Defined in tokens/delimited-token.ts:8

Parameters:

Name Type
kind TokenKind
content string
input string
begin number
end number
trimLeft boolean
trimRight boolean
file? undefined | string

Returns: DelimitedToken

Properties

begin

begin: number

Inherited from Token.begin

Defined in tokens/token.ts:7


content

content: string

Defined in tokens/delimited-token.ts:8


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


trimLeft

trimLeft: boolean = false

Defined in tokens/delimited-token.ts:6


trimRight

trimRight: boolean = false

Defined in tokens/delimited-token.ts:7

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