Skip to main content

Class: TemplateTokenStream

Implements

Constructors

new TemplateTokenStream()

new TemplateTokenStream(tokens): TemplateTokenStream

Parameters

tokens: IterableIterator<Token>

Returns

TemplateTokenStream

Defined in

src/token.ts:41

Accessors

current

get current(): Token

Returns

Token

Implementation of

TokenStream.current

Defined in

src/token.ts:46


peek

get peek(): Token

Returns

Token

Implementation of

TokenStream.peek

Defined in

src/token.ts:50

Methods

_next()

protected _next(): Token

Returns

Token

Defined in

src/token.ts:89


expect()

expect(kind): void

Parameters

kind: string

Returns

void

Implementation of

TokenStream.expect

Defined in

src/token.ts:54


expectTag()

expectTag(name): void

Parameters

name: string

Returns

void

Implementation of

TokenStream.expectTag

Defined in

src/token.ts:67


next()

next(): Token

Returns

Token

Implementation of

TokenStream.next

Defined in

src/token.ts:82