281 references to RawKind
Microsoft.CodeAnalysis (3)
Syntax\SeparatedSyntaxList.cs (1)
247if (this[i].RawKind == rawKind)
Syntax\SyntaxList`1.cs (1)
503if (child.RawKind == rawKind)
Syntax\SyntaxNodeOrToken.cs (1)
92public int RawKind => _token?.RawKind ?? _nodeOrParent?.RawKind ?? 0;
Microsoft.CodeAnalysis.CodeStyle (87)
AbstractDocumentationCommentService.cs (1)
142Debug.Assert(false, $"Unexpected XML syntax kind {attribute.RawKind}");
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
73var parentKind = parenthesizedExpression.Parent?.RawKind; 74var childKind = child.RawKind;
AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
68var isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 69var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
95var binaryKind = _syntaxFacts.SyntaxKinds.Convert<TSyntaxKind>(binaryExpression.RawKind);
AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
235isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 236var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
ISyntaxFactsExtensions.cs (77)
683=> node?.RawKind == syntaxFacts.SyntaxKinds.SkippedTokensTrivia; 723=> node?.RawKind == syntaxFacts.SyntaxKinds.GenericName; 726=> node?.RawKind == syntaxFacts.SyntaxKinds.IdentifierName; 729=> node?.RawKind == syntaxFacts.SyntaxKinds.QualifiedName; 736=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleType; 743=> node?.RawKind == syntaxFacts.SyntaxKinds.CharacterLiteralExpression; 746=> node?.RawKind == syntaxFacts.SyntaxKinds.DefaultLiteralExpression; 749=> node?.RawKind == syntaxFacts.SyntaxKinds.FalseLiteralExpression; 752=> node?.RawKind == syntaxFacts.SyntaxKinds.NumericLiteralExpression; 755=> node?.RawKind == syntaxFacts.SyntaxKinds.NullLiteralExpression; 758=> node?.RawKind == syntaxFacts.SyntaxKinds.StringLiteralExpression; 761=> node?.RawKind == syntaxFacts.SyntaxKinds.TrueLiteralExpression; 768=> node?.RawKind == syntaxFacts.SyntaxKinds.ArrayCreationExpression; 771=> node?.RawKind == syntaxFacts.SyntaxKinds.AwaitExpression; 774=> node?.RawKind == syntaxFacts.SyntaxKinds.BaseExpression; 777=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalExpression; 780=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalAccessExpression; 783=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitArrayCreationExpression; 786=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ImplicitObjectCreationExpression; 789=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexExpression; 792=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringExpression; 795=> node?.RawKind == syntaxFacts.SyntaxKinds.Interpolation; 798=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringText; 801=> node?.RawKind == syntaxFacts.SyntaxKinds.InvocationExpression; 804=> node?.RawKind == syntaxFacts.SyntaxKinds.IsTypeExpression; 807=> node?.RawKind == syntaxFacts.SyntaxKinds.IsNotTypeExpression; 810=> node?.RawKind == syntaxFacts.SyntaxKinds.IsPatternExpression; 813=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalAndExpression; 816=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalOrExpression; 819=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalNotExpression; 822=> node?.RawKind == syntaxFacts.SyntaxKinds.ObjectCreationExpression; 825=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedExpression; 828=> node?.RawKind == syntaxFacts.SyntaxKinds.QueryExpression; 831=> node?.RawKind == syntaxFacts.SyntaxKinds.RangeExpression; 834=> node?.RawKind == syntaxFacts.SyntaxKinds.RefExpression; 837=> node?.RawKind == syntaxFacts.SyntaxKinds.SimpleMemberAccessExpression; 840=> node?.RawKind == syntaxFacts.SyntaxKinds.ThisExpression; 843=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ThrowExpression; 846=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleExpression; 849=> node.ChildNodes().Any(c => c.RawKind == syntaxFacts.SyntaxKinds.GlobalStatement); 856=> node?.RawKind == syntaxFacts.SyntaxKinds.AndPattern; 859=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstantPattern; 862=> node?.RawKind == syntaxFacts.SyntaxKinds.DeclarationPattern; 865=> node?.RawKind == syntaxFacts.SyntaxKinds.NotPattern; 868=> node?.RawKind == syntaxFacts.SyntaxKinds.OrPattern; 871=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedPattern; 874=> node?.RawKind == syntaxFacts.SyntaxKinds.RecursivePattern; 877=> node?.RawKind == syntaxFacts.SyntaxKinds.RelationalPattern; 880=> node?.RawKind == syntaxFacts.SyntaxKinds.TypePattern; 883=> node?.RawKind == syntaxFacts.SyntaxKinds.VarPattern; 890=> node?.RawKind == syntaxFacts.SyntaxKinds.ExpressionStatement; 893=> node?.RawKind == syntaxFacts.SyntaxKinds.ForEachStatement; 896=> node?.RawKind == syntaxFacts.SyntaxKinds.IfStatement; 899=> node?.RawKind == syntaxFacts.SyntaxKinds.LocalDeclarationStatement; 902=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.LocalFunctionStatement; 905=> node?.RawKind == syntaxFacts.SyntaxKinds.LockStatement; 908=> node?.RawKind == syntaxFacts.SyntaxKinds.ReturnStatement; 911=> node?.RawKind == syntaxFacts.SyntaxKinds.ThrowStatement; 914=> node?.RawKind == syntaxFacts.SyntaxKinds.UsingStatement; 917=> node?.RawKind == syntaxFacts.SyntaxKinds.WhileStatement; 920=> node?.RawKind == syntaxFacts.SyntaxKinds.YieldReturnStatement; 927=> node?.RawKind == syntaxFacts.SyntaxKinds.Attribute; 930=> node?.RawKind == syntaxFacts.SyntaxKinds.ClassDeclaration; 933=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstructorDeclaration; 936=> node?.RawKind == syntaxFacts.SyntaxKinds.EnumDeclaration; 942=> node?.RawKind == syntaxFacts.SyntaxKinds.InterfaceDeclaration; 945=> node?.RawKind == syntaxFacts.SyntaxKinds.Parameter; 948=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeConstraint; 951=> node?.RawKind == syntaxFacts.SyntaxKinds.VariableDeclarator; 954=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldDeclaration; 957=> node?.RawKind == syntaxFacts.SyntaxKinds.PropertyDeclaration; 960=> node?.RawKind == syntaxFacts.SyntaxKinds.StructDeclaration; 963=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeArgumentList; 970=> node?.RawKind == syntaxFacts.SyntaxKinds.ElseClause; 972=> node?.RawKind == syntaxFacts.SyntaxKinds.EqualsValueClause; 979=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitElementAccess; 982=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexerMemberCref;
SyntaxNodeExtensions.cs (2)
174Contract.ThrowIfTrue(node1.RawKind == 0 || node2.RawKind == 0);
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
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)
AbstractUseCompoundAssignmentCodeFixProvider.cs (1)
84var assignmentOpKind = _binaryToAssignmentMap[syntaxKinds.Convert<TSyntaxKind>(rightOfAssign.RawKind)];
SyntaxGeneratorExtensions_Negate.cs (1)
225throw ExceptionUtilities.UnexpectedValue(pattern.RawKind);
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.IdentifierUsedAsValueFinder.cs (4)
77!(id.Parent is BinaryExpressionSyntax { RawKind: (int)SyntaxKind.IsExpression } isExpression && 135case GotoStatementSyntax { RawKind: (int)SyntaxKind.GotoStatement }: 157!(expression.Parent is BinaryExpressionSyntax { RawKind: (int)SyntaxKind.IsExpression } isExpression && 223case MemberAccessExpressionSyntax { RawKind: (int)SyntaxKind.SimpleMemberAccessExpression } memberAccess when memberAccess.Expression == id:
Binder\Binder_Expressions.cs (1)
6368Debug.Assert((left.Parent is MemberAccessExpressionSyntax { RawKind: (int)SyntaxKind.SimpleMemberAccessExpression } memberAccess && memberAccess.Expression == left) ||
Compilation\MemberSemanticModel.cs (1)
2169case PostfixUnaryExpressionSyntax { RawKind: (int)SyntaxKind.SuppressNullableWarningExpression } n:
Compiler\MethodCompiler.cs (4)
2082case GotoStatementSyntax { RawKind: (int)SyntaxKind.GotoStatement }: 2090!(expression.Parent is BinaryExpressionSyntax { RawKind: (int)SyntaxKind.IsExpression } isExpression && 2130!(id.Parent is BinaryExpressionSyntax { RawKind: (int)SyntaxKind.IsExpression } isExpression && 2176if (parent is BinaryExpressionSyntax { RawKind: (int)SyntaxKind.IsExpression } isExpression && isExpression.Right == child)
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;
FlowAnalysis\NullableWalker.cs (1)
940if (method is SourceMemberMethodSymbol { SyntaxNode: ConstructorDeclarationSyntax { Initializer: { RawKind: var initializerKind } } })
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
ExpressionSyntaxExtensions.cs (1)
502return expression is { Parent.RawKind: not (int)SyntaxKind.ConditionalAccessExpression };
UseExpressionBodyHelper`1.cs (1)
52return accessorList is { Accessors: [{ AttributeLists.Count: 0, RawKind: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\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)
268RawKind: (int)SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.Features (12)
ConvertForToForEach\CSharpConvertForToForEachCodeRefactoringProvider.cs (1)
50if (forStatement is { Declaration.Variables: [{ Initializer: not null } declarator], Condition.RawKind: (int)SyntaxKind.LessThanExpression, Incrementors.Count: 1 })
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
682if (oldNode.RawKind == newNode.RawKind) 1415Debug.Assert(oldNode.RawKind == newNode.RawKind); 2603Debug.Assert(edit.Kind != EditKind.Update || edit.OldNode.RawKind == edit.NewNode.RawKind);
EditAndContinue\SyntaxUtilities.cs (4)
138if (rightNodeOpt != null && leftNode.RawKind != rightNodeOpt.RawKind) 179Debug.Assert(leftNode.RawKind == rightNode.RawKind);
UseExpressionBodyHelper`1.cs (1)
52return accessorList is { Accessors: [{ AttributeLists.Count: 0, RawKind: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
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)
398if (node.Span == nodeInUnderlying.Span && node.RawKind == nodeInUnderlying.RawKind)
SymbolDisplay\SymbolDisplayTests.cs (1)
7380var 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)
180case PrefixUnaryExpressionSyntax { RawKind: (int)SyntaxKind.AddressOfExpression, Operand: var operand }:
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
502return expression is { Parent.RawKind: not (int)SyntaxKind.ConditionalAccessExpression };
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
947{ Parent.RawKind: (int)SyntaxKind.FunctionPointerParameter } => true, 949{ Parent: TypeSyntax { Parent.RawKind: (int)SyntaxKind.FunctionPointerParameter } } => true,
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
44if (expression is MemberAccessExpressionSyntax { Expression.RawKind: (int)SyntaxKind.ThisExpression } memberAccessExpression)
Microsoft.CodeAnalysis.Features (25)
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)
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
73var parentKind = parenthesizedExpression.Parent?.RawKind; 74var childKind = child.RawKind;
AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
68var isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 69var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
AbstractUseCompoundAssignmentCodeFixProvider.cs (1)
84var assignmentOpKind = _binaryToAssignmentMap[syntaxKinds.Convert<TSyntaxKind>(rightOfAssign.RawKind)];
AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
95var binaryKind = _syntaxFacts.SyntaxKinds.Convert<TSyntaxKind>(binaryExpression.RawKind);
AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
235isEquals = syntaxKinds.ReferenceEqualsExpression == condition.RawKind; 236var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.RawKind;
AddImport\SymbolReferenceFinder.cs (1)
174hasIncompleteParentMember = nameNode?.Parent?.RawKind == syntaxFacts.SyntaxKinds.IncompleteMember;
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
38var from = fromNodes.FirstOrDefault(n => n.RawKind == FromKind);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1236bodyName = $"<node {newBody.RawKind} has no display name>";
EditAndContinue\RudeEditDiagnostic.cs (1)
35: this(kind, span, (ushort)(node != null ? node.RawKind : 0), arguments ?? Array.Empty<string>())
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (1)
86if (interpolation?.RawKind != syntaxFacts.SyntaxKinds.Interpolation)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
147if (interpolation?.RawKind != syntaxFacts.SyntaxKinds.Interpolation)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
445if (syntaxKinds.AddressOfExpression == SimpleNameOrMemberAccessExpressionOpt.Parent?.RawKind)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
220if (syntaxKindsService.InterpolatedStringExpression == expression.RawKind && value is string)
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
171GetNearestParentJumpStatementKind(ifNode).Equals(syntaxKinds.Convert<TSyntaxKind>(ifBodySingleExitPointOpt.RawKind)))
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (3)
56while (expression.Parent?.RawKind == expression.RawKind) 74var title = GetTitle(syntaxKinds, expression.RawKind);
SpellCheck\AbstractSpellCheckSpanService.cs (1)
88token.Parent?.RawKind == _syntaxKinds.InterpolatedStringText)
SplitOrMergeIfStatements\AbstractSplitIfStatementCodeRefactoringProvider.cs (1)
85while (current.Parent?.RawKind == syntaxKind)
Microsoft.CodeAnalysis.Test.Utilities (7)
Compilation\CompilationExtensions.cs (1)
340Assert.False(true, $"Duplicate explicit node for syntax ({operation.Syntax.RawKind}): {operation.Syntax.ToString()}");
Compilation\ControlFlowGraphVerifier.cs (1)
921RawKind: (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()}"); 576Assert.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 == spanAndKindAndId.Item2);
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 (12)
EditAndContinue\SyntaxUtilities.vb (4)
76If rightNodeOpt IsNot Nothing AndAlso leftNode.RawKind <> rightNodeOpt.RawKind Then 109Debug.Assert(leftNode.RawKind = rightNode.RawKind)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (8)
502Debug.Assert(partnerDeclarationBodyOpt Is Nothing OrElse partnerDeclarationBodyOpt.RawKind = declarationBody.RawKind) 996If oldStatement.RawKind <> newStatement.RawKind Then 1334Debug.Assert(oldNode.RawKind = newNode.RawKind) 2575Debug.Assert(edit.Kind <> EditKind.Update OrElse edit.OldNode.RawKind = edit.NewNode.RawKind)
Microsoft.CodeAnalysis.Workspaces (86)
AbstractDocumentationCommentService.cs (1)
142Debug.Assert(false, $"Unexpected XML syntax kind {attribute.RawKind}");
Differencing\AbstractSyntaxComparer.cs (3)
185var label = Classify(node.RawKind, node, out var isLeaf); 198=> Classify(node.RawKind, node, out _) != IgnoredNode; 203=> Classify(node.RawKind, node, out _);
ISyntaxFactsExtensions.cs (77)
683=> node?.RawKind == syntaxFacts.SyntaxKinds.SkippedTokensTrivia; 723=> node?.RawKind == syntaxFacts.SyntaxKinds.GenericName; 726=> node?.RawKind == syntaxFacts.SyntaxKinds.IdentifierName; 729=> node?.RawKind == syntaxFacts.SyntaxKinds.QualifiedName; 736=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleType; 743=> node?.RawKind == syntaxFacts.SyntaxKinds.CharacterLiteralExpression; 746=> node?.RawKind == syntaxFacts.SyntaxKinds.DefaultLiteralExpression; 749=> node?.RawKind == syntaxFacts.SyntaxKinds.FalseLiteralExpression; 752=> node?.RawKind == syntaxFacts.SyntaxKinds.NumericLiteralExpression; 755=> node?.RawKind == syntaxFacts.SyntaxKinds.NullLiteralExpression; 758=> node?.RawKind == syntaxFacts.SyntaxKinds.StringLiteralExpression; 761=> node?.RawKind == syntaxFacts.SyntaxKinds.TrueLiteralExpression; 768=> node?.RawKind == syntaxFacts.SyntaxKinds.ArrayCreationExpression; 771=> node?.RawKind == syntaxFacts.SyntaxKinds.AwaitExpression; 774=> node?.RawKind == syntaxFacts.SyntaxKinds.BaseExpression; 777=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalExpression; 780=> node?.RawKind == syntaxFacts.SyntaxKinds.ConditionalAccessExpression; 783=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitArrayCreationExpression; 786=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ImplicitObjectCreationExpression; 789=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexExpression; 792=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringExpression; 795=> node?.RawKind == syntaxFacts.SyntaxKinds.Interpolation; 798=> node?.RawKind == syntaxFacts.SyntaxKinds.InterpolatedStringText; 801=> node?.RawKind == syntaxFacts.SyntaxKinds.InvocationExpression; 804=> node?.RawKind == syntaxFacts.SyntaxKinds.IsTypeExpression; 807=> node?.RawKind == syntaxFacts.SyntaxKinds.IsNotTypeExpression; 810=> node?.RawKind == syntaxFacts.SyntaxKinds.IsPatternExpression; 813=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalAndExpression; 816=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalOrExpression; 819=> node?.RawKind == syntaxFacts.SyntaxKinds.LogicalNotExpression; 822=> node?.RawKind == syntaxFacts.SyntaxKinds.ObjectCreationExpression; 825=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedExpression; 828=> node?.RawKind == syntaxFacts.SyntaxKinds.QueryExpression; 831=> node?.RawKind == syntaxFacts.SyntaxKinds.RangeExpression; 834=> node?.RawKind == syntaxFacts.SyntaxKinds.RefExpression; 837=> node?.RawKind == syntaxFacts.SyntaxKinds.SimpleMemberAccessExpression; 840=> node?.RawKind == syntaxFacts.SyntaxKinds.ThisExpression; 843=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.ThrowExpression; 846=> node?.RawKind == syntaxFacts.SyntaxKinds.TupleExpression; 849=> node.ChildNodes().Any(c => c.RawKind == syntaxFacts.SyntaxKinds.GlobalStatement); 856=> node?.RawKind == syntaxFacts.SyntaxKinds.AndPattern; 859=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstantPattern; 862=> node?.RawKind == syntaxFacts.SyntaxKinds.DeclarationPattern; 865=> node?.RawKind == syntaxFacts.SyntaxKinds.NotPattern; 868=> node?.RawKind == syntaxFacts.SyntaxKinds.OrPattern; 871=> node?.RawKind == syntaxFacts.SyntaxKinds.ParenthesizedPattern; 874=> node?.RawKind == syntaxFacts.SyntaxKinds.RecursivePattern; 877=> node?.RawKind == syntaxFacts.SyntaxKinds.RelationalPattern; 880=> node?.RawKind == syntaxFacts.SyntaxKinds.TypePattern; 883=> node?.RawKind == syntaxFacts.SyntaxKinds.VarPattern; 890=> node?.RawKind == syntaxFacts.SyntaxKinds.ExpressionStatement; 893=> node?.RawKind == syntaxFacts.SyntaxKinds.ForEachStatement; 896=> node?.RawKind == syntaxFacts.SyntaxKinds.IfStatement; 899=> node?.RawKind == syntaxFacts.SyntaxKinds.LocalDeclarationStatement; 902=> node != null && node.RawKind == syntaxFacts.SyntaxKinds.LocalFunctionStatement; 905=> node?.RawKind == syntaxFacts.SyntaxKinds.LockStatement; 908=> node?.RawKind == syntaxFacts.SyntaxKinds.ReturnStatement; 911=> node?.RawKind == syntaxFacts.SyntaxKinds.ThrowStatement; 914=> node?.RawKind == syntaxFacts.SyntaxKinds.UsingStatement; 917=> node?.RawKind == syntaxFacts.SyntaxKinds.WhileStatement; 920=> node?.RawKind == syntaxFacts.SyntaxKinds.YieldReturnStatement; 927=> node?.RawKind == syntaxFacts.SyntaxKinds.Attribute; 930=> node?.RawKind == syntaxFacts.SyntaxKinds.ClassDeclaration; 933=> node?.RawKind == syntaxFacts.SyntaxKinds.ConstructorDeclaration; 936=> node?.RawKind == syntaxFacts.SyntaxKinds.EnumDeclaration; 942=> node?.RawKind == syntaxFacts.SyntaxKinds.InterfaceDeclaration; 945=> node?.RawKind == syntaxFacts.SyntaxKinds.Parameter; 948=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeConstraint; 951=> node?.RawKind == syntaxFacts.SyntaxKinds.VariableDeclarator; 954=> node?.RawKind == syntaxFacts.SyntaxKinds.FieldDeclaration; 957=> node?.RawKind == syntaxFacts.SyntaxKinds.PropertyDeclaration; 960=> node?.RawKind == syntaxFacts.SyntaxKinds.StructDeclaration; 963=> node?.RawKind == syntaxFacts.SyntaxKinds.TypeArgumentList; 970=> node?.RawKind == syntaxFacts.SyntaxKinds.ElseClause; 972=> node?.RawKind == syntaxFacts.SyntaxKinds.EqualsValueClause; 979=> node?.RawKind == syntaxFacts.SyntaxKinds.ImplicitElementAccess; 982=> node?.RawKind == syntaxFacts.SyntaxKinds.IndexerMemberCref;
Shared\Extensions\SemanticModelExtensions.cs (2)
94(token.Parent?.RawKind == syntaxKinds.UsingStatement || token.Parent?.RawKind == syntaxKinds.LocalDeclarationStatement))
SyntaxGeneratorExtensions_Negate.cs (1)
225throw ExceptionUtilities.UnexpectedValue(pattern.RawKind);
SyntaxNodeExtensions.cs (2)
174Contract.ThrowIfTrue(node1.RawKind == 0 || node2.RawKind == 0);
Microsoft.VisualStudio.LanguageServices.CSharp (11)
CodeModel\CSharpCodeModelService.cs (11)
599return (EnvDTE.CodeElement)CodeNamespace.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 602return (EnvDTE.CodeElement)CodeClass.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 604return (EnvDTE.CodeElement)CodeInterface.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 606return (EnvDTE.CodeElement)CodeStruct.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 608return (EnvDTE.CodeElement)CodeEnum.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 610return (EnvDTE.CodeElement)CodeDelegate.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 617return (EnvDTE.CodeElement)CodeFunction.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 621return (EnvDTE.CodeElement)CodeProperty.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 624return (EnvDTE.CodeElement)CodeEvent.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 630return (EnvDTE.CodeElement)CodeEvent.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node)); 636return (EnvDTE.CodeElement)CodeVariable.CreateUnknown(state, fileCodeModel, node.RawKind, GetName(node));
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\InternalElements\AbstractCodeElement.cs (1)
65_nodeKind.Value != node.RawKind)