提交 6054e7b7 编写于 作者: H Heejae Chang

added IBaseCompoundAssignmentExpression

上级 8753f9c2
......@@ -778,7 +778,7 @@ public LazyCatchClause(Lazy<IBlockStatement> handler, ITypeSymbol caughtType, La
/// <summary>
/// Represents an assignment expression that includes a binary operation.
/// </summary>
internal abstract partial class BaseCompoundAssignmentExpression : BaseAssignmentExpression, IHasOperatorMethodExpression, ICompoundAssignmentExpression
internal abstract partial class BaseCompoundAssignmentExpression : BaseAssignmentExpression, IHasOperatorMethodExpression, IBaseCompoundAssignmentExpression
{
protected BaseCompoundAssignmentExpression(BinaryOperationKind binaryOperationKind, bool usesOperatorMethod, IMethodSymbol operatorMethod, OperationKind kind, bool isInvalid, SyntaxNode syntax, ITypeSymbol type, Optional<object> constantValue) :
base(kind, isInvalid, syntax, type, constantValue)
......
......@@ -5,18 +5,29 @@
namespace Microsoft.CodeAnalysis.Semantics
{
/// <summary>
/// Represents an assignment expression that includes a binary operation.
/// Represents a base interface for assignment expression that includes a binary operation.
/// </summary>
/// <remarks>
/// This interface is reserved for implementation by its associated APIs. We reserve the right to
/// change it in the future.
/// </remarks>
public interface ICompoundAssignmentExpression : IBaseAssignmentExpression, IHasOperatorMethodExpression
public interface IBaseCompoundAssignmentExpression : IBaseAssignmentExpression, IHasOperatorMethodExpression
{
/// <summary>
/// Kind of binary operation.
/// </summary>
BinaryOperationKind BinaryOperationKind { get; }
}
/// <summary>
/// Represents an assignment expression that includes a binary operation.
/// </summary>
/// <remarks>
/// This interface is reserved for implementation by its associated APIs. We reserve the right to
/// change it in the future.
/// </remarks>
public interface ICompoundAssignmentExpression : IBaseCompoundAssignmentExpression
{
}
}
......@@ -11,7 +11,7 @@ namespace Microsoft.CodeAnalysis.Semantics
/// This interface is reserved for implementation by its associated APIs. We reserve the right to
/// change it in the future.
/// </remarks>
public interface IIncrementExpression : ICompoundAssignmentExpression
public interface IIncrementExpression : IBaseCompoundAssignmentExpression
{
/// <summary>
/// Kind of increment.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册