4 implementations of IParameterDefinition
Microsoft.CodeAnalysis (4)
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (2)
14internal sealed class DeletedSourceParameterDefinition : DeletedSourceDefinition<IParameterDefinition>, IParameterDefinition
Emit\NoPia\CommonEmbeddedParameter.cs (1)
39internal abstract class CommonEmbeddedParameter : Cci.IEmbeddedDefinition, Cci.IParameterDefinition
PEWriter\ReturnValueParameter.cs (1)
12internal class ReturnValueParameter : IParameterDefinition
57 references to IParameterDefinition
Microsoft.CodeAnalysis (57)
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
110public ImmutableArray<Cci.IParameterDefinition> Parameters
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
51protected ImmutableArray<DeletedSourceParameterDefinition> WrapParameters(ImmutableArray<IParameterDefinition> parameters)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (2)
61public ImmutableArray<IParameterDefinition> Parameters => StaticCast<IParameterDefinition>.From(_parameters);
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (1)
16public DeletedSourceParameterDefinition(IParameterDefinition oldParameter, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeltaMetadataWriter.cs (13)
45private readonly DefinitionIndex<IParameterDefinition> _parameterDefs; 46private readonly Dictionary<IParameterDefinition, IMethodDefinition> _parameterDefList; 59private readonly Dictionary<IParameterDefinition, int> _existingParameterDefs; 110_parameterDefs = new DefinitionIndex<IParameterDefinition>(this.TryGetExistingParameterDefIndex, sizes[(int)TableIndex.Param]); 111_parameterDefList = new Dictionary<IParameterDefinition, IMethodDefinition>(Cci.SymbolEquivalentEqualityComparer.Instance); 121_existingParameterDefs = new Dictionary<IParameterDefinition, int>(ReferenceEqualityComparer.Instance); 379protected override ParameterHandle GetParameterHandle(IParameterDefinition def) 382protected override IReadOnlyList<IParameterDefinition> GetParameterDefs() 736foreach (var paramDef in this.GetParametersToEmit(methodDef)) 781var paramDef = paramDefinitions[i]; 794foreach (var paramDef in GetParametersToEmit(methodDef)) 1183foreach (var paramDef in GetParameterDefs()) 1671private bool TryGetExistingParameterDefIndex(IParameterDefinition item, out int index)
Emit\NoPia\CommonEmbeddedMethod.cs (2)
213ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 217return StaticCast<Cci.IParameterDefinition>.From(_parameters);
Emit\NoPia\CommonEmbeddedParameter.cs (8)
132bool Cci.IParameterDefinition.HasDefaultValue 140MetadataConstant Cci.IParameterDefinition.GetDefaultValue(EmitContext context) 145bool Cci.IParameterDefinition.IsIn 153bool Cci.IParameterDefinition.IsOut 161bool Cci.IParameterDefinition.IsOptional 169bool Cci.IParameterDefinition.IsMarshalledExplicitly 177Cci.IMarshallingInformation Cci.IParameterDefinition.MarshallingInformation 185ImmutableArray<byte> Cci.IParameterDefinition.MarshallingDescriptor
Emit\NoPia\CommonEmbeddedProperty.cs (2)
124ImmutableArray<Cci.IParameterDefinition> Cci.IPropertyDefinition.Parameters 126get { return StaticCast<Cci.IParameterDefinition>.From(_parameters); }
Emit\NoPia\VtblGap.cs (2)
108ImmutableArray<Cci.IParameterDefinition> Cci.IMethodDefinition.Parameters 110get { return ImmutableArray<Cci.IParameterDefinition>.Empty; }
PEWriter\FullMetadataWriter.cs (5)
25private readonly DefinitionIndex<IParameterDefinition> _parameterDefs; 98_parameterDefs = new DefinitionIndex<IParameterDefinition>(numMethods); 205protected override ParameterHandle GetParameterHandle(IParameterDefinition def) 210protected override IReadOnlyList<IParameterDefinition> GetParameterDefs() 415foreach (var paramDef in this.GetParametersToEmit(methodDef))
PEWriter\Members.cs (2)
617ImmutableArray<IParameterDefinition> Parameters { get; } 776ImmutableArray<IParameterDefinition> Parameters { get; }
PEWriter\MetadataVisitor.cs (3)
425public void Visit(ImmutableArray<IParameterDefinition> parameters) 427foreach (IParameterDefinition parameter in parameters) 433public virtual void Visit(IParameterDefinition parameterDefinition)
PEWriter\MetadataWriter.cs (13)
250protected abstract ParameterHandle GetParameterHandle(IParameterDefinition def); 256protected abstract IReadOnlyList<IParameterDefinition> GetParameterDefs(); 588protected ImmutableArray<IParameterDefinition> GetParametersToEmit(IMethodDefinition methodDef) 592return ImmutableArray<IParameterDefinition>.Empty; 598private ImmutableArray<IParameterDefinition> GetParametersToEmitCore(IMethodDefinition methodDef) 600ArrayBuilder<IParameterDefinition> builder = null; 605builder = ArrayBuilder<IParameterDefinition>.GetInstance(parameters.Length + 1); 611IParameterDefinition parDef = parameters[i]; 629builder = ArrayBuilder<IParameterDefinition>.GetInstance(parameters.Length); 1201public static ParameterAttributes GetParameterAttributes(IParameterDefinition parDef) 2313foreach (IParameterDefinition parDef in this.GetParameterDefs()) 2399foreach (IParameterDefinition parDef in this.GetParameterDefs()) 2743foreach (IParameterDefinition parDef in parameterDefs)
PEWriter\RootModuleStaticConstructor.cs (2)
67public ImmutableArray<IParameterDefinition> Parameters => ImmutableArray<IParameterDefinition>.Empty;