101 references to NameEquals
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpSemanticModel.cs (1)
93if (!isSpeculative && node.Parent != null && node.Parent.Kind() == SyntaxKind.NameEquals && node.Parent.Parent.Kind() == SyntaxKind.UsingDirective)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
91if (node.IsParentKind(SyntaxKind.NameEquals) && node.Parent.IsParentKind(SyntaxKind.UsingDirective))
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (2)
22=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.NameColon, SyntaxKind.NameEquals); 31case SyntaxKind.NameEquals:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
640if ((expression.IsParentKind(SyntaxKind.NameEquals) && expression.Parent.IsParentKind(SyntaxKind.AttributeArgument)) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
2126token.Parent.IsKind(SyntaxKind.NameEquals) && 2208if (token.Parent.IsKind(SyntaxKind.NameEquals) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (1)
57or SyntaxKind.NameEquals
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
91if (node.IsParentKind(SyntaxKind.NameEquals) && node.Parent.IsParentKind(SyntaxKind.UsingDirective))
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (2)
22=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.NameColon, SyntaxKind.NameEquals); 31case SyntaxKind.NameEquals:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\TopLevelStatementsTests.cs (2)
2919var nameRef = tree1.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "alias1" && !id.Parent.IsKind(SyntaxKind.NameEquals)).Single(); 2941nameRef = tree2.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(id => id.Identifier.ValueText == "alias2" && !id.Parent.IsKind(SyntaxKind.NameEquals)).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (83)
Parsing\FunctionPointerTests.cs (1)
4136N(SyntaxKind.NameEquals);
Parsing\LambdaParameterParsingTests.cs (2)
3426N(SyntaxKind.NameEquals); 3507N(SyntaxKind.NameEquals);
Parsing\RefFieldParsingTests.cs (2)
1105N(SyntaxKind.NameEquals); 1160N(SyntaxKind.NameEquals);
Parsing\ScriptParsingTests.cs (3)
358N(SyntaxKind.NameEquals); 1144N(SyntaxKind.NameEquals); 3616N(SyntaxKind.NameEquals);
Parsing\TopLevelStatementsParsingTests.cs (7)
1631N(SyntaxKind.NameEquals); 2147N(SyntaxKind.NameEquals); 2210N(SyntaxKind.NameEquals); 2680N(SyntaxKind.NameEquals); 2926N(SyntaxKind.NameEquals); 2977N(SyntaxKind.NameEquals); 3023N(SyntaxKind.NameEquals);
Parsing\UsingDirectiveParsingTests.cs (62)
370N(SyntaxKind.NameEquals); 621N(SyntaxKind.NameEquals); 673N(SyntaxKind.NameEquals); 725N(SyntaxKind.NameEquals); 785N(SyntaxKind.NameEquals); 877N(SyntaxKind.NameEquals); 914N(SyntaxKind.NameEquals); 951N(SyntaxKind.NameEquals); 991N(SyntaxKind.NameEquals); 1035N(SyntaxKind.NameEquals); 1080N(SyntaxKind.NameEquals); 1122N(SyntaxKind.NameEquals); 1170N(SyntaxKind.NameEquals); 1199N(SyntaxKind.NameEquals); 1242N(SyntaxKind.NameEquals); 1272N(SyntaxKind.NameEquals); 1317N(SyntaxKind.NameEquals); 1347N(SyntaxKind.NameEquals); 1393N(SyntaxKind.NameEquals); 1422N(SyntaxKind.NameEquals); 1477N(SyntaxKind.NameEquals); 1507N(SyntaxKind.NameEquals); 1558N(SyntaxKind.NameEquals); 1615N(SyntaxKind.NameEquals); 1721N(SyntaxKind.NameEquals); 1820N(SyntaxKind.NameEquals); 1867N(SyntaxKind.NameEquals); 1911N(SyntaxKind.NameEquals); 1961N(SyntaxKind.NameEquals); 1986N(SyntaxKind.NameEquals); 2036N(SyntaxKind.NameEquals); 2061N(SyntaxKind.NameEquals); 2107N(SyntaxKind.NameEquals); 2181N(SyntaxKind.NameEquals); 2258N(SyntaxKind.NameEquals); 2339N(SyntaxKind.NameEquals); 2415N(SyntaxKind.NameEquals); 2486N(SyntaxKind.NameEquals); 2593N(SyntaxKind.NameEquals); 2690N(SyntaxKind.NameEquals); 2835N(SyntaxKind.NameEquals); 2965N(SyntaxKind.NameEquals); 3063N(SyntaxKind.NameEquals); 3163N(SyntaxKind.NameEquals); 3184N(SyntaxKind.NameEquals); 3227N(SyntaxKind.NameEquals); 3248N(SyntaxKind.NameEquals); 3291N(SyntaxKind.NameEquals); 3312N(SyntaxKind.NameEquals); 3361N(SyntaxKind.NameEquals); 3390N(SyntaxKind.NameEquals); 3479N(SyntaxKind.NameEquals); 3532N(SyntaxKind.NameEquals); 3579N(SyntaxKind.NameEquals); 3664N(SyntaxKind.NameEquals); 3814N(SyntaxKind.NameEquals); 3967N(SyntaxKind.NameEquals); 4012N(SyntaxKind.NameEquals); 4253N(SyntaxKind.NameEquals); 4311N(SyntaxKind.NameEquals); 4369N(SyntaxKind.NameEquals); 4424N(SyntaxKind.NameEquals);
Syntax\SyntaxTreeTests.cs (6)
634N(SyntaxKind.NameEquals); 680N(SyntaxKind.NameEquals); 720N(SyntaxKind.NameEquals); 779N(SyntaxKind.NameEquals); 1185N(SyntaxKind.NameEquals); 1202N(SyntaxKind.NameEquals);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
640if ((expression.IsParentKind(SyntaxKind.NameEquals) && expression.Parent.IsParentKind(SyntaxKind.AttributeArgument)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
2126token.Parent.IsKind(SyntaxKind.NameEquals) && 2208if (token.Parent.IsKind(SyntaxKind.NameEquals) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\NameSyntaxExtensions.cs (1)
57or SyntaxKind.NameEquals
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
273else if (token.Parent.IsKind(SyntaxKind.NameEquals))