public OWDispInterface(ITlibNode parent, ITypeInfo ti, TypeAttr ta, bool topLevel) { Parent = parent; _name = ti.GetName(); _ta = ta; _ti = ti; _methodChildren = new OWIDispatchMethods(this); _propChildren = new OWIDispatchProperties(this); _topLevel = topLevel; _data = new IDLData(this); }
public override List <ITlibNode> GenChildren() { var res = new List <ITlibNode>(); if (_ta.cVars > 0) { _propChildren = new OWIDispatchProperties(this); res.Add(_propChildren); } if (_ta.cFuncs > 0) { _methodChildren = new OWIDispatchMethods(this); res.Add(_methodChildren); } if (_ta.cImplTypes > 0) { res.Add(new OWDispInterfaceInheritedInterfaces(this, _ti, _ta)); } return(res); }