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

Module Call

Provides all call classes.

All calls have the common base class Call.

Import path

import semmle.code.csharp.exprs.Call

Imports

Expr

Provides all expression classes.

Classes

AccessorCall

A call to an accessor. Either a property accessor call (PropertyCall), an indexer accessor call (IndexerCall), or an event accessor call (EventCall).

Call

A call. Either a method call (MethodCall), a constructor initializer call (ConstructorInitializer), a call to a user-defined operator (OperatorCall), a delegate call (DelegateCall), an accessor call (AccessorCall), a constructor call (ObjectCreation), or a local function call (LocalFunctionCall).

CompoundAssignmentOperatorCall

A call to a compound assignment operator, for example this += other on line 7 in

ConstructorInitializer

A constructor initializer call, for example base() (line 6) and this(0) (line 8) in

DelegateCall

A delegate call, for example x() on line 5 in

DelegateLikeCall

A function pointer or delegate call.

EventCall

A call to an event accessor, for example the call to add_Click (defined on line 5) on line 12 in

ExtensionCompoundAssignmentOperatorCall

A call to a compound assignment extension operator, for example s1 *= s2 on line 9 in

ExtensionMethodCall

A call to an extension method, for example lines 5 and 6 in

ExtensionOperatorCall

A call to an extension operator, for example 3 * s on line 9 in

ExtensionPropertyCall

A call to an extension property accessor (via the property), for example s.FirstChar on line 9 in

FunctionPointerCall

A function pointer call, for example fp(1) on line 3 in

IndexerCall

A call to an indexer accessor, for example the call to get_Item (defined on line 3) on line 7 in

InstanceMutatorOperatorCall

A call to an instance mutator operator, for example a++ on line 5 in

LocalFunctionCall

A call to a local function, for example the call Fac(n) on line 6 in

MethodCall

A method call, for example a.M() on line 5 in

MutatorOperatorCall

A call to a user-defined mutator operator, for example a++ on line 7 in

OperatorCall

A call to an operator, for example this + other on line 7 in

PropertyCall

A call to a property accessor, for example the call to get_P on line 5 in

VirtualMethodCall

A virtual method call, for example a.M() on line 5 in