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