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)
125
return MakeMethodScopedSynthesizedName(GeneratedNameKind.LocalFunction, methodOrdinal, methodGeneration, methodName, localFunctionName,
GeneratedNameConstants
.LocalFunctionNameTerminator, lambdaOrdinal, lambdaGeneration);
143
Debug.Assert(suffixTerminator !=
GeneratedNameConstants
.IdSeparator);
162
builder.Replace('.',
GeneratedNameConstants
.DotReplacementInTypeNames);
171
builder.Append(
GeneratedNameConstants
.SuffixSeparator);
189
builder.Append(
GeneratedNameConstants
.IdSeparator);
204
builder.Append(
GeneratedNameConstants
.GenerationSeparator);
279
return
GeneratedNameConstants
.SynthesizedLocalNamePrefix + "InstrumentationPayload" + StringExtensions.GetNumeral(uniqueId);
285
return
GeneratedNameConstants
.SynthesizedLocalNamePrefix + "<>8__locals" + StringExtensions.GetNumeral(uniqueId);
450
if (name[nameEndIndex + 1] !=
GeneratedNameConstants
.GenerationSeparator)
471
return (generation > 0) ? name +
GeneratedNameConstants
.GenerationSeparator + generation : name;
507
builder.Append(
GeneratedNameConstants
.SuffixSeparator).Append(methodOrdinal);
512
builder.Append(
GeneratedNameConstants
.IdSeparator).Append(ownerUniqueId);