112 references to SyntaxKinds
Microsoft.CodeAnalysis.CodeStyle (112)
src\Analyzers\Core\Analyzers\SimplifyBooleanExpression\AbstractSimplifyConditionalDiagnosticAnalyzer.cs (1)
59var syntaxKinds = SyntaxFacts.SyntaxKinds;
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
47var syntaxKinds = GetSyntaxFacts().SyntaxKinds;
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
42var syntaxKinds = GetSyntaxFacts().SyntaxKinds; 67var syntaxKinds = syntaxFacts.SyntaxKinds;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
105var syntaxKinds = this.SyntaxFacts.SyntaxKinds;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
316if (this.SyntaxFacts.SyntaxKinds.CollectionInitializerExpression == argumentExpression.RawKind)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
99var binaryKind = _syntaxFacts.SyntaxKinds.Convert<TSyntaxKind>(binaryExpression.RawKind);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
43var syntaxKinds = GetSyntaxFacts().SyntaxKinds;
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
100var syntaxKinds = this.SyntaxFacts.SyntaxKinds; 251var syntaxKinds = syntaxFacts.SyntaxKinds;
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
72var syntaxKinds = GetSyntaxFacts().SyntaxKinds;
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
79var syntaxKinds = GetSyntaxFacts().SyntaxKinds;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
73var syntaxKinds = this.SyntaxFacts.SyntaxKinds;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
81if (tokenToRightOrIn.FullSpan.Start != position && tokenToRightOrIn.RawKind != SyntaxFacts.SyntaxKinds.EndOfFileToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (98)
104if (syntaxFacts.SyntaxKinds.StringLiteralToken == token.RawKind || 105syntaxFacts.SyntaxKinds.InterpolatedStringTextToken == token.RawKind) 685=> trivia.RawKind == syntaxFacts.SyntaxKinds.EndOfLineTrivia; 688=> trivia.RawKind == syntaxFacts.SyntaxKinds.MultiLineCommentTrivia; 691=> trivia.RawKind == syntaxFacts.SyntaxKinds.MultiLineDocCommentTrivia; 694=> trivia.RawKind == syntaxFacts.SyntaxKinds.ShebangDirectiveTrivia; 697=> trivia.RawKind == syntaxFacts.SyntaxKinds.SingleLineCommentTrivia; 700=> trivia.RawKind == syntaxFacts.SyntaxKinds.SingleLineDocCommentTrivia; 703=> trivia.RawKind == syntaxFacts.SyntaxKinds.WhitespaceTrivia; 706=> node?.RawKind == syntaxFacts.SyntaxKinds.SkippedTokensTrivia; 713=> token.RawKind == syntaxFacts.SyntaxKinds.AwaitKeyword; 716=> token.RawKind == syntaxFacts.SyntaxKinds.GlobalKeyword; 723=> token.RawKind == syntaxFacts.SyntaxKinds.CharacterLiteralToken; 726=> token.RawKind == syntaxFacts.SyntaxKinds.StringLiteralToken; 733=> token.RawKind == syntaxFacts.SyntaxKinds.IdentifierToken; 736=> token.RawKind == syntaxFacts.SyntaxKinds.HashToken; 739=> token.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringTextToken; 746=> node?.RawKind == syntaxFacts.SyntaxKinds.AliasQualifiedName; 749=> node?.RawKind == syntaxFacts.SyntaxKinds.GenericName; 752=> node?.RawKind == syntaxFacts.SyntaxKinds.IdentifierName; 755=> node?.RawKind == syntaxFacts.SyntaxKinds.QualifiedName; 762=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleType; 769=> node?.RawKind == syntaxFacts.SyntaxKinds.CharacterLiteralExpression; 772=> node?.RawKind == syntaxFacts.SyntaxKinds.DefaultLiteralExpression; 775=> node?.RawKind == syntaxFacts.SyntaxKinds.FalseLiteralExpression; 778=> node?.RawKind == syntaxFacts.SyntaxKinds.NumericLiteralExpression; 781=> node?.RawKind == syntaxFacts.SyntaxKinds.NullLiteralExpression; 784=> node?.RawKind == syntaxFacts.SyntaxKinds.StringLiteralExpression; 787=> node?.RawKind == syntaxFacts.SyntaxKinds.TrueLiteralExpression; 794=> node?.RawKind == syntaxFacts.SyntaxKinds.ArrayCreationExpression; 797=> node?.RawKind == syntaxFacts.SyntaxKinds.AwaitExpression; 800=> node?.RawKind == syntaxFacts.SyntaxKinds.BaseExpression; 803=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalExpression; 806=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalAccessExpression; 809=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldExpression; 812=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitArrayCreationExpression; 815=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ImplicitObjectCreationExpression; 818=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexExpression; 821=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringExpression; 824=> node?.RawKind == syntaxFacts.SyntaxKinds.Interpolation; 827=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringText; 830=> node?.RawKind == syntaxFacts.SyntaxKinds.InvocationExpression; 833=> node?.RawKind == syntaxFacts.SyntaxKinds.IsTypeExpression; 836=> node?.RawKind == syntaxFacts.SyntaxKinds.IsNotTypeExpression; 839=> node?.RawKind == syntaxFacts.SyntaxKinds.IsPatternExpression; 842=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalAndExpression; 845=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalOrExpression; 848=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalNotExpression; 851=> node?.RawKind == syntaxFacts.SyntaxKinds.ObjectCreationExpression; 854=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedExpression; 857=> node?.RawKind == syntaxFacts.SyntaxKinds.QueryExpression; 860=> node?.RawKind == syntaxFacts.SyntaxKinds.RangeExpression; 863=> node?.RawKind == syntaxFacts.SyntaxKinds.RefExpression; 866=> node?.RawKind == syntaxFacts.SyntaxKinds.SimpleMemberAccessExpression; 869=> node?.RawKind == syntaxFacts.SyntaxKinds.ThisExpression; 872=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ThrowExpression; 875=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleExpression; 878=> node.ChildNodes().Any(c => c.RawKind == syntaxFacts.SyntaxKinds.GlobalStatement); 885=> node?.RawKind == syntaxFacts.SyntaxKinds.AndPattern; 888=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstantPattern; 891=> node?.RawKind == syntaxFacts.SyntaxKinds.DeclarationPattern; 894=> node?.RawKind == syntaxFacts.SyntaxKinds.ListPattern; 897=> node?.RawKind == syntaxFacts.SyntaxKinds.NotPattern; 900=> node?.RawKind == syntaxFacts.SyntaxKinds.OrPattern; 903=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedPattern; 906=> node?.RawKind == syntaxFacts.SyntaxKinds.RecursivePattern; 909=> node?.RawKind == syntaxFacts.SyntaxKinds.RelationalPattern; 912=> node?.RawKind == syntaxFacts.SyntaxKinds.TypePattern; 915=> node?.RawKind == syntaxFacts.SyntaxKinds.VarPattern; 922=> node?.RawKind == syntaxFacts.SyntaxKinds.ExpressionStatement; 925=> node?.RawKind == syntaxFacts.SyntaxKinds.ForEachStatement; 928=> node?.RawKind == syntaxFacts.SyntaxKinds.ForStatement; 931=> node?.RawKind == syntaxFacts.SyntaxKinds.IfStatement; 934=> node?.RawKind == syntaxFacts.SyntaxKinds.LocalDeclarationStatement; 937=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.LocalFunctionStatement; 940=> node?.RawKind == syntaxFacts.SyntaxKinds.LockStatement; 943=> node?.RawKind == syntaxFacts.SyntaxKinds.ReturnStatement; 946=> node?.RawKind == syntaxFacts.SyntaxKinds.ThrowStatement; 949=> node?.RawKind == syntaxFacts.SyntaxKinds.UsingStatement; 952=> node?.RawKind == syntaxFacts.SyntaxKinds.WhileStatement; 955=> node?.RawKind == syntaxFacts.SyntaxKinds.YieldReturnStatement; 962=> node?.RawKind == syntaxFacts.SyntaxKinds.Attribute; 965=> node?.RawKind == syntaxFacts.SyntaxKinds.ClassDeclaration; 968=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstructorDeclaration; 971=> node?.RawKind == syntaxFacts.SyntaxKinds.EnumDeclaration; 977=> node?.RawKind == syntaxFacts.SyntaxKinds.InterfaceDeclaration; 980=> node?.RawKind == syntaxFacts.SyntaxKinds.Parameter; 983=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeConstraint; 986=> node?.RawKind == syntaxFacts.SyntaxKinds.VariableDeclarator; 989=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldDeclaration; 992=> node?.RawKind == syntaxFacts.SyntaxKinds.PropertyDeclaration; 995=> node?.RawKind == syntaxFacts.SyntaxKinds.StructDeclaration; 998=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeArgumentList; 1005=> node?.RawKind == syntaxFacts.SyntaxKinds.ElseClause; 1007=> node?.RawKind == syntaxFacts.SyntaxKinds.EqualsValueClause; 1014=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitElementAccess; 1017=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexerMemberCref; 1020=> node?.RawKind == syntaxFacts.SyntaxKinds.PrimaryConstructorBaseType;