/// <summary> /// Creates a new instance of <see cref="ParameteredParameterMember{TParameter, TSignatureDom, TParent}"/> /// with the parameter type, name and target provided. /// </summary> /// <param name="nameAndType">The type and name of the parameter.</param> /// <param name="parentTarget">The place the parameter exists on.</param> public ParameteredParameterMember(TypedName nameAndType, IParameteredDeclaration <TParameter, TSignatureDom, TParent> parentTarget) : base(nameAndType.Name, parentTarget) { this.ParameterType = nameAndType.TypeReference; }
protected override IMembers <IDelegateTypeParameterMember, IParameteredDeclaration <IDelegateTypeParameterMember, CodeTypeDelegate, ITypeParent>, CodeParameterDeclarationExpression> OnGetPartialClone(IParameteredDeclaration <IDelegateTypeParameterMember, CodeTypeDelegate, ITypeParent> parent) { throw new NotSupportedException("Delegate types aren't segmentable; therefore, the parameters therein are not."); }
protected override IMembers <TParameter, IParameteredDeclaration <TParameter, TSignatureDom, TParent>, CodeParameterDeclarationExpression> OnGetPartialClone(IParameteredDeclaration <TParameter, TSignatureDom, TParent> parent) { throw new NotSupportedException("Indexers aren't segmentable."); }
/// <summary> /// Creates a new instance of <see cref="IndexerSignatureParameterMembers{TParameter, TSignatureDom, TParent}"/> with /// the <paramref name="targetDeclaration"/> provided. /// </summary> /// <param name="targetDeclaration">The <see cref="IParameteredDeclaration{TParameter, TSignatureDom, TParent}"/> which the /// <see cref="IndexerSignatureParameterMembers{TParameter, TSignatureDom, TParent}"/> belongs to.</param> public IndexerSignatureParameterMembers(IParameteredDeclaration <TParameter, TSignatureDom, TParent> targetDeclaration) : base(targetDeclaration) { }
protected override IMembers <IConstructorParameterMember, IParameteredDeclaration <IConstructorParameterMember, CodeConstructor, IMemberParentType>, CodeParameterDeclarationExpression> OnGetPartialClone(IParameteredDeclaration <IConstructorParameterMember, CodeConstructor, IMemberParentType> parent) { throw new NotSupportedException("Constructor parameters cannot be spanned across multiple instances as constructors are not segmentable."); }
protected override IMembers <IMethodParameterMember, IParameteredDeclaration <IMethodParameterMember, CodeMemberMethod, IMemberParentType>, CodeParameterDeclarationExpression> OnGetPartialClone(IParameteredDeclaration <IMethodParameterMember, CodeMemberMethod, IMemberParentType> parent) { throw new NotSupportedException("Method Parameter sets cannot be spanned across multiple instances, methods aren't segmentable."); }