public void Add(MemberAddInfo member) { if (!member.IsProperty) { Add(member.Name, member.Value.Proxy); } else { AddProperty(member); } }
public virtual void AddProperty(MemberAddInfo member) { var desc = GetDescriptor(member.Name); VariableDef def = desc.Getter; if (def == null) { desc.Getter = def = new VariableDef(); } FunctionValue func; if (member.Value is LazyPropertyFunctionValue) { func = member.Value as LazyPropertyFunctionValue; } else { func = new ReturningFunctionValue(ProjectEntry, member.Name, member.Value.Proxy); } def.AddTypes(ProjectState._builtinEntry, func.Proxy); }
public override void AddProperty(MemberAddInfo member) { _immutableMembers.Add(member.Name); base.AddProperty(member); }