File: src\Analyzers\VisualBasic\Analyzers\UseCompoundAssignment\Utilities.vb
Web Access
Project: src\src\CodeStyle\VisualBasic\Analyzers\Microsoft.CodeAnalysis.VisualBasic.CodeStyle.vbproj (Microsoft.CodeAnalysis.VisualBasic.CodeStyle)
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
 
Imports System.Collections.Immutable
 
Namespace Microsoft.CodeAnalysis.VisualBasic.UseCompoundAssignment
    Friend Module Utilities
        Public ReadOnly Kinds As ImmutableArray(Of (SyntaxKind, SyntaxKind, SyntaxKind)) =
            ImmutableArray.Create(
                (SyntaxKind.AddExpression, SyntaxKind.AddAssignmentStatement, SyntaxKind.PlusEqualsToken),
                (SyntaxKind.SubtractExpression, SyntaxKind.SubtractAssignmentStatement, SyntaxKind.MinusEqualsToken),
                (SyntaxKind.MultiplyExpression, SyntaxKind.MultiplyAssignmentStatement, SyntaxKind.AsteriskEqualsToken),
                (SyntaxKind.DivideExpression, SyntaxKind.DivideAssignmentStatement, SyntaxKind.SlashEqualsToken),
                (SyntaxKind.IntegerDivideExpression, SyntaxKind.IntegerDivideAssignmentStatement, SyntaxKind.BackslashEqualsToken),
                (SyntaxKind.ExponentiateExpression, SyntaxKind.ExponentiateAssignmentStatement, SyntaxKind.CaretEqualsToken),
                (SyntaxKind.ConcatenateExpression, SyntaxKind.ConcatenateAssignmentStatement, SyntaxKind.AmpersandEqualsToken),
                (SyntaxKind.RightShiftExpression, SyntaxKind.RightShiftAssignmentStatement, SyntaxKind.GreaterThanGreaterThanEqualsToken),
                (SyntaxKind.LeftShiftExpression, SyntaxKind.LeftShiftAssignmentStatement, SyntaxKind.LessThanLessThanEqualsToken))
    End Module
End Namespace