55 references to GeneratedNameConstants
Microsoft.CodeAnalysis.VisualBasic (55)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (1)
141
Return
GeneratedNameConstants
.AnonymousDelegateTemplateNamePrefix
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
104
Return
GeneratedNameConstants
.AnonymousTypeTemplateNamePrefix
Symbols\SynthesizedSymbols\GeneratedNameParser.vb (25)
11
If name.StartsWith(
GeneratedNameConstants
.HoistedMeName, StringComparison.Ordinal) Then
13
ElseIf name.StartsWith(
GeneratedNameConstants
.StateMachineStateFieldName, StringComparison.Ordinal) Then
15
ElseIf name.StartsWith(
GeneratedNameConstants
.StaticLocalFieldNamePrefix, StringComparison.Ordinal) Then
17
ElseIf name.StartsWith(
GeneratedNameConstants
.HoistedSynthesizedLocalPrefix, StringComparison.Ordinal) Then
19
ElseIf name.StartsWith(
GeneratedNameConstants
.HoistedUserVariablePrefix, StringComparison.Ordinal) Then
21
ElseIf name.StartsWith(
GeneratedNameConstants
.IteratorCurrentFieldName, StringComparison.Ordinal) Then
23
ElseIf name.StartsWith(
GeneratedNameConstants
.IteratorInitialThreadIdName, StringComparison.Ordinal) Then
25
ElseIf name.StartsWith(
GeneratedNameConstants
.IteratorParameterProxyPrefix, StringComparison.Ordinal) Then
27
ElseIf name.StartsWith(
GeneratedNameConstants
.StateMachineAwaiterFieldPrefix, StringComparison.Ordinal) Then
29
ElseIf name.StartsWith(
GeneratedNameConstants
.HoistedWithLocalPrefix, StringComparison.Ordinal) Then
31
ElseIf name.StartsWith(
GeneratedNameConstants
.StateMachineHoistedUserVariableOrDisplayClassPrefix, StringComparison.Ordinal) Then
33
ElseIf name.StartsWith(
GeneratedNameConstants
.AnonymousTypeTemplateNamePrefix, StringComparison.Ordinal) Then
35
ElseIf name.StartsWith(
GeneratedNameConstants
.DisplayClassPrefix, StringComparison.Ordinal) Then
37
ElseIf name.Equals(
GeneratedNameConstants
.It, StringComparison.Ordinal) OrElse
38
name.Equals(
GeneratedNameConstants
.It1, StringComparison.Ordinal) OrElse
39
name.Equals(
GeneratedNameConstants
.It2, StringComparison.Ordinal) Then
41
ElseIf name.Equals(
GeneratedNameConstants
.ItAnonymous, StringComparison.Ordinal) Then
51
If Not stateMachineTypeName.StartsWith(
GeneratedNameConstants
.StateMachineTypeNamePrefix, StringComparison.Ordinal) Then
55
Dim prefixLength As Integer =
GeneratedNameConstants
.StateMachineTypeNamePrefix.Length
56
Dim separatorPos = stateMachineTypeName.IndexOf(
GeneratedNameConstants
.MethodNameSeparator, prefixLength)
71
Dim prefixLen As Integer =
GeneratedNameConstants
.HoistedUserVariablePrefix.Length
77
If Not proxyName.StartsWith(
GeneratedNameConstants
.HoistedUserVariablePrefix, StringComparison.Ordinal) Then
93
If Not proxyName.StartsWith(
GeneratedNameConstants
.StateMachineHoistedUserVariableOrDisplayClassPrefix, StringComparison.Ordinal) Then
97
Dim prefixLen As Integer =
GeneratedNameConstants
.StateMachineHoistedUserVariableOrDisplayClassPrefix.Length
113
If fieldName.StartsWith(
GeneratedNameConstants
.StaticLocalFieldNamePrefix, StringComparison.Ordinal) Then
Symbols\SynthesizedSymbols\GeneratedNames.vb (28)
20
Return MakeMethodScopedSynthesizedName(
GeneratedNameConstants
.StateMachineTypeNamePrefix, methodOrdinal, generation, methodName, isTypeName:=True)
27
Return
GeneratedNameConstants
.StateMachineStateFieldName
31
Return
GeneratedNameConstants
.BaseMethodWrapperNamePrefix & methodName & If(isMyBase, "_MyBase", "_MyClass")
35
Return
GeneratedNameConstants
.ReusableHoistedLocalFieldName & StringExtensions.GetNumeral(number)
42
Return MakeMethodScopedSynthesizedName(
GeneratedNameConstants
.DisplayClassPrefix, methodOrdinal, generation)
50
Dim prefix = If(isDelegateRelaxation,
GeneratedNameConstants
.DelegateRelaxationDisplayClassPrefix,
GeneratedNameConstants
.DisplayClassPrefix)
55
Return
GeneratedNameConstants
.DisplayClassGenericParameterNamePrefix & StringExtensions.GetNumeral(parameterIndex)
63
GeneratedNameConstants
.DelegateRelaxationMethodNamePrefix,
64
GeneratedNameConstants
.LambdaMethodNamePrefix)
73
Return
GeneratedNameConstants
.LambdaCacheFieldPrefix
81
GeneratedNameConstants
.DelegateRelaxationCacheFieldPrefix,
82
GeneratedNameConstants
.LambdaCacheFieldPrefix)
88
Return
GeneratedNameConstants
.DelegateStubParameterPrefix & StringExtensions.GetNumeral(parameterIndex)
121
builder.Append(
GeneratedNameConstants
.IdSeparator)
133
builder.Append(
GeneratedNameConstants
.MethodNameSeparator)
143
builder.Replace("."c,
GeneratedNameConstants
.DotReplacementInTypeNames)
154
Return
GeneratedNameConstants
.StateMachineBuilderFieldName
161
Return
GeneratedNameConstants
.IteratorCurrentFieldName
168
Return
GeneratedNameConstants
.StateMachineAwaiterFieldPrefix & StringExtensions.GetNumeral(index)
175
Return
GeneratedNameConstants
.HoistedUserVariablePrefix & paramName
182
Return
GeneratedNameConstants
.IteratorParameterProxyPrefix & paramName
189
Return
GeneratedNameConstants
.IteratorInitialThreadIdName
196
Return
GeneratedNameConstants
.HoistedMeName
203
Return
GeneratedNameConstants
.HoistedSpecialVariablePrefix & closureName
224
name =
GeneratedNameConstants
.HoistedWithLocalPrefix & StringExtensions.GetNumeral(uniqueId)
235
Return
GeneratedNameConstants
.ClosureVariablePrefix & StringExtensions.GetNumeral(uniqueId)
257
Return String.Format(
GeneratedNameConstants
.StaticLocalFieldNamePrefix & "{0}${1}${2}", methodName, methodSignature, localName)