示例#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;
 }