-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for the CollectionExpression syntax kind early in UseSearchValu…
…esAnalyzer (#7279) * Check for the CollectionExpression syntax kind early in UseSearchValuesAnalyzer * Document where the magic constants are coming from * Create SyntaxKindEx helper
- Loading branch information
Showing
3 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. | ||
|
||
using Microsoft.CodeAnalysis.CSharp; | ||
|
||
namespace Analyzer.Utilities.Lightup | ||
{ | ||
internal static class SyntaxKindEx | ||
{ | ||
// https://github.com/dotnet/roslyn/blob/main/src/Compilers/CSharp/Portable/Syntax/SyntaxKind.cs | ||
public const SyntaxKind Utf8StringLiteralToken = (SyntaxKind)8520; | ||
public const SyntaxKind Utf8StringLiteralExpression = (SyntaxKind)8756; | ||
public const SyntaxKind CollectionExpression = (SyntaxKind)9076; | ||
} | ||
} |