276 references to RawKind
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
160token.Parent.Parent.RawKind == (int)SyntaxKind.AddExpression)
RouteEmbeddedLanguage\Infrastructure\SyntaxNodeExtensions.cs (1)
46while (node?.Parent?.RawKind == (int)SyntaxKind.ParenthesizedExpression)
Microsoft.CodeAnalysis (3)
Syntax\SeparatedSyntaxList.cs (1)
276if (this[i].RawKind == rawKind)
Syntax\SyntaxList`1.cs (1)
542if (child.RawKind == rawKind)
Syntax\SyntaxNodeOrToken.cs (1)
92public int RawKind => _token?.RawKind ?? _nodeOrParent?.RawKind ?? 0;
Microsoft.CodeAnalysis.CodeStyle (91)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
73var parentKind = parenthesizedExpression.Parent?.RawKind; 74var childKind = child.RawKind;
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
68var isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 69var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
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\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
236isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 237var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
179Contract.ThrowIfTrue(node1.RawKind == 0 || node2.RawKind == 0); 922if (poppedDirective.RawKind == syntaxKinds.IfDirectiveTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
142RoslynDebug.Assert(false, $"Unexpected XML syntax kind {attribute.RawKind}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (79)
696=> node?.RawKind == syntaxFacts.SyntaxKinds.SkippedTokensTrivia; 736=> node?.RawKind == syntaxFacts.SyntaxKinds.GenericName; 739=> node?.RawKind == syntaxFacts.SyntaxKinds.IdentifierName; 742=> node?.RawKind == syntaxFacts.SyntaxKinds.QualifiedName; 749=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleType; 756=> node?.RawKind == syntaxFacts.SyntaxKinds.CharacterLiteralExpression; 759=> node?.RawKind == syntaxFacts.SyntaxKinds.DefaultLiteralExpression; 762=> node?.RawKind == syntaxFacts.SyntaxKinds.FalseLiteralExpression; 765=> node?.RawKind == syntaxFacts.SyntaxKinds.NumericLiteralExpression; 768=> node?.RawKind == syntaxFacts.SyntaxKinds.NullLiteralExpression; 771=> node?.RawKind == syntaxFacts.SyntaxKinds.StringLiteralExpression; 774=> node?.RawKind == syntaxFacts.SyntaxKinds.TrueLiteralExpression; 781=> node?.RawKind == syntaxFacts.SyntaxKinds.ArrayCreationExpression; 784=> node?.RawKind == syntaxFacts.SyntaxKinds.AwaitExpression; 787=> node?.RawKind == syntaxFacts.SyntaxKinds.BaseExpression; 790=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalExpression; 793=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalAccessExpression; 796=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitArrayCreationExpression; 799=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ImplicitObjectCreationExpression; 802=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexExpression; 805=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringExpression; 808=> node?.RawKind == syntaxFacts.SyntaxKinds.Interpolation; 811=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringText; 814=> node?.RawKind == syntaxFacts.SyntaxKinds.InvocationExpression; 817=> node?.RawKind == syntaxFacts.SyntaxKinds.IsTypeExpression; 820=> node?.RawKind == syntaxFacts.SyntaxKinds.IsNotTypeExpression; 823=> node?.RawKind == syntaxFacts.SyntaxKinds.IsPatternExpression; 826=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalAndExpression; 829=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalOrExpression; 832=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalNotExpression; 835=> node?.RawKind == syntaxFacts.SyntaxKinds.ObjectCreationExpression; 838=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedExpression; 841=> node?.RawKind == syntaxFacts.SyntaxKinds.QueryExpression; 844=> node?.RawKind == syntaxFacts.SyntaxKinds.RangeExpression; 847=> node?.RawKind == syntaxFacts.SyntaxKinds.RefExpression; 850=> node?.RawKind == syntaxFacts.SyntaxKinds.SimpleMemberAccessExpression; 853=> node?.RawKind == syntaxFacts.SyntaxKinds.ThisExpression; 856=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ThrowExpression; 859=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleExpression; 862=> node.ChildNodes().Any(c => c.RawKind == syntaxFacts.SyntaxKinds.GlobalStatement); 869=> node?.RawKind == syntaxFacts.SyntaxKinds.AndPattern; 872=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstantPattern; 875=> node?.RawKind == syntaxFacts.SyntaxKinds.DeclarationPattern; 878=> node?.RawKind == syntaxFacts.SyntaxKinds.ListPattern; 881=> node?.RawKind == syntaxFacts.SyntaxKinds.NotPattern; 884=> node?.RawKind == syntaxFacts.SyntaxKinds.OrPattern; 887=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedPattern; 890=> node?.RawKind == syntaxFacts.SyntaxKinds.RecursivePattern; 893=> node?.RawKind == syntaxFacts.SyntaxKinds.RelationalPattern; 896=> node?.RawKind == syntaxFacts.SyntaxKinds.TypePattern; 899=> node?.RawKind == syntaxFacts.SyntaxKinds.VarPattern; 906=> node?.RawKind == syntaxFacts.SyntaxKinds.ExpressionStatement; 909=> node?.RawKind == syntaxFacts.SyntaxKinds.ForEachStatement; 912=> node?.RawKind == syntaxFacts.SyntaxKinds.ForStatement; 915=> node?.RawKind == syntaxFacts.SyntaxKinds.IfStatement; 918=> node?.RawKind == syntaxFacts.SyntaxKinds.LocalDeclarationStatement; 921=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.LocalFunctionStatement; 924=> node?.RawKind == syntaxFacts.SyntaxKinds.LockStatement; 927=> node?.RawKind == syntaxFacts.SyntaxKinds.ReturnStatement; 930=> node?.RawKind == syntaxFacts.SyntaxKinds.ThrowStatement; 933=> node?.RawKind == syntaxFacts.SyntaxKinds.UsingStatement; 936=> node?.RawKind == syntaxFacts.SyntaxKinds.WhileStatement; 939=> node?.RawKind == syntaxFacts.SyntaxKinds.YieldReturnStatement; 946=> node?.RawKind == syntaxFacts.SyntaxKinds.Attribute; 949=> node?.RawKind == syntaxFacts.SyntaxKinds.ClassDeclaration; 952=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstructorDeclaration; 955=> node?.RawKind == syntaxFacts.SyntaxKinds.EnumDeclaration; 961=> node?.RawKind == syntaxFacts.SyntaxKinds.InterfaceDeclaration; 964=> node?.RawKind == syntaxFacts.SyntaxKinds.Parameter; 967=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeConstraint; 970=> node?.RawKind == syntaxFacts.SyntaxKinds.VariableDeclarator; 973=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldDeclaration; 976=> node?.RawKind == syntaxFacts.SyntaxKinds.PropertyDeclaration; 979=> node?.RawKind == syntaxFacts.SyntaxKinds.StructDeclaration; 982=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeArgumentList; 989=> node?.RawKind == syntaxFacts.SyntaxKinds.ElseClause; 991=> node?.RawKind == syntaxFacts.SyntaxKinds.EqualsValueClause; 998=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitElementAccess; 1001=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexerMemberCref;
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
445if (syntaxKinds.AddressOfExpression == SimpleNameOrMemberAccessExpressionOpt.Parent?.RawKind)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (3)
251var qualifiedNameSyntaxKind = generator.QualifiedName(generator.IdentifierName("ignored"), generator.IdentifierName("ignored")).RawKind; 252var memberAccessExpressionSyntaxKind = generator.MemberAccessExpression(generator.IdentifierName("ignored"), "ignored").RawKind; 260if (expression.RawKind == qualifiedNameSyntaxKind)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
165while (sourceSyntax is { Parent.RawKind: var kind } && kind == suppressKind)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
253throw ExceptionUtilities.UnexpectedValue(pattern.RawKind);
Microsoft.CodeAnalysis.CSharp (6)
Compilation\MemberSemanticModel.cs (3)
2322case { RawKind: (int)SyntaxKind.SimpleMemberAccessExpression, Parent.RawKind: (int)SyntaxKind.InvocationExpression }: 2328case { RawKind: (int)SyntaxKind.ComplexElementInitializerExpression }:
CSharpExtensions.cs (3)
49return node?.RawKind == (int)kind; 205/// Returns <see cref="SyntaxKind"/> for <see cref="SyntaxNode"/> from <see cref="SyntaxNode.RawKind"/> property. 209var rawKind = node.RawKind;
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
222Initializer: null or { RawKind: (int)SyntaxKind.CollectionInitializerExpression }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
865RawKind: (int)SyntaxKind.SimpleMemberAccessExpression,
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
43RawKind: (int)SyntaxKind.ObjectInitializerExpression,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
55return accessorList is { Accessors: [{ AttributeLists.Count: 0, RawKind: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
518return expression is { Parent.RawKind: not (int)SyntaxKind.ConditionalAccessExpression };
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
947{ Parent.RawKind: (int)SyntaxKind.FunctionPointerParameter } => true, 949{ Parent: TypeSyntax { Parent.RawKind: (int)SyntaxKind.FunctionPointerParameter } } => true,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteHelpers.cs (1)
265RawKind: (int)SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.Features (10)
ConvertForToForEach\CSharpConvertForToForEachCodeRefactoringProvider.cs (1)
52if (forStatement is { Declaration.Variables: [{ Initializer: not null } declarator], Condition.RawKind: (int)SyntaxKind.LessThanExpression, Incrementors.Count: 1 })
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
1371Debug.Assert(oldNode.RawKind == newNode.RawKind); 2638Debug.Assert(edit.Kind != EditKind.Update || edit.OldNode.RawKind == edit.NewNode.RawKind);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
222Initializer: null or { RawKind: (int)SyntaxKind.CollectionInitializerExpression }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
865RawKind: (int)SyntaxKind.SimpleMemberAccessExpression,
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
43RawKind: (int)SyntaxKind.ObjectInitializerExpression,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
55return accessorList is { Accessors: [{ AttributeLists.Count: 0, RawKind: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
UseAutoProperty\UseAutoPropertyRewriter.cs (1)
47Parent: InitializerExpressionSyntax { RawKind: (int)SyntaxKind.ObjectInitializerExpression }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (1)
758step => Assert.True(step.Outputs.Single().Value is AccessorDeclarationSyntax { RawKind: (int)SyntaxKind.GetAccessorDeclaration }));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
DeclarationTests.cs (2)
921if (node.Span == nodeInUnderlying.Span && node.RawKind == nodeInUnderlying.RawKind)
SymbolDisplay\SymbolDisplayTests.cs (1)
7516var structure = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.RawKind == (int)VisualBasic.SyntaxKind.StructureStatement);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (1)
402case PostfixUnaryExpressionSyntax { RawKind: (int)SyntaxKind.SuppressNullableWarningExpression, Operand: { } operand }:
FunctionPointerUtilities.cs (1)
182case PrefixUnaryExpressionSyntax { RawKind: (int)SyntaxKind.AddressOfExpression, Operand: var operand }:
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
518return expression is { Parent.RawKind: not (int)SyntaxKind.ConditionalAccessExpression };
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
947{ Parent.RawKind: (int)SyntaxKind.FunctionPointerParameter } => true, 949{ Parent: TypeSyntax { Parent.RawKind: (int)SyntaxKind.FunctionPointerParameter } } => true,
Microsoft.CodeAnalysis.Features (27)
AddImport\SymbolReferenceFinder.cs (1)
155hasIncompleteParentMember = nameNode?.Parent?.RawKind == syntaxFacts.SyntaxKinds.IncompleteMember;
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
38var from = fromNodes.FirstOrDefault(n => n.RawKind == FromKind);
EditAndContinue\RudeEditDiagnostic.cs (1)
37: this(kind, span, (ushort)(node != null ? node.RawKind : 0), arguments ?? [])
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (1)
63if (interpolation?.RawKind != syntaxFacts.SyntaxKinds.Interpolation)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (2)
98syntaxFacts.SyntaxKinds.AddExpression == token.Parent.Parent.RawKind) 168if (interpolation?.RawKind != syntaxFacts.SyntaxKinds.Interpolation)
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
157mappedMember = mappedMember.Parent?.RawKind == syntaxKinds.GlobalStatement
ExtractMethod\MethodExtractor.cs (1)
130var mappedPoint = insertionPointNode.RawKind == syntaxKinds.GlobalStatement
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
220if (syntaxKindsService.InterpolatedStringExpression == expression.RawKind && value is string)
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
170GetNearestParentJumpStatementKind(ifNode).Equals(syntaxKinds.Convert<TSyntaxKind>(ifBodySingleExitPointOpt.RawKind)))
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (3)
55while (expression.Parent?.RawKind == expression.RawKind) 73var title = GetTitle(syntaxKinds, expression.RawKind);
SpellCheck\AbstractSpellCheckSpanService.cs (1)
102token.Parent?.RawKind == _syntaxKinds.InterpolatedStringText)
SplitOrMergeIfStatements\AbstractSplitIfStatementCodeRefactoringProvider.cs (1)
85while (current.Parent?.RawKind == syntaxKind)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
73var parentKind = parenthesizedExpression.Parent?.RawKind;
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
68var isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 69var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
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\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
236isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 237var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
445if (syntaxKinds.AddressOfExpression == SimpleNameOrMemberAccessExpressionOpt.Parent?.RawKind)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (3)
251var qualifiedNameSyntaxKind = generator.QualifiedName(generator.IdentifierName("ignored"), generator.IdentifierName("ignored")).RawKind; 252var memberAccessExpressionSyntaxKind = generator.MemberAccessExpression(generator.IdentifierName("ignored"), "ignored").RawKind; 260if (expression.RawKind == qualifiedNameSyntaxKind)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
165while (sourceSyntax is { Parent.RawKind: var kind } && kind == suppressKind)
Microsoft.CodeAnalysis.Test.Utilities (7)
Compilation\CompilationExtensions.cs (1)
337Assert.False(true, $"Duplicate explicit node for syntax ({operation.Syntax.RawKind}): {operation.Syntax.ToString()}");
Compilation\ControlFlowGraphVerifier.cs (1)
883RawKind: (int)CSharp.SyntaxKind.SimpleAssignmentExpression,
Compilation\OperationTreeVerifier.cs (1)
317Assert.False(true, $"Duplicate explicit node for syntax ({operation.Syntax.RawKind}): {operation.Syntax.ToString()}");
Compilation\TestOperationVisitor.cs (2)
204Assert.False(true, $"Duplicate explicit node for syntax ({descendant.Syntax.RawKind}): {descendant.Syntax.ToString()}"); 588Assert.True(operation.Descendants().All(n => n.IsImplicit), $"Explicit node in default argument value ({operation.Syntax.RawKind}): {operation.Syntax.ToString()}");
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
38SyntaxKind = node == null ? default(TLanguageKindEnum) : (TLanguageKindEnum)(object)(ushort)node.RawKind;
MarkedSource\SourceWithMarkedNodes.cs (1)
128var nodeOfKind = node.FirstAncestorOrSelf<SyntaxNode>(n => n.RawKind == marker.SyntaxKind);
Microsoft.CodeAnalysis.VisualBasic (3)
VisualBasicExtensions.vb (3)
52Return node IsNot Nothing AndAlso node.RawKind = kind 205''' Returns <see cref="SyntaxKind"/> for <see cref="SyntaxNode"/> from <see cref="SyntaxNode.RawKind"/> property. 209Dim rawKind = node.RawKind
Microsoft.CodeAnalysis.VisualBasic.Features (4)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (4)
431If oldStatement.RawKind <> newStatement.RawKind Then 881Debug.Assert(oldNode.RawKind = newNode.RawKind)
Microsoft.CodeAnalysis.Workspaces (89)
Differencing\AbstractSyntaxComparer.cs (3)
183var label = Classify(node.RawKind, node, out var isLeaf); 196=> Classify(node.RawKind, node, out _) != IgnoredNode; 201=> Classify(node.RawKind, node, out _);
Shared\Extensions\SemanticModelExtensions.cs (2)
95(tokenParent?.RawKind == syntaxKinds.UsingStatement || tokenParent?.RawKind == syntaxKinds.LocalDeclarationStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
179Contract.ThrowIfTrue(node1.RawKind == 0 || node2.RawKind == 0); 922if (poppedDirective.RawKind == syntaxKinds.IfDirectiveTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
142RoslynDebug.Assert(false, $"Unexpected XML syntax kind {attribute.RawKind}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (79)
696=> node?.RawKind == syntaxFacts.SyntaxKinds.SkippedTokensTrivia; 736=> node?.RawKind == syntaxFacts.SyntaxKinds.GenericName; 739=> node?.RawKind == syntaxFacts.SyntaxKinds.IdentifierName; 742=> node?.RawKind == syntaxFacts.SyntaxKinds.QualifiedName; 749=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleType; 756=> node?.RawKind == syntaxFacts.SyntaxKinds.CharacterLiteralExpression; 759=> node?.RawKind == syntaxFacts.SyntaxKinds.DefaultLiteralExpression; 762=> node?.RawKind == syntaxFacts.SyntaxKinds.FalseLiteralExpression; 765=> node?.RawKind == syntaxFacts.SyntaxKinds.NumericLiteralExpression; 768=> node?.RawKind == syntaxFacts.SyntaxKinds.NullLiteralExpression; 771=> node?.RawKind == syntaxFacts.SyntaxKinds.StringLiteralExpression; 774=> node?.RawKind == syntaxFacts.SyntaxKinds.TrueLiteralExpression; 781=> node?.RawKind == syntaxFacts.SyntaxKinds.ArrayCreationExpression; 784=> node?.RawKind == syntaxFacts.SyntaxKinds.AwaitExpression; 787=> node?.RawKind == syntaxFacts.SyntaxKinds.BaseExpression; 790=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalExpression; 793=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalAccessExpression; 796=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitArrayCreationExpression; 799=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ImplicitObjectCreationExpression; 802=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexExpression; 805=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringExpression; 808=> node?.RawKind == syntaxFacts.SyntaxKinds.Interpolation; 811=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringText; 814=> node?.RawKind == syntaxFacts.SyntaxKinds.InvocationExpression; 817=> node?.RawKind == syntaxFacts.SyntaxKinds.IsTypeExpression; 820=> node?.RawKind == syntaxFacts.SyntaxKinds.IsNotTypeExpression; 823=> node?.RawKind == syntaxFacts.SyntaxKinds.IsPatternExpression; 826=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalAndExpression; 829=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalOrExpression; 832=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalNotExpression; 835=> node?.RawKind == syntaxFacts.SyntaxKinds.ObjectCreationExpression; 838=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedExpression; 841=> node?.RawKind == syntaxFacts.SyntaxKinds.QueryExpression; 844=> node?.RawKind == syntaxFacts.SyntaxKinds.RangeExpression; 847=> node?.RawKind == syntaxFacts.SyntaxKinds.RefExpression; 850=> node?.RawKind == syntaxFacts.SyntaxKinds.SimpleMemberAccessExpression; 853=> node?.RawKind == syntaxFacts.SyntaxKinds.ThisExpression; 856=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ThrowExpression; 859=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleExpression; 862=> node.ChildNodes().Any(c => c.RawKind == syntaxFacts.SyntaxKinds.GlobalStatement); 869=> node?.RawKind == syntaxFacts.SyntaxKinds.AndPattern; 872=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstantPattern; 875=> node?.RawKind == syntaxFacts.SyntaxKinds.DeclarationPattern; 878=> node?.RawKind == syntaxFacts.SyntaxKinds.ListPattern; 881=> node?.RawKind == syntaxFacts.SyntaxKinds.NotPattern; 884=> node?.RawKind == syntaxFacts.SyntaxKinds.OrPattern; 887=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedPattern; 890=> node?.RawKind == syntaxFacts.SyntaxKinds.RecursivePattern; 893=> node?.RawKind == syntaxFacts.SyntaxKinds.RelationalPattern; 896=> node?.RawKind == syntaxFacts.SyntaxKinds.TypePattern; 899=> node?.RawKind == syntaxFacts.SyntaxKinds.VarPattern; 906=> node?.RawKind == syntaxFacts.SyntaxKinds.ExpressionStatement; 909=> node?.RawKind == syntaxFacts.SyntaxKinds.ForEachStatement; 912=> node?.RawKind == syntaxFacts.SyntaxKinds.ForStatement; 915=> node?.RawKind == syntaxFacts.SyntaxKinds.IfStatement; 918=> node?.RawKind == syntaxFacts.SyntaxKinds.LocalDeclarationStatement; 921=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.LocalFunctionStatement; 924=> node?.RawKind == syntaxFacts.SyntaxKinds.LockStatement; 927=> node?.RawKind == syntaxFacts.SyntaxKinds.ReturnStatement; 930=> node?.RawKind == syntaxFacts.SyntaxKinds.ThrowStatement; 933=> node?.RawKind == syntaxFacts.SyntaxKinds.UsingStatement; 936=> node?.RawKind == syntaxFacts.SyntaxKinds.WhileStatement; 939=> node?.RawKind == syntaxFacts.SyntaxKinds.YieldReturnStatement; 946=> node?.RawKind == syntaxFacts.SyntaxKinds.Attribute; 949=> node?.RawKind == syntaxFacts.SyntaxKinds.ClassDeclaration; 952=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstructorDeclaration; 955=> node?.RawKind == syntaxFacts.SyntaxKinds.EnumDeclaration; 961=> node?.RawKind == syntaxFacts.SyntaxKinds.InterfaceDeclaration; 964=> node?.RawKind == syntaxFacts.SyntaxKinds.Parameter; 967=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeConstraint; 970=> node?.RawKind == syntaxFacts.SyntaxKinds.VariableDeclarator; 973=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldDeclaration; 976=> node?.RawKind == syntaxFacts.SyntaxKinds.PropertyDeclaration; 979=> node?.RawKind == syntaxFacts.SyntaxKinds.StructDeclaration; 982=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeArgumentList; 989=> node?.RawKind == syntaxFacts.SyntaxKinds.ElseClause; 991=> node?.RawKind == syntaxFacts.SyntaxKinds.EqualsValueClause; 998=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitElementAccess; 1001=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexerMemberCref;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
253throw ExceptionUtilities.UnexpectedValue(pattern.RawKind);
Microsoft.VisualStudio.LanguageServices.CSharp (11)
CodeModel\CSharpCodeModelService.cs (11)
596return (EnvDTE.CodeElement)CodeNamespace.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 599return (EnvDTE.CodeElement)CodeClass.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 601return (EnvDTE.CodeElement)CodeInterface.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 603return (EnvDTE.CodeElement)CodeStruct.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 605return (EnvDTE.CodeElement)CodeEnum.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 607return (EnvDTE.CodeElement)CodeDelegate.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 614return (EnvDTE.CodeElement)CodeFunction.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 618return (EnvDTE.CodeElement)CodeProperty.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 621return (EnvDTE.CodeElement)CodeEvent.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 627return (EnvDTE.CodeElement)CodeEvent.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 633return (EnvDTE.CodeElement)CodeVariable.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node));