Esempio n. 1
0
 private void InitializeMethods()
 {
     if (this.IsPartial)
     {
         this.methods = base.GetRootDeclaration().Methods.GetPartialClone(this);
     }
     else
     {
         this.methods = new MethodSignatureMembers(this);
     }
 }
Esempio n. 2
0
 public virtual void TranslateMembers(ISignatureMemberParentType parent, IMethodSignatureMembers methodSigMembers)
 {
     this.TranslateMembers <IMethodSignatureParameterMember, IMethodSignatureTypeParameterMember, CodeMemberMethod, ISignatureMemberParentType>(parent, methodSigMembers);
 }
Esempio n. 3
0
 public abstract void TranslateMembers <TParameter, TTypeParameter, TSignatureDom, TParent>(TParent parent, IMethodSignatureMembers <TParameter, TTypeParameter, TSignatureDom, TParent> ambigMethodSigMembers)
     where TParameter :
 IParameteredParameterMember <TParameter, TSignatureDom, TParent>
     where TTypeParameter :
 IMethodSignatureTypeParameterMember <TParameter, TTypeParameter, TSignatureDom, TParent>
     where TSignatureDom :
 CodeMemberMethod,
 new()
     where TParent :
 IDeclarationTarget;
Esempio n. 4
0
        public override void TranslateMembers <TParameter, TTypeParameter, TSignatureDom, TParent>(TParent parent, IMethodSignatureMembers <TParameter, TTypeParameter, TSignatureDom, TParent> ambigMethodSigMembers)
        {
            string regionText = "";
            bool   bRegion    = false;

            if (bRegion = (options.AutoRegionsFor(AutoRegionAreas.Methods) && (ambigMethodSigMembers.GetCountForTarget(parent) > 0)))
            {
                regionText = String.Format(_OIL._Core.MaintenanceResources.AutoRegions_BasePattern, parent.Name, " methods");
                this.TranslateConceptRegionStart(regionText);
            }
            this.TranslateMembers <IMethodSignatureMember <TParameter, TTypeParameter, TSignatureDom, TParent>, TParent, TSignatureDom>(parent, ambigMethodSigMembers);
            if (bRegion)
            {
                this.TranslateConceptRegionEnd(regionText);
            }
        }