Esempio n. 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);
        }
Esempio n. 2
0
 private static IMemberParentExpression GetRootReference(PropertyMember referencePoint)
 {
     if (referencePoint.IsStatic)
     {
         return(referencePoint.ParentTarget.GetTypeReference().GetTypeExpression());
     }
     else
     {
         return(referencePoint.ParentTarget.GetThisExpression());
     }
 }
Esempio n. 3
0
 public ReferenceExpression(IMemberParentExpression owner, PropertyMember referencePoint)
     : base(referencePoint.Name, owner)
 {
     this.referencePoint = referencePoint;
 }
Esempio n. 4
0
 public ReferenceExpression(PropertyMember referencePoint)
     : base(referencePoint.Name, GetRootReference(referencePoint))
 {
     this.referencePoint = referencePoint;
 }