Click or drag to resize

SymbolCallerInfo Class



Contains information about a call from one symbol to another. The symbol making the call is stored in CallingSymbol and the symbol that the call was made to is stored in CalledSymbol. Whether or not the call is direct or indirect is also stored. A direct call is a call that does not go through any other symbols in the inheritance hierarchy of CalledSymbol, while an indirect call does go through the inheritance hierarchy. For example, calls through a base member that this symbol overrides, or through an interface member that this symbol implements will be considered 'indirect'.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.FindSymbolsSymbolCallerInfo

Namespace:  Microsoft.CodeAnalysis.FindSymbols
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class SymbolCallerInfo : ValueType

The SymbolCallerInfo type exposes the following members.

Properties
  NameDescription
Public propertyCalledSymbol
The symbol being called.
Public propertyCallingSymbol
The symbol that is calling the symbol being called.
Public propertyIsDirect
True if the CallingSymbol is directly calling CalledSymbol. False if it is calling a symbol in the inheritance hierarchy of the CalledSymbol. For example, if the called symbol is a class method, then an indirect call might be through an interface method that the class method implements.
Public propertyLocations
The locations inside the calling symbol where the called symbol is referenced.
Top
See Also