Table of Contents

Class CodeCallBase

Namespace
LinqToDB.CodeModel
Assembly
linq2db.Tools.dll

Method call statement.

public abstract class CodeCallBase
Inheritance
CodeCallBase
Derived
Extension Methods

Constructors

CodeCallBase(bool, ICodeExpression, CodeIdentifier, IEnumerable<CodeTypeToken>?, bool, IEnumerable<ICodeExpression>, IEnumerable<SimpleTrivia>?)

protected CodeCallBase(bool extension, ICodeExpression callee, CodeIdentifier method, IEnumerable<CodeTypeToken>? genericArguments, bool skipTypeArguments, IEnumerable<ICodeExpression> parameters, IEnumerable<SimpleTrivia>? wrapTrivia)

Parameters

extension bool
callee ICodeExpression
method CodeIdentifier
genericArguments IEnumerable<CodeTypeToken>
skipTypeArguments bool
parameters IEnumerable<ICodeExpression>
wrapTrivia IEnumerable<SimpleTrivia>

Properties

Callee

Callee object or type (for static method call).

public ICodeExpression Callee { get; }

Property Value

ICodeExpression

CanSkipTypeArguments

Indicates, that type arguments generation could be skipped, as they could be inferred from context.

public bool CanSkipTypeArguments { get; }

Property Value

bool

Extension

Indicates that method is an extension method. Note that for this parameter passed in parameters and Callee property contains type where extension method declared.

public bool Extension { get; }

Property Value

bool

MethodName

Called method name.

public CodeIdentifier MethodName { get; }

Property Value

CodeIdentifier

Parameters

Method call parameters.

public IReadOnlyList<ICodeExpression> Parameters { get; }

Property Value

IReadOnlyList<ICodeExpression>

TypeArguments

Type arguments for generic method call.

public IReadOnlyList<CodeTypeToken> TypeArguments { get; }

Property Value

IReadOnlyList<CodeTypeToken>

WrapTrivia

public IReadOnlyList<SimpleTrivia>? WrapTrivia { get; }

Property Value

IReadOnlyList<SimpleTrivia>