/// <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;
 }
Пример #2
0
 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.");
 }
Пример #3
0
 protected override IMembers <TParameter, IParameteredDeclaration <TParameter, TSignatureDom, TParent>, CodeParameterDeclarationExpression> OnGetPartialClone(IParameteredDeclaration <TParameter, TSignatureDom, TParent> parent)
 {
     throw new NotSupportedException("Indexers aren't segmentable.");
 }
Пример #4
0
 /// <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)
 {
 }
Пример #5
0
 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.");
 }
Пример #6
0
 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.");
 }