10 changed files with 195 additions and 2 deletions
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
using ICSharpCode.SharpDevelop.Dom; |
||||
|
||||
namespace ICSharpCode.PackageManagement.EnvDTE |
||||
{ |
||||
/// <summary>
|
||||
/// File code model namespaces take the full name of the namespace that a class
|
||||
/// is inside. So for the FileCodeModelNamespace class the CodeNamespace.Name
|
||||
/// would be ICSharpCode.PackageManagement.EnvDTE.
|
||||
/// This differs from the CodeModel CodeNamespace which breaks up the namespaces into
|
||||
/// parts.
|
||||
/// </summary>
|
||||
public class FileCodeModelCodeNamespace : CodeNamespace |
||||
{ |
||||
FileCodeModelCodeNamespaceMembers members = new FileCodeModelCodeNamespaceMembers(); |
||||
|
||||
public FileCodeModelCodeNamespace(IProjectContent projectContent, string namespaceName) |
||||
: base(projectContent, namespaceName) |
||||
{ |
||||
} |
||||
|
||||
public override string Name { |
||||
get { return base.FullName; } |
||||
} |
||||
|
||||
public override CodeElements Members { |
||||
get { return members; } |
||||
} |
||||
|
||||
public void AddClass(IProjectContent projectContent, IClass c) |
||||
{ |
||||
members.AddClass(projectContent, c); |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
using ICSharpCode.SharpDevelop.Dom; |
||||
|
||||
namespace ICSharpCode.PackageManagement.EnvDTE |
||||
{ |
||||
public class FileCodeModelCodeNamespaceMembers : CodeElementsList |
||||
{ |
||||
public FileCodeModelCodeNamespaceMembers() |
||||
{ |
||||
} |
||||
|
||||
public void AddClass(IProjectContent projectContent, IClass c) |
||||
{ |
||||
var codeClass = new CodeClass2(projectContent, c); |
||||
AddCodeElement(codeClass); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue