コード例 #1
0
ファイル: RDomRootGroup.cs プロジェクト: thinhils/RoslynDOM
 public RDomRootGroup(Compilation compilation, IFactoryAccess factoryAccess)
     : base(compilation)
 {
     _compilation         = compilation;
     _referencedTypeCache = new ReferencedTypeCache(compilation, factoryAccess);
     _roots = new RDomCollection <IRoot>(this);
 }
コード例 #2
0
ファイル: RDomRoot.cs プロジェクト: PrintsCharming/RoslynDOM
 //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);
    }
 }