Browse Source

started implementation of AssemblyNode

pull/18/head
Siegfried Pammer 14 years ago
parent
commit
82804565ac
  1. 9
      src/AddIns/Analysis/CodeQuality/Engine/AssemblyAnalyzer.cs
  2. 32
      src/AddIns/Analysis/CodeQuality/Engine/Dom/INode.cs

9
src/AddIns/Analysis/CodeQuality/Engine/AssemblyAnalyzer.cs

@ -2,6 +2,10 @@ @@ -2,6 +2,10 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using ICSharpCode.CodeQuality.Engine.Dom;
using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.NRefactory.TypeSystem.Implementation;
namespace ICSharpCode.CodeQuality.Engine
{
@ -10,6 +14,11 @@ namespace ICSharpCode.CodeQuality.Engine @@ -10,6 +14,11 @@ namespace ICSharpCode.CodeQuality.Engine
/// </summary>
public class AssemblyAnalyzer
{
public IEnumerable<AssemblyNode> Assemblies { get; private set; }
public AssemblyAnalyzer()
{
}
}
}

32
src/AddIns/Analysis/CodeQuality/Engine/Dom/INode.cs

@ -2,6 +2,8 @@ @@ -2,6 +2,8 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using ICSharpCode.NRefactory.TypeSystem;
namespace ICSharpCode.CodeQuality.Engine.Dom
{
@ -10,6 +12,36 @@ namespace ICSharpCode.CodeQuality.Engine.Dom @@ -10,6 +12,36 @@ namespace ICSharpCode.CodeQuality.Engine.Dom
/// </summary>
public interface INode
{
string Name { get; }
IEnumerable<INode> Children { get; }
IEnumerable<INode> Uses { get; }
IEnumerable<INode> UsedBy { get; }
}
public class AssemblyNode : INode
{
public IAssembly AssemblyInfo { get; private set; }
public string Name {
get { return AssemblyInfo.AssemblyName; }
}
public IEnumerable<INode> Children {
get {
throw new NotImplementedException();
}
}
public IEnumerable<INode> Uses {
get {
throw new NotImplementedException();
}
}
public IEnumerable<INode> UsedBy {
get {
throw new NotImplementedException();
}
}
}
}

Loading…
Cancel
Save