61 references to GeneratedNames
Microsoft.CodeAnalysis.CSharp (61)
Binder\Binder.CapturedParametersFinder.cs (1)
82GeneratedNames.MakePrimaryConstructorParameterFieldName(parameter.Name),
CodeGen\EmitStatement.cs (1)
1877return local.Name ?? GeneratedNames.MakeSynthesizedLocalName(localKind, ref _uniqueNameId);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (6)
126if (reader.StringComparer.StartsWith(def.Name, GeneratedNames.ActionDelegateNamePrefix) || 127reader.StringComparer.StartsWith(def.Name, GeneratedNames.FuncDelegateNamePrefix)) 141if (reader.StringComparer.StartsWith(def.Name, GeneratedNames.AnonymousTypeNameWithoutModulePrefix)) 144if (int.TryParse(name.Substring(GeneratedNames.AnonymousTypeNameWithoutModulePrefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, out int index)) 162if (reader.StringComparer.StartsWith(def.Name, GeneratedNames.AnonymousDelegateNameWithoutModulePrefix)) 165if (int.TryParse(name.Substring(GeneratedNames.AnonymousDelegateNameWithoutModulePrefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, out int index))
Emitter\Model\PEModuleBuilder.cs (2)
1926string typeName = GeneratedNames.MakeSynthesizedInlineArrayName(arrayLength, CurrentGenerationOrdinal); 1949string typeName = GeneratedNames.MakeSynthesizedReadOnlyListName(kind, CurrentGenerationOrdinal);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
117string fieldName = GeneratedNames.AsyncAwaiterFieldName(slotIndex);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (4)
131GeneratedNames.MakeAsyncIteratorPromiseOfValueOrEndFieldName(), isPublic: true); 137_currentField = F.StateMachineField(elementType, GeneratedNames.MakeIteratorCurrentFieldName()); 140_disposeModeField = F.StateMachineField(boolType, GeneratedNames.MakeDisposeModeFieldName()); 147GeneratedNames.MakeAsyncIteratorCombinedTokensFieldName());
Lowering\AsyncRewriter\AsyncRewriter.cs (3)
141stateField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName(), isPublic: true); 142_builderField = F.StateMachineField(_asyncMethodBuilderMemberCollection.BuilderType, GeneratedNames.AsyncBuilderFieldName(), isPublic: true); 147instanceIdField = F.StateMachineField(F.SpecialType(SpecialType.System_UInt64), GeneratedNames.MakeStateMachineStateIdFieldName(), isPublic: true);
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
541? environment.CapturedVariables.SelectAsArray(v => v is ThisParameterSymbol ? GeneratedNames.ThisProxyFieldName() : v.Name)
Lowering\ClosureConversion\ClosureConversion.cs (1)
1702var cacheVariableName = GeneratedNames.MakeLambdaCacheFieldName(
Lowering\ClosureConversion\LambdaCapturedVariable.cs (5)
61return GeneratedNames.ThisProxyFieldName(); 69return GeneratedNames.MakeLambdaDisplayLocalName(uniqueId++); 73return GeneratedNames.MakeHoistedLocalFieldName(local.SynthesizedKind, uniqueId++); 75return GeneratedNames.MakeSynthesizedInstrumentationPayloadLocalFieldName(uniqueId++); 89return GeneratedNames.MakeHoistedLocalFieldName(local.SynthesizedKind, uniqueId++, local.Name);
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (3)
67var cacheVariableName = GeneratedNames.MakeCachedFrameInstanceFieldName(); 83return GeneratedNames.MakeStaticLambdaDisplayClassName(methodId.Ordinal, methodId.Generation); 87return GeneratedNames.MakeLambdaDisplayClassName(methodId.Ordinal, methodId.Generation, closureId.Ordinal, closureId.Generation);
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (2)
181return GeneratedNames.MakeLocalFunctionName( 195return GeneratedNames.MakeLambdaMethodName(
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
28SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(intType), 0, RefKind.None, GeneratedNames.MakeStateMachineStateFieldName()));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
489var finallyMethod = new IteratorFinallyMethodSymbol(stateMachineType, GeneratedNames.MakeIteratorFinallyMethodName(finalizeState));
Lowering\IteratorRewriter\IteratorRewriter.cs (3)
177stateField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName()); 182instanceIdField = F.StateMachineField(F.SpecialType(SpecialType.System_UInt64), GeneratedNames.MakeStateMachineStateIdFieldName()); 186_currentField = F.StateMachineField(_elementType, GeneratedNames.MakeIteratorCurrentFieldName());
Lowering\LocalRewriter\DelegateCacheContainer.cs (3)
22: base(GeneratedNames.DelegateCacheContainerType(generationOrdinal), containingMethod: null) 31: base(GeneratedNames.DelegateCacheContainerType(generationOrdinal, ownerMethod.Name, topLevelMethodOrdinal, ownerUniqueId), ownerMethod) 70var fieldName = GeneratedNames.DelegateCacheContainerFieldName(_delegateFields.Count, targetMethod.Name);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
692var containerName = GeneratedNames.MakeDynamicCallSiteContainerName(methodOrdinal, localFunctionOrdinal, generation); 707var fieldName = GeneratedNames.MakeDynamicCallSiteFieldName(_callSiteIdDispenser++);
Lowering\MethodToClassRewriter.cs (1)
358string methodName = GeneratedNames.MakeBaseMethodWrapperName(this.CompilationState.NextWrapperMethodIndex);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
468string fieldName = GeneratedNames.MakeHoistedLocalFieldName(SynthesizedLocalKind.UserDefined, slotIndex, local.Name); 472return F.StateMachineField(type, GeneratedNames.ReusableHoistedLocalFieldName(slotIndex)); 687string fieldName = GeneratedNames.MakeHoistedLocalFieldName(kind, slotIndex);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
108initialThreadIdField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeIteratorCurrentThreadIdFieldName()); 222string fieldName = GeneratedNames.MakeHoistedLocalFieldName(synthesizedKind, slotIndex, local.Name); 237var proxyField = F.StateMachineField(containingType, GeneratedNames.ThisProxyFieldName(), isPublic: true, isThis: true); 243F.StateMachineField(containingType, GeneratedNames.StateMachineThisParameterProxyName(), isPublic: true, isThis: true) : proxyField; 257var field = F.StateMachineField(typeMap.SubstituteType(parameter.Type).Type, GeneratedNames.StateMachineParameterProxyFieldName(parameter.Name), isPublic: true);
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (1)
31GeneratedNames.MakeStateMachineTypeName(kickoffMethod.Name, kickoffMethodOrdinal, compilationState.ModuleBuilderOpt.CurrentGenerationOrdinal);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
48Name = GeneratedNames.MakeSynthesizedDelegateName(byRefs, returnsVoid, generation); 546name = GeneratedNames.MakeAnonymousTypeOrDelegateTemplateName(index, submissionSlotIndex, moduleId, isDelegate); 575if (GeneratedNames.TryParseSynthesizedDelegateName(key.Name, out var refKinds, out var returnsVoid, out var generation, out var parameterCount))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
41get { return GeneratedNames.MakeAnonymousTypeBackingFieldName(_property.Name); }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
59new AnonymousTypeParameterSymbol(this, fieldIndex, GeneratedNames.MakeAnonymousTypeParameterName(field.Name), allowsRefLikeType: false);
Symbols\FileIdentifier.cs (1)
56var displayFilePath = GeneratedNames.GetDisplayFilePath(_filePath);
Symbols\Source\LambdaSymbol.cs (1)
338GeneratedNames.LambdaCopyParameterName(ordinal)), // Make sure nothing binds to this.
Symbols\Source\SourceFixedFieldSymbol.cs (1)
156: base(GeneratedNames.MakeFixedFieldImplementationName(field.Name), typeParameters: ImmutableArray<TypeParameterSymbol>.Empty, typeMap: TypeMap.Empty)
Symbols\Source\SourcePropertySymbolBase.cs (1)
796string fieldName = GeneratedNames.MakeBackingFieldName(_name);
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
64SynthesizedParameterSymbol.Create(a.Method, p.Type, i, p.RefKind, GeneratedNames.AnonymousDelegateParameterName(i, a.ParameterCount), p.Scope, p.DefaultValue, isParams: p.IsParams, hasUnscopedRefAttribute: p.HasUnscopedRefAttribute),
Symbols\TypeSymbolExtensions.cs (1)
1491return GeneratedNames.MakeFileTypeMetadataNamePrefix(identifier.DisplayFilePath, identifier.FilePathChecksumOpt);