Class: HashToken

Hierarchy

Constructors

constructor

+ new HashToken(input: string, begin: number, end: number, name: WordToken, value?: ValueToken, file?: undefined | string): HashToken

Overrides Token.constructor

Defined in tokens/hash-token.ts:6

Parameters:

Name Type
input string
begin number
end number
name WordToken
value? ValueToken
file? undefined | string

Returns: HashToken

Properties

begin

begin: number

Overrides Token.begin

Defined in tokens/hash-token.ts:9


end

end: number

Overrides Token.end

Defined in tokens/hash-token.ts:10


Optional file

file? : undefined | string

Overrides Token.file

Defined in tokens/hash-token.ts:13


input

input: string

Overrides Token.input

Defined in tokens/hash-token.ts:8


kind

kind: TokenKind

Inherited from Token.kind

Defined in tokens/token.ts:5


name

name: WordToken

Defined in tokens/hash-token.ts:11


Optional value

value? : ValueToken

Defined in tokens/hash-token.ts:12

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