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

Class SelfVariable

A self variable.

Import path

import codeql.ruby.AST

Direct supertypes

Indirect supertypes

Known direct subtypes

    Inherited predicates

    getAnAccess

    Gets an access to this variable.

    from LocalVariable
    getDeclaringScope

    Gets the scope this variable is declared in.

    from Variable
    getDefiningAccess

    Gets the access where this local variable is first introduced.

    from LocalVariable
    getLocation

    Gets the location of this variable.

    from Variable
    getName

    Gets the name of this variable.

    from Variable
    hasName

    Holds if the name of this variable is name.

    from Variable
    isCaptured

    Holds if this variable is captured. For example in

    from LocalVariable
    toString

    Gets a textual representation of this variable.

    from Variable