Class: TagToken

Hierarchy

DelimitedToken

TagToken

Constructors

constructor

+ new TagToken(input: string, begin: number, end: number, options: NormalizedFullOptions, file?: undefined | string): TagToken

Overrides DelimitedToken.constructor

Defined in tokens/tag-token.ts:9

Parameters:

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

Returns: TagToken

Properties

args

args: string

Defined in tokens/tag-token.ts:9


begin

begin: number

Inherited from Token.begin

Defined in tokens/token.ts:7


content

content: string

Inherited from DelimitedToken.content

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


name

name: string

Defined in tokens/tag-token.ts:8


trimLeft

trimLeft: boolean = false

Inherited from DelimitedToken.trimLeft

Defined in tokens/delimited-token.ts:6


trimRight

trimRight: boolean = false

Inherited from DelimitedToken.trimRight

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