File: src\RoslynAnalyzers\Utilities\Refactoring.CSharp\CSharpSyntaxKinds.cs
Web Access
Project: src\src\RoslynAnalyzers\Roslyn.Diagnostics.Analyzers\CSharp\Roslyn.Diagnostics.CSharp.Analyzers.csproj (Roslyn.Diagnostics.CSharp.Analyzers)
// 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.
 
using Microsoft.CodeAnalysis.CSharp;
 
namespace Analyzer.Utilities
{
    internal sealed class CSharpSyntaxKinds : ISyntaxKinds
    {
        public static CSharpSyntaxKinds Instance { get; } = new CSharpSyntaxKinds();
 
        private CSharpSyntaxKinds()
        {
        }
 
        public int EndOfFileToken => (int)SyntaxKind.EndOfFileToken;
 
        public int ExpressionStatement => (int)SyntaxKind.ExpressionStatement;
        public int LocalDeclarationStatement => (int)SyntaxKind.LocalDeclarationStatement;
 
        public int VariableDeclarator => (int)SyntaxKind.VariableDeclarator;
    }
}