コード例 #1
0
        public IPropertyMember AddNew(TypedName nameAndType, bool hasGet, bool hasSet)
        {
            IPropertyMember result = new PropertyMember(nameAndType, this.TargetDeclaration);

            result.HasGet = hasGet;
            result.HasSet = hasSet;
            this._Add(result.GetUniqueIdentifier(), result);
            return(result);
        }
コード例 #2
0
 private static IMemberParentExpression GetRootReference(PropertyMember referencePoint)
 {
     if (referencePoint.IsStatic)
     {
         return(referencePoint.ParentTarget.GetTypeReference().GetTypeExpression());
     }
     else
     {
         return(referencePoint.ParentTarget.GetThisExpression());
     }
 }
コード例 #3
0
 public ReferenceExpression(IMemberParentExpression owner, PropertyMember referencePoint)
     : base(referencePoint.Name, owner)
 {
     this.referencePoint = referencePoint;
 }
コード例 #4
0
 public ReferenceExpression(PropertyMember referencePoint)
     : base(referencePoint.Name, GetRootReference(referencePoint))
 {
     this.referencePoint = referencePoint;
 }