ICompoundAssignmentExpression.cs 1.2 KB
Newer Older
S
Sam Harwell 已提交
1
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.
2 3 4 5

namespace Microsoft.CodeAnalysis.Semantics
{
    /// <summary>
6
    /// Represents an assignment expression that includes a binary operation.
7 8 9 10 11
    /// </summary>
    /// <remarks>
    /// This interface is reserved for implementation by its associated APIs. We reserve the right to
    /// change it in the future.
    /// </remarks>
12
    public interface ICompoundAssignmentExpression : IAssignmentExpression
13 14 15 16
    {
        /// <summary>
        /// Kind of binary operation.
        /// </summary>
17
        BinaryOperatorKind OperatorKind { get; }
M
Manish Vasani 已提交
18

19 20 21 22 23
        /// <summary>
        /// Operator method used by the operation, null if the operation does not use an operator method.
        /// </summary>
        IMethodSymbol OperatorMethod { get; }

24 25 26 27
        /// <summary>
        /// <code>true</code> if this assignment contains a 'lifted' binary operation.
        /// </summary>
        bool IsLifted { get; }
M
Manish Vasani 已提交
28 29

        /// <summary>
30
        /// <code>true</code> if overflow checking is performed for the arithmetic operation.
M
Manish Vasani 已提交
31 32
        /// </summary>
        bool IsChecked { get; }
33
    }
34
}