CodeQL library for C#
codeql/csharp-all 3.1.1 (changelog, source)
Search

Module Variable

Provides classes for variables, such as fields, parameters, local variables, and constants.

Import path

import semmle.code.csharp.Variable

Imports

Assignable

Provides classes for working with assignables.

Callable

Provides Callable classes, which are things that can be called such as methods and operators.

Element

Provides the Element class, the base class of all C# program elements.

Type

Provides classes for types.

Classes

EnumConstant

An enum member constant. For example, ReadOnly and Shared in

Field

A field. For example, the fields x and y in

ImplicitAccessorParameter

An implicit accessor or event accessor parameter corresponding to the special value parameter. For example, the value parameter of set_ReadOnly in

LocalConstant

A local constant, modeled as a special kind of local variable. For example, the local constant maxTries in

LocalScopeVariable

A locally scoped variable. Either a local variable (LocalVariable) or a parameter (Parameter).

LocalVariable

A local variable, declared within the scope of a callable. For example, the variables total and s in

MemberConstant

A member constant, modeled a special kind of field. For example, the constant Separator in

Parameter

A parameter of a parameterizable declaration (callable, delegate, or indexer). For example, p in

Variable

A variable. Either a variable with local scope (LocalScopeVariable) or a field (Field).