CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Module Literal

Import path

import codeql.ruby.ast.Literal

Classes

ArrayLiteral

An array literal.

BooleanLiteral

A Boolean literal. rb true false TRUE FALSE

CharacterLiteral

A character literal.

ComplexLiteral

A complex literal.

EncodingLiteral

An __ENCODING__ literal.

FileLiteral

A __FILE__ literal.

FloatLiteral

A floating-point literal.

HashLiteral

A hash literal.

HereDoc

A “here document”. For example: rb query = <<SQL SELECT * FROM person WHERE age > 21 SQL

IntegerLiteral

An integer literal.

LineLiteral

A __LINE__ literal.

Literal

A literal.

MethodName

A method name literal. For example: rb method_name # a normal name + # an operator :method_name # a symbol :"eval_#{name}" # a complex symbol

NilLiteral

A nil literal.

NumericLiteral

A numeric literal, i.e. an integer, floating-point, rational, or complex value.

RangeLiteral

A range literal.

RationalLiteral

A rational literal.

RegExpComponent

The base class for a component of a regular expression literal.

RegExpEscapeSequenceComponent

An escape sequence component of a regex literal.

RegExpInterpolationComponent

An interpolation expression component of a regex literal.

RegExpLiteral

A regular expression literal.

RegExpTextComponent

A component of a regex literal that is simply text.

StringComponent

The base class for a component of a string: StringTextComponent, StringEscapeSequenceComponent, or StringInterpolationComponent.

StringEscapeSequenceComponent

An escape sequence component of a string or string-like literal.

StringInterpolationComponent

An interpolation expression component of a string or string-like literal.

StringLiteral

A string literal.

StringTextComponent

A component of a string (or string-like) literal that is simply text.

StringlikeLiteral

A string, symbol, regexp, or subshell literal.

SubshellLiteral

A subshell literal.

SymbolLiteral

A symbol literal.