16 references to GeneratedNameKind
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (16)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameKind.cs (5)
70internal static bool IsTypeName(this GeneratedNameKind kind) 71=> kind is GeneratedNameKind.LambdaDisplayClass 72or GeneratedNameKind.StateMachineType 73or GeneratedNameKind.DynamicCallSiteContainerType 74or GeneratedNameKind.DelegateCacheContainerType
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (11)
20internal static GeneratedNameKind GetKind(string name) 21=> TryParseGeneratedName(name, out var kind, out _, out _) ? kind : GeneratedNameKind.None; 30out GeneratedNameKind kind, 52kind = (GeneratedNameKind)c; 58kind = GeneratedNameKind.None; 89internal static bool TryParseSourceMethodNameFromGeneratedName(string generatedName, GeneratedNameKind requiredKind, [NotNullWhen(true)] out string? methodName) 91if (!TryParseGeneratedName(generatedName, out var kind, out int openBracketOffset, out int closeBracketOffset)) 121if (!TryParseGeneratedName(generatedName, out var kind, out _, out int closeBracketOffset) || kind != GeneratedNameKind.LocalFunction) 179Debug.Assert((char)GeneratedNameKind.PrimaryConstructorParameter == 'P');