Class CodeCallBase
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
boolcallee
ICodeExpressionmethod
CodeIdentifiergenericArguments
IEnumerable<CodeTypeToken>skipTypeArguments
boolparameters
IEnumerable<ICodeExpression>wrapTrivia
IEnumerable<SimpleTrivia>
Properties
Callee
Callee object or type (for static method call).
public ICodeExpression Callee { get; }
Property Value
CanSkipTypeArguments
Indicates, that type arguments generation could be skipped, as they could be inferred from context.
public bool CanSkipTypeArguments { get; }
Property Value
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
MethodName
Called method name.
public CodeIdentifier MethodName { get; }
Property Value
Parameters
Method call parameters.
public IReadOnlyList<ICodeExpression> Parameters { get; }
Property Value
TypeArguments
Type arguments for generic method call.
public IReadOnlyList<CodeTypeToken> TypeArguments { get; }
Property Value
WrapTrivia
public IReadOnlyList<SimpleTrivia>? WrapTrivia { get; }