16 references to IsValidIdentifier
Microsoft.CodeAnalysis.CSharp (12)
Binder\WithCrefTypeParametersBinder.cs (1)
130
if (SyntaxFacts.
IsValidIdentifier
(name) && !map.ContainsKey(name))
CommandLine\CSharpCommandLineParser.cs (2)
1787
if (SyntaxFacts.
IsValidIdentifier
(id))
1929
if (!SyntaxFacts.
IsValidIdentifier
(alias))
CSharpParseOptions.cs (1)
251
else if (!SyntaxFacts.
IsValidIdentifier
(symbol))
SourceGeneration\CSharpSyntaxHelper.cs (1)
23
=> SyntaxFacts.
IsValidIdentifier
(name);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1282
if (!SyntaxFacts.
IsValidIdentifier
(this.Name) && !this.ExplicitInterfaceImplementations.IsEmpty)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
130
bool ISymbol.CanBeReferencedByName => SyntaxFacts.
IsValidIdentifier
(_name) && !SyntaxFacts.ContainsDroppedIdentifierCharacters(_name);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
757
if (name == null || !SyntaxFacts.
IsValidIdentifier
(name))
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1395
if (name == null || !SyntaxFacts.
IsValidIdentifier
(name))
Symbols\Source\SourcePropertySymbolBase.cs (1)
1702
if (indexerName == null || !SyntaxFacts.
IsValidIdentifier
(indexerName))
Symbols\Symbol.cs (1)
709
return SyntaxFacts.
IsValidIdentifier
(this.Name) &&
Symbols\Symbol_Attributes.cs (1)
227
if (!SyntaxFacts.
IsValidIdentifier
((string?)arguments.Attribute.CommonConstructorArguments[0].ValueInternal))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpFlagsEnumGenerator.cs (1)
39
=> SyntaxFacts.
IsValidIdentifier
(name);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpFlagsEnumGenerator.cs (1)
39
=> SyntaxFacts.
IsValidIdentifier
(name);
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckNameofFixProvider.cs (1)
47
if (nameArgValue == null || !SyntaxFacts.
IsValidIdentifier
(nameArgValue))
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1628
if (SyntaxFacts.
IsValidIdentifier
(effectiveJsonPropertyName))