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