|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace Microsoft.CSharp.RuntimeBinder.Semantics
{
internal abstract class ExprOperator : ExprWithType
{
protected ExprOperator(ExpressionKind kind, CType type)
: base(kind, type)
{
Debug.Assert(kind.IsUnaryOperator() || kind > ExpressionKind.TypeLimit);
}
protected ExprOperator(ExpressionKind kind, CType type, Expr call, MethPropWithInst userDefinedMethod)
: this(kind, type)
{
OptionalUserDefinedCall = call;
UserDefinedCallMethod = userDefinedMethod;
}
public Expr OptionalUserDefinedCall { get; }
public MethWithInst PredefinedMethodToCall { get; set; }
public MethPropWithInst UserDefinedCallMethod { get; set; }
}
}
|