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