2 types derived from NameSyntax
Microsoft.CodeAnalysis.CSharp (2)
347 references to NameSyntax
ConfigurationSchemaGenerator (1)
ILLink.RoslynAnalyzer (1)
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder_Symbols.cs (5)
1065private static LookupOptions GetSimpleNameLookupOptions(NameSyntax node, bool isVerbatimIdentifier)
2070(where as NameSyntax)?.ErrorDisplayName() ?? simpleName,
2209new object[] { (where as NameSyntax)?.ErrorDisplayName() ?? simpleName, first, second });
2216(where as NameSyntax)?.ErrorDisplayName() ?? simpleName,
2315CSDiagnosticInfo info = NotFound(where, simpleName, arity, (where as NameSyntax)?.ErrorDisplayName() ?? simpleName, diagnostics, aliasOpt, qualifierOpt, options);
Syntax\SyntaxFactory.cs (7)
1690public static NameSyntax ParseName(string text, int offset = 0, bool consumeFullText = true)
1695var node = parser.ParseName();
1697return (NameSyntax)node.CreateRed();
2658public static UsingDirectiveSyntax UsingDirective(NameEqualsSyntax alias, NameSyntax name)
2668public static UsingDirectiveSyntax UsingDirective(SyntaxToken usingKeyword, SyntaxToken staticKeyword, NameEqualsSyntax? alias, NameSyntax name, SyntaxToken semicolonToken)
2700public static NamespaceDeclarationSyntax NamespaceDeclaration(NameSyntax name, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
2704public static NamespaceDeclarationSyntax NamespaceDeclaration(SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken openBraceToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\UsingDirectiveSyntax.cs (8)
19public NameSyntax? Name => this.NamespaceOrType as NameSyntax;
21public UsingDirectiveSyntax Update(SyntaxToken usingKeyword, SyntaxToken staticKeyword, NameEqualsSyntax? alias, NameSyntax name, SyntaxToken semicolonToken)
24public UsingDirectiveSyntax Update(SyntaxToken globalKeyword, SyntaxToken usingKeyword, SyntaxToken staticKeyword, NameEqualsSyntax? alias, NameSyntax name, SyntaxToken semicolonToken)
27public UsingDirectiveSyntax WithName(NameSyntax name)
37public static UsingDirectiveSyntax UsingDirective(SyntaxToken staticKeyword, NameEqualsSyntax? alias, NameSyntax name)
41public static UsingDirectiveSyntax UsingDirective(SyntaxToken globalKeyword, SyntaxToken usingKeyword, SyntaxToken staticKeyword, NameEqualsSyntax? alias, NameSyntax name, SyntaxToken semicolonToken)
45public static UsingDirectiveSyntax UsingDirective(NameSyntax name)
Microsoft.CodeAnalysis.CSharp.CodeStyle (24)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (30)
Microsoft.CodeAnalysis.CSharp.Features (34)
ConvertTupleToStruct\CSharpConvertTupleToStructCodeRefactoringProvider.cs (1)
19NameSyntax,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (49)
Microsoft.CodeAnalysis.CSharp.Workspaces (86)
Simplification\Simplifiers\NameSimplifier.cs (19)
25internal class NameSimplifier : AbstractCSharpSimplifier<NameSyntax, TypeSyntax>
34NameSyntax name,
62var left = qualifiedName.Left;
370NameSyntax name, TypeSyntax replacement,
387replacement is NameSyntax replacementName)
401private static bool CanSimplifyNullable(INamedTypeSymbol type, NameSyntax name, SemanticModel semanticModel)
459NameSyntax name,
485NameSyntax name,
580NameSyntax name, TypeSyntax reducedName, SemanticModel semanticModel)
599private static bool ContainsOpenName(NameSyntax name)
615private static bool CanReplaceWithReducedName(NameSyntax name, TypeSyntax reducedName, SemanticModel semanticModel, CancellationToken cancellationToken)
626private static bool IsNotNullableReplaceable(NameSyntax name, TypeSyntax reducedName)
655!(simplifiedNode is NameSyntax);
678private static bool IsNonReducableQualifiedNameInUsingDirective(SemanticModel model, NameSyntax name)
686private static bool IsQualifiedNameInUsingDirective(SemanticModel model, NameSyntax name)
690name = (NameSyntax)name.Parent;
708private static bool IsGlobalAliasQualifiedName(NameSyntax name)
715private static bool IsInScriptClass(SemanticModel model, NameSyntax name)
731private static bool PreferPredefinedTypeKeywordInDeclarations(NameSyntax name, CSharpSimplifierOptions options, SemanticModel semanticModel)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Metrics (1)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (23)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.VisualStudio.LanguageServices.CSharp (9)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)