protected ReferenceLink(DocBase parent, PBRoot link, bool cross) { this.linkText = link.FullName; this.abstractLink = null; this.objectLink = link; this.parent = parent; this.parent.AddReference(this); this.crossLink = cross; }
public ReferenceLink(DocBase parent, string link_text, AbstractReferenceLinkResolver resolver) { this.linkText = link_text; this.objectLink = null; this.abstractLink = null; this.parent = parent; resolver.AddLink(this); this.parent.AddReference(this); this.crossLink = false; }
public int CompareTo(object obj) { PBRoot root = obj as PBRoot; if (root != null) { return(this.Name.CompareTo(root.Name)); } else { // TODO: vyhodit exception } return(0); }
protected PBRoot TryStandard(ReferenceLink link) { Library lib = TryLibrary(link); if (lib != null) { return(lib); } PowerObject obj = TryPowerObject(link); if (obj != null) { return(obj); } obj = TryNestedPowerObject(link); if (obj != null) { return(obj); } ScriptBase script = TryScriptBase(link); if (script != null) { return(script); } PBRoot root = TryFullName(link); if (root != null) { return(root); } return(null); }
public PBRoot(PBRoot parent, string name) { this.name = name.ToLower(); this.parent = parent; }
public DocBase(PBRoot parent) { this.parent = parent; }