Module Tokens

Provides classes for working with the token-based representation of JavaScript programs.

Import path

semmle.javascript.Tokens

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Classes

BooleanLiteralToken

A Boolean literal token, that is, true or false.

EOFToken

An end-of-file token.

IdentifierToken

An identifier token such as name.

KeywordToken

A keyword token such as function or this.

NullLiteralToken

A null literal token.

NumericLiteralToken

A numeric literal token such as 1 or 2.3.

PunctuatorToken

A punctuator token such as ; or +.

RegularExpressionToken

A regular expression literal token such as /\w+/.

StringLiteralToken

A string literal token such as "hello" or 'world!'.

Token

A token occurring in a piece of JavaScript source code.