283 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 (93)
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)
252isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 253var 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 (81)
706=> node?.RawKind == syntaxFacts.SyntaxKinds.SkippedTokensTrivia; 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.ImplicitArrayCreationExpression; 812=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ImplicitObjectCreationExpression; 815=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexExpression; 818=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringExpression; 821=> node?.RawKind == syntaxFacts.SyntaxKinds.Interpolation; 824=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringText; 827=> node?.RawKind == syntaxFacts.SyntaxKinds.InvocationExpression; 830=> node?.RawKind == syntaxFacts.SyntaxKinds.IsTypeExpression; 833=> node?.RawKind == syntaxFacts.SyntaxKinds.IsNotTypeExpression; 836=> node?.RawKind == syntaxFacts.SyntaxKinds.IsPatternExpression; 839=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalAndExpression; 842=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalOrExpression; 845=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalNotExpression; 848=> node?.RawKind == syntaxFacts.SyntaxKinds.ObjectCreationExpression; 851=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedExpression; 854=> node?.RawKind == syntaxFacts.SyntaxKinds.QueryExpression; 857=> node?.RawKind == syntaxFacts.SyntaxKinds.RangeExpression; 860=> node?.RawKind == syntaxFacts.SyntaxKinds.RefExpression; 863=> node?.RawKind == syntaxFacts.SyntaxKinds.SimpleMemberAccessExpression; 866=> node?.RawKind == syntaxFacts.SyntaxKinds.ThisExpression; 869=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ThrowExpression; 872=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleExpression; 875=> node.ChildNodes().Any(c => c.RawKind == syntaxFacts.SyntaxKinds.GlobalStatement); 882=> node?.RawKind == syntaxFacts.SyntaxKinds.AndPattern; 885=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstantPattern; 888=> node?.RawKind == syntaxFacts.SyntaxKinds.DeclarationPattern; 891=> node?.RawKind == syntaxFacts.SyntaxKinds.ListPattern; 894=> node?.RawKind == syntaxFacts.SyntaxKinds.NotPattern; 897=> node?.RawKind == syntaxFacts.SyntaxKinds.OrPattern; 900=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedPattern; 903=> node?.RawKind == syntaxFacts.SyntaxKinds.RecursivePattern; 906=> node?.RawKind == syntaxFacts.SyntaxKinds.RelationalPattern; 909=> node?.RawKind == syntaxFacts.SyntaxKinds.TypePattern; 912=> node?.RawKind == syntaxFacts.SyntaxKinds.VarPattern; 919=> node?.RawKind == syntaxFacts.SyntaxKinds.ExpressionStatement; 922=> node?.RawKind == syntaxFacts.SyntaxKinds.ForEachStatement; 925=> node?.RawKind == syntaxFacts.SyntaxKinds.ForStatement; 928=> node?.RawKind == syntaxFacts.SyntaxKinds.IfStatement; 931=> node?.RawKind == syntaxFacts.SyntaxKinds.LocalDeclarationStatement; 934=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.LocalFunctionStatement; 937=> node?.RawKind == syntaxFacts.SyntaxKinds.LockStatement; 940=> node?.RawKind == syntaxFacts.SyntaxKinds.ReturnStatement; 943=> node?.RawKind == syntaxFacts.SyntaxKinds.ThrowStatement; 946=> node?.RawKind == syntaxFacts.SyntaxKinds.UsingStatement; 949=> node?.RawKind == syntaxFacts.SyntaxKinds.WhileStatement; 952=> node?.RawKind == syntaxFacts.SyntaxKinds.YieldReturnStatement; 959=> node?.RawKind == syntaxFacts.SyntaxKinds.Attribute; 962=> node?.RawKind == syntaxFacts.SyntaxKinds.ClassDeclaration; 965=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstructorDeclaration; 968=> node?.RawKind == syntaxFacts.SyntaxKinds.EnumDeclaration; 974=> node?.RawKind == syntaxFacts.SyntaxKinds.InterfaceDeclaration; 977=> node?.RawKind == syntaxFacts.SyntaxKinds.Parameter; 980=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeConstraint; 983=> node?.RawKind == syntaxFacts.SyntaxKinds.VariableDeclarator; 986=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldDeclaration; 989=> node?.RawKind == syntaxFacts.SyntaxKinds.PropertyDeclaration; 992=> node?.RawKind == syntaxFacts.SyntaxKinds.StructDeclaration; 995=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeArgumentList; 1002=> node?.RawKind == syntaxFacts.SyntaxKinds.ElseClause; 1004=> node?.RawKind == syntaxFacts.SyntaxKinds.EqualsValueClause; 1011=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitElementAccess; 1014=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexerMemberCref; 1017=> node?.RawKind == syntaxFacts.SyntaxKinds.PrimaryConstructorBaseType;
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
439if (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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
76assignmentOperation.Syntax.RawKind == semanticFacts.SyntaxFacts.SyntaxKinds.SimpleAssignmentExpression)
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)
873RawKind: (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)
873RawKind: (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)
7688var 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 (28)
AddImport\SymbolReferenceFinder.cs (1)
167hasIncompleteParentMember = 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)
58if (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 (2)
169mappedMember = mappedMember.Parent?.RawKind == syntaxKinds.GlobalStatement 173mappedMember = mappedMember.RawKind == syntaxKinds.PrimaryConstructorBaseType
ExtractMethod\MethodExtractor.cs (1)
128var mappedPoint = insertionPointNode.RawKind == syntaxKinds.GlobalStatement
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
233if (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)
252isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 253var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
439if (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 (92)
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 (81)
706=> node?.RawKind == syntaxFacts.SyntaxKinds.SkippedTokensTrivia; 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.ImplicitArrayCreationExpression; 812=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ImplicitObjectCreationExpression; 815=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexExpression; 818=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringExpression; 821=> node?.RawKind == syntaxFacts.SyntaxKinds.Interpolation; 824=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringText; 827=> node?.RawKind == syntaxFacts.SyntaxKinds.InvocationExpression; 830=> node?.RawKind == syntaxFacts.SyntaxKinds.IsTypeExpression; 833=> node?.RawKind == syntaxFacts.SyntaxKinds.IsNotTypeExpression; 836=> node?.RawKind == syntaxFacts.SyntaxKinds.IsPatternExpression; 839=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalAndExpression; 842=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalOrExpression; 845=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalNotExpression; 848=> node?.RawKind == syntaxFacts.SyntaxKinds.ObjectCreationExpression; 851=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedExpression; 854=> node?.RawKind == syntaxFacts.SyntaxKinds.QueryExpression; 857=> node?.RawKind == syntaxFacts.SyntaxKinds.RangeExpression; 860=> node?.RawKind == syntaxFacts.SyntaxKinds.RefExpression; 863=> node?.RawKind == syntaxFacts.SyntaxKinds.SimpleMemberAccessExpression; 866=> node?.RawKind == syntaxFacts.SyntaxKinds.ThisExpression; 869=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ThrowExpression; 872=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleExpression; 875=> node.ChildNodes().Any(c => c.RawKind == syntaxFacts.SyntaxKinds.GlobalStatement); 882=> node?.RawKind == syntaxFacts.SyntaxKinds.AndPattern; 885=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstantPattern; 888=> node?.RawKind == syntaxFacts.SyntaxKinds.DeclarationPattern; 891=> node?.RawKind == syntaxFacts.SyntaxKinds.ListPattern; 894=> node?.RawKind == syntaxFacts.SyntaxKinds.NotPattern; 897=> node?.RawKind == syntaxFacts.SyntaxKinds.OrPattern; 900=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedPattern; 903=> node?.RawKind == syntaxFacts.SyntaxKinds.RecursivePattern; 906=> node?.RawKind == syntaxFacts.SyntaxKinds.RelationalPattern; 909=> node?.RawKind == syntaxFacts.SyntaxKinds.TypePattern; 912=> node?.RawKind == syntaxFacts.SyntaxKinds.VarPattern; 919=> node?.RawKind == syntaxFacts.SyntaxKinds.ExpressionStatement; 922=> node?.RawKind == syntaxFacts.SyntaxKinds.ForEachStatement; 925=> node?.RawKind == syntaxFacts.SyntaxKinds.ForStatement; 928=> node?.RawKind == syntaxFacts.SyntaxKinds.IfStatement; 931=> node?.RawKind == syntaxFacts.SyntaxKinds.LocalDeclarationStatement; 934=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.LocalFunctionStatement; 937=> node?.RawKind == syntaxFacts.SyntaxKinds.LockStatement; 940=> node?.RawKind == syntaxFacts.SyntaxKinds.ReturnStatement; 943=> node?.RawKind == syntaxFacts.SyntaxKinds.ThrowStatement; 946=> node?.RawKind == syntaxFacts.SyntaxKinds.UsingStatement; 949=> node?.RawKind == syntaxFacts.SyntaxKinds.WhileStatement; 952=> node?.RawKind == syntaxFacts.SyntaxKinds.YieldReturnStatement; 959=> node?.RawKind == syntaxFacts.SyntaxKinds.Attribute; 962=> node?.RawKind == syntaxFacts.SyntaxKinds.ClassDeclaration; 965=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstructorDeclaration; 968=> node?.RawKind == syntaxFacts.SyntaxKinds.EnumDeclaration; 974=> node?.RawKind == syntaxFacts.SyntaxKinds.InterfaceDeclaration; 977=> node?.RawKind == syntaxFacts.SyntaxKinds.Parameter; 980=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeConstraint; 983=> node?.RawKind == syntaxFacts.SyntaxKinds.VariableDeclarator; 986=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldDeclaration; 989=> node?.RawKind == syntaxFacts.SyntaxKinds.PropertyDeclaration; 992=> node?.RawKind == syntaxFacts.SyntaxKinds.StructDeclaration; 995=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeArgumentList; 1002=> node?.RawKind == syntaxFacts.SyntaxKinds.ElseClause; 1004=> node?.RawKind == syntaxFacts.SyntaxKinds.EqualsValueClause; 1011=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitElementAccess; 1014=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexerMemberCref; 1017=> node?.RawKind == syntaxFacts.SyntaxKinds.PrimaryConstructorBaseType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
253throw ExceptionUtilities.UnexpectedValue(pattern.RawKind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
76assignmentOperation.Syntax.RawKind == semanticFacts.SyntaxFacts.SyntaxKinds.SimpleAssignmentExpression)
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));