19 references to GeneratedNameConstants
Microsoft.CodeAnalysis.CSharp (19)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (3)
204
idSeparator =
GeneratedNameConstants
.IdSeparator;
223
hasDebugIds = !isDisplayClassParentField && name.AsSpan(suffixIndex).StartsWith(
GeneratedNameConstants
.SuffixSeparator.AsSpan(), StringComparison.Ordinal);
227
suffixIndex +=
GeneratedNameConstants
.SuffixSeparator.Length;
Symbols\Synthesized\GeneratedNameParser.cs (4)
17
=> name.StartsWith(
GeneratedNameConstants
.SynthesizedLocalNamePrefix, StringComparison.Ordinal);
107
methodName = methodName.Replace(
GeneratedNameConstants
.DotReplacementInTypeNames, '.');
126
int localFunctionNameStart = closeBracketOffset + 2 +
GeneratedNameConstants
.SuffixSeparator.Length;
132
int localFunctionNameEnd = generatedName.IndexOf(
GeneratedNameConstants
.LocalFunctionNameTerminator, localFunctionNameStart);
Symbols\Synthesized\GeneratedNames.cs (12)
119
return MakeMethodScopedSynthesizedName(GeneratedNameKind.LocalFunction, methodOrdinal, methodGeneration, methodName, localFunctionName,
GeneratedNameConstants
.LocalFunctionNameTerminator, lambdaOrdinal, lambdaGeneration);
137
Debug.Assert(suffixTerminator !=
GeneratedNameConstants
.IdSeparator);
156
builder.Replace('.',
GeneratedNameConstants
.DotReplacementInTypeNames);
165
builder.Append(
GeneratedNameConstants
.SuffixSeparator);
183
builder.Append(
GeneratedNameConstants
.IdSeparator);
198
builder.Append(
GeneratedNameConstants
.GenerationSeparator);
273
return
GeneratedNameConstants
.SynthesizedLocalNamePrefix + "InstrumentationPayload" + StringExtensions.GetNumeral(uniqueId);
279
return
GeneratedNameConstants
.SynthesizedLocalNamePrefix + "<>8__locals" + StringExtensions.GetNumeral(uniqueId);
444
if (name[nameEndIndex + 1] !=
GeneratedNameConstants
.GenerationSeparator)
465
return (generation > 0) ? name +
GeneratedNameConstants
.GenerationSeparator + generation : name;
501
builder.Append(
GeneratedNameConstants
.SuffixSeparator).Append(methodOrdinal);
506
builder.Append(
GeneratedNameConstants
.IdSeparator).Append(ownerUniqueId);