276 references to RawKind
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
160
token.Parent.Parent.
RawKind
== (int)SyntaxKind.AddExpression)
RouteEmbeddedLanguage\Infrastructure\SyntaxNodeExtensions.cs (1)
46
while (node?.Parent?.
RawKind
== (int)SyntaxKind.ParenthesizedExpression)
Microsoft.CodeAnalysis (3)
Syntax\SeparatedSyntaxList.cs (1)
276
if (this[i].
RawKind
== rawKind)
Syntax\SyntaxList`1.cs (1)
542
if (child.
RawKind
== rawKind)
Syntax\SyntaxNodeOrToken.cs (1)
92
public int RawKind => _token?.RawKind ?? _nodeOrParent?.
RawKind
?? 0;
Microsoft.CodeAnalysis.CodeStyle (91)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (2)
73
var parentKind = parenthesizedExpression.Parent?.
RawKind
;
74
var childKind = child.
RawKind
;
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
68
var isEquals = syntaxKinds.ReferenceEqualsExpression == condition.
RawKind
;
69
var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.
RawKind
;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
316
if (this.SyntaxFacts.SyntaxKinds.CollectionInitializerExpression == argumentExpression.
RawKind
)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
99
var binaryKind = _syntaxFacts.SyntaxKinds.Convert<TSyntaxKind>(binaryExpression.
RawKind
);
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
236
isEquals = syntaxKinds.ReferenceEqualsExpression == condition.
RawKind
;
237
var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.
RawKind
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
179
Contract.ThrowIfTrue(node1.
RawKind
== 0 || node2.
RawKind
== 0);
922
if (poppedDirective.
RawKind
== syntaxKinds.IfDirectiveTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
142
RoslynDebug.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)
445
if (syntaxKinds.AddressOfExpression == SimpleNameOrMemberAccessExpressionOpt.Parent?.
RawKind
)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (3)
251
var qualifiedNameSyntaxKind = generator.QualifiedName(generator.IdentifierName("ignored"), generator.IdentifierName("ignored")).
RawKind
;
252
var memberAccessExpressionSyntaxKind = generator.MemberAccessExpression(generator.IdentifierName("ignored"), "ignored").
RawKind
;
260
if (expression.
RawKind
== qualifiedNameSyntaxKind)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
165
while (sourceSyntax is { Parent.
RawKind
: var kind } && kind == suppressKind)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
253
throw ExceptionUtilities.UnexpectedValue(pattern.
RawKind
);
Microsoft.CodeAnalysis.CSharp (6)
Compilation\MemberSemanticModel.cs (3)
2322
case {
RawKind
: (int)SyntaxKind.SimpleMemberAccessExpression, Parent.
RawKind
: (int)SyntaxKind.InvocationExpression }:
2328
case {
RawKind
: (int)SyntaxKind.ComplexElementInitializerExpression }:
CSharpExtensions.cs (3)
49
return node?.
RawKind
== (int)kind;
205
/// Returns <see cref="SyntaxKind"/> for <see cref="SyntaxNode"/> from <see cref="SyntaxNode.
RawKind
"/> property.
209
var rawKind = node.
RawKind
;
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
222
Initializer: null or {
RawKind
: (int)SyntaxKind.CollectionInitializerExpression }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
865
RawKind
: (int)SyntaxKind.SimpleMemberAccessExpression,
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
43
RawKind
: (int)SyntaxKind.ObjectInitializerExpression,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
55
return accessorList is { Accessors: [{ AttributeLists.Count: 0,
RawKind
: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
518
return 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)
265
RawKind
: (int)SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.Features (10)
ConvertForToForEach\CSharpConvertForToForEachCodeRefactoringProvider.cs (1)
52
if (forStatement is { Declaration.Variables: [{ Initializer: not null } declarator], Condition.
RawKind
: (int)SyntaxKind.LessThanExpression, Incrementors.Count: 1 })
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
1371
Debug.Assert(oldNode.
RawKind
== newNode.
RawKind
);
2638
Debug.Assert(edit.Kind != EditKind.Update || edit.OldNode.
RawKind
== edit.NewNode.
RawKind
);
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
222
Initializer: null or {
RawKind
: (int)SyntaxKind.CollectionInitializerExpression }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
865
RawKind
: (int)SyntaxKind.SimpleMemberAccessExpression,
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
43
RawKind
: (int)SyntaxKind.ObjectInitializerExpression,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
55
return accessorList is { Accessors: [{ AttributeLists.Count: 0,
RawKind
: (int)SyntaxKind.GetAccessorDeclaration } accessor] }
UseAutoProperty\UseAutoPropertyRewriter.cs (1)
47
Parent: InitializerExpressionSyntax {
RawKind
: (int)SyntaxKind.ObjectInitializerExpression }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (1)
758
step => Assert.True(step.Outputs.Single().Value is AccessorDeclarationSyntax {
RawKind
: (int)SyntaxKind.GetAccessorDeclaration }));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
DeclarationTests.cs (2)
921
if (node.Span == nodeInUnderlying.Span && node.
RawKind
== nodeInUnderlying.
RawKind
)
SymbolDisplay\SymbolDisplayTests.cs (1)
7516
var structure = semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.
RawKind
== (int)VisualBasic.SyntaxKind.StructureStatement);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (1)
402
case PostfixUnaryExpressionSyntax {
RawKind
: (int)SyntaxKind.SuppressNullableWarningExpression, Operand: { } operand }:
FunctionPointerUtilities.cs (1)
182
case PrefixUnaryExpressionSyntax {
RawKind
: (int)SyntaxKind.AddressOfExpression, Operand: var operand }:
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
518
return 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)
155
hasIncompleteParentMember = nameNode?.Parent?.
RawKind
== syntaxFacts.SyntaxKinds.IncompleteMember;
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
38
var 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)
63
if (interpolation?.
RawKind
!= syntaxFacts.SyntaxKinds.Interpolation)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (2)
98
syntaxFacts.SyntaxKinds.AddExpression == token.Parent.Parent.
RawKind
)
168
if (interpolation?.
RawKind
!= syntaxFacts.SyntaxKinds.Interpolation)
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
157
mappedMember = mappedMember.Parent?.
RawKind
== syntaxKinds.GlobalStatement
ExtractMethod\MethodExtractor.cs (1)
130
var mappedPoint = insertionPointNode.
RawKind
== syntaxKinds.GlobalStatement
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
220
if (syntaxKindsService.InterpolatedStringExpression == expression.
RawKind
&& value is string)
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
170
GetNearestParentJumpStatementKind(ifNode).Equals(syntaxKinds.Convert<TSyntaxKind>(ifBodySingleExitPointOpt.
RawKind
)))
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (3)
55
while (expression.Parent?.
RawKind
== expression.
RawKind
)
73
var title = GetTitle(syntaxKinds, expression.
RawKind
);
SpellCheck\AbstractSpellCheckSpanService.cs (1)
102
token.Parent?.
RawKind
== _syntaxKinds.InterpolatedStringText)
SplitOrMergeIfStatements\AbstractSplitIfStatementCodeRefactoringProvider.cs (1)
85
while (current.Parent?.
RawKind
== syntaxKind)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
73
var parentKind = parenthesizedExpression.Parent?.
RawKind
;
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (2)
68
var isEquals = syntaxKinds.ReferenceEqualsExpression == condition.
RawKind
;
69
var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.
RawKind
;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
316
if (this.SyntaxFacts.SyntaxKinds.CollectionInitializerExpression == argumentExpression.
RawKind
)
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
99
var binaryKind = _syntaxFacts.SyntaxKinds.Convert<TSyntaxKind>(binaryExpression.
RawKind
);
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
236
isEquals = syntaxKinds.ReferenceEqualsExpression == condition.
RawKind
;
237
var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.
RawKind
;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
445
if (syntaxKinds.AddressOfExpression == SimpleNameOrMemberAccessExpressionOpt.Parent?.
RawKind
)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (3)
251
var qualifiedNameSyntaxKind = generator.QualifiedName(generator.IdentifierName("ignored"), generator.IdentifierName("ignored")).
RawKind
;
252
var memberAccessExpressionSyntaxKind = generator.MemberAccessExpression(generator.IdentifierName("ignored"), "ignored").
RawKind
;
260
if (expression.
RawKind
== qualifiedNameSyntaxKind)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
165
while (sourceSyntax is { Parent.
RawKind
: var kind } && kind == suppressKind)
Microsoft.CodeAnalysis.Test.Utilities (7)
Compilation\CompilationExtensions.cs (1)
337
Assert.False(true, $"Duplicate explicit node for syntax ({operation.Syntax.
RawKind
}): {operation.Syntax.ToString()}");
Compilation\ControlFlowGraphVerifier.cs (1)
883
RawKind
: (int)CSharp.SyntaxKind.SimpleAssignmentExpression,
Compilation\OperationTreeVerifier.cs (1)
317
Assert.False(true, $"Duplicate explicit node for syntax ({operation.Syntax.
RawKind
}): {operation.Syntax.ToString()}");
Compilation\TestOperationVisitor.cs (2)
204
Assert.False(true, $"Duplicate explicit node for syntax ({descendant.Syntax.
RawKind
}): {descendant.Syntax.ToString()}");
588
Assert.True(operation.Descendants().All(n => n.IsImplicit), $"Explicit node in default argument value ({operation.Syntax.
RawKind
}): {operation.Syntax.ToString()}");
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
38
SyntaxKind = node == null ? default(TLanguageKindEnum) : (TLanguageKindEnum)(object)(ushort)node.
RawKind
;
MarkedSource\SourceWithMarkedNodes.cs (1)
128
var nodeOfKind = node.FirstAncestorOrSelf<SyntaxNode>(n => n.
RawKind
== marker.SyntaxKind);
Microsoft.CodeAnalysis.VisualBasic (3)
VisualBasicExtensions.vb (3)
52
Return node IsNot Nothing AndAlso node.
RawKind
= kind
205
''' Returns <see cref="SyntaxKind"/> for <see cref="SyntaxNode"/> from <see cref="SyntaxNode.
RawKind
"/> property.
209
Dim rawKind = node.
RawKind
Microsoft.CodeAnalysis.VisualBasic.Features (4)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (4)
431
If oldStatement.
RawKind
<> newStatement.
RawKind
Then
881
Debug.Assert(oldNode.
RawKind
= newNode.
RawKind
)
Microsoft.CodeAnalysis.Workspaces (89)
Differencing\AbstractSyntaxComparer.cs (3)
183
var 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)
179
Contract.ThrowIfTrue(node1.
RawKind
== 0 || node2.
RawKind
== 0);
922
if (poppedDirective.
RawKind
== syntaxKinds.IfDirectiveTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
142
RoslynDebug.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)
253
throw ExceptionUtilities.UnexpectedValue(pattern.
RawKind
);
Microsoft.VisualStudio.LanguageServices.CSharp (11)
CodeModel\CSharpCodeModelService.cs (11)
596
return (EnvDTE.CodeElement)CodeNamespace.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
599
return (EnvDTE.CodeElement)CodeClass.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
601
return (EnvDTE.CodeElement)CodeInterface.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
603
return (EnvDTE.CodeElement)CodeStruct.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
605
return (EnvDTE.CodeElement)CodeEnum.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
607
return (EnvDTE.CodeElement)CodeDelegate.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
614
return (EnvDTE.CodeElement)CodeFunction.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
618
return (EnvDTE.CodeElement)CodeProperty.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
621
return (EnvDTE.CodeElement)CodeEvent.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
627
return (EnvDTE.CodeElement)CodeEvent.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));
633
return (EnvDTE.CodeElement)CodeVariable.CreateUnknown(state, fileCodeModel, node.
RawKind
, GetName(node));