283 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 (93)
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)
252
isEquals = syntaxKinds.ReferenceEqualsExpression == condition.
RawKind
;
253
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 (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)
439
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
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
76
assignmentOperation.Syntax.
RawKind
== semanticFacts.SyntaxFacts.SyntaxKinds.SimpleAssignmentExpression)
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)
873
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)
873
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)
7688
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 (28)
AddImport\SymbolReferenceFinder.cs (1)
167
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)
58
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 (2)
169
mappedMember = mappedMember.Parent?.
RawKind
== syntaxKinds.GlobalStatement
173
mappedMember = mappedMember.
RawKind
== syntaxKinds.PrimaryConstructorBaseType
ExtractMethod\MethodExtractor.cs (1)
128
var mappedPoint = insertionPointNode.
RawKind
== syntaxKinds.GlobalStatement
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
233
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)
252
isEquals = syntaxKinds.ReferenceEqualsExpression == condition.
RawKind
;
253
var isNotEquals = syntaxKinds.ReferenceNotEqualsExpression == condition.
RawKind
;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
439
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 (92)
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 (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)
253
throw ExceptionUtilities.UnexpectedValue(pattern.
RawKind
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
76
assignmentOperation.Syntax.
RawKind
== semanticFacts.SyntaxFacts.SyntaxKinds.SimpleAssignmentExpression)
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));