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