public RDomRootGroup(Compilation compilation, IFactoryAccess factoryAccess) : base(compilation) { _compilation = compilation; _referencedTypeCache = new ReferencedTypeCache(compilation, factoryAccess); _roots = new RDomCollection <IRoot>(this); }
//public RDomRoot(IDom parent, string name = null, string filePath = null) //: this(null, parent, null) //{ // _filePath = filePath; //} // This takes a parent because in the future there will be a rootGroup concept for multiple files public RDomRoot(IFactoryAccess factoryAccess, SyntaxNode rawItem, IDom parent, SemanticModel model) : base(rawItem, parent, model) { var rootGroup = Parent as RDomRootGroup; if (rootGroup == null) { _compilation = model.Compilation; _referencedTypeCache = new ReferencedTypeCache(_compilation, factoryAccess); } }