Class: IdentifierToken

Hierarchy

  • Token

    IdentifierToken

Constructors

constructor

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

Overrides Token.constructor

Defined in tokens/identifier-token.ts:6

Parameters:

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

Returns: IdentifierToken

Properties

begin

begin: number

Overrides Token.begin

Defined in tokens/identifier-token.ts:9


content

content: string

Defined in tokens/identifier-token.ts:6


end

end: number

Overrides Token.end

Defined in tokens/identifier-token.ts:10


Optional file

file? : undefined | string

Overrides Token.file

Defined in tokens/identifier-token.ts:11


input

input: string

Overrides Token.input

Defined in tokens/identifier-token.ts:8


kind

kind: TokenKind

Inherited from Token.kind

Defined in tokens/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


isNumber

isNumber(allowSign: boolean): boolean

Defined in tokens/identifier-token.ts:16

Parameters:

Name Type Default
allowSign boolean false

Returns: boolean


size

size(): number

Inherited from Token.size

Defined in tokens/token.ts:24

Returns: number