提交 8753f9c2 编写于 作者: H Heejae Chang

added IBaseAssignmentExpression and made IComponentAssigntExpression to sit on...

added IBaseAssignmentExpression and made IComponentAssigntExpression to sit on top of IBaseAssignmentExpression rather than IAssignmentExpression
上级 3d6530a4
......@@ -366,7 +366,7 @@ public LazyArrayInitializer(Lazy<ImmutableArray<IOperation>> elementValues, bool
/// <summary>
/// Represents an assignment expression.
/// </summary>
internal abstract partial class BaseAssignmentExpression : Operation, IAssignmentExpression
internal abstract partial class BaseAssignmentExpression : Operation, IBaseAssignmentExpression
{
protected BaseAssignmentExpression(OperationKind kind, bool isInvalid, SyntaxNode syntax, ITypeSymbol type, Optional<object> constantValue) :
base(kind, isInvalid, syntax, type, constantValue)
......
......@@ -5,13 +5,13 @@
namespace Microsoft.CodeAnalysis.Semantics
{
/// <summary>
/// Represents an assignment expression.
/// Represents a base interface for assignment expressions.
/// </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 IAssignmentExpression : IOperation
public interface IBaseAssignmentExpression : IOperation
{
/// <summary>
/// Target of the assignment.
......@@ -22,5 +22,16 @@ public interface IAssignmentExpression : IOperation
/// </summary>
IOperation Value { get; }
}
/// <summary>
/// Represents an assignment expression.
/// </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 IAssignmentExpression : IBaseAssignmentExpression
{
}
}
......@@ -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 ICompoundAssignmentExpression : IAssignmentExpression, IHasOperatorMethodExpression
public interface ICompoundAssignmentExpression : IBaseAssignmentExpression, IHasOperatorMethodExpression
{
/// <summary>
/// Kind of binary operation.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册