|
|
|
@ -13,24 +13,29 @@ namespace ICSharpCode.PackageManagement.EnvDTE |
|
|
|
/// This differs from the CodeModel CodeNamespace which breaks up the namespaces into
|
|
|
|
/// This differs from the CodeModel CodeNamespace which breaks up the namespaces into
|
|
|
|
/// parts.
|
|
|
|
/// parts.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class FileCodeModelCodeNamespace : CodeNamespaceBase |
|
|
|
public class FileCodeModelCodeNamespace : CodeElement, global::EnvDTE.CodeNamespace |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
NamespaceName namespaceName; |
|
|
|
|
|
|
|
CodeElementsList<CodeElement> members = new CodeElementsList<CodeElement>(); |
|
|
|
|
|
|
|
|
|
|
|
public FileCodeModelCodeNamespace(CodeModelContext context, string namespaceName) |
|
|
|
public FileCodeModelCodeNamespace(CodeModelContext context, string namespaceName) |
|
|
|
: base(context, namespaceName) |
|
|
|
: this(context, new NamespaceName(namespaceName)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override string Name { |
|
|
|
FileCodeModelCodeNamespace(CodeModelContext context, NamespaceName namespaceName) |
|
|
|
get { return base.FullName; } |
|
|
|
{ |
|
|
|
|
|
|
|
this.context = context; |
|
|
|
|
|
|
|
this.namespaceName = namespaceName; |
|
|
|
|
|
|
|
this.InfoLocation = global::EnvDTE.vsCMInfoLocation.vsCMInfoLocationExternal; |
|
|
|
|
|
|
|
this.Language = context.CurrentProject.GetCodeModelLanguage(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override global::EnvDTE.vsCMInfoLocation InfoLocation { |
|
|
|
public override global::EnvDTE.vsCMInfoLocation InfoLocation { |
|
|
|
get { return global::EnvDTE.vsCMInfoLocation.vsCMInfoLocationProject; } |
|
|
|
get { return global::EnvDTE.vsCMInfoLocation.vsCMInfoLocationProject; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CodeElementsList<CodeElement> members = new CodeElementsList<CodeElement>(); |
|
|
|
public global::EnvDTE.CodeElements Members { |
|
|
|
|
|
|
|
|
|
|
|
public override global::EnvDTE.CodeElements Members { |
|
|
|
|
|
|
|
get { return members; } |
|
|
|
get { return members; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -38,5 +43,21 @@ namespace ICSharpCode.PackageManagement.EnvDTE |
|
|
|
{ |
|
|
|
{ |
|
|
|
members.Add(member); |
|
|
|
members.Add(member); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override global::EnvDTE.vsCMElement Kind { |
|
|
|
|
|
|
|
get { return global::EnvDTE.vsCMElement.vsCMElementNamespace; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal NamespaceName NamespaceName { |
|
|
|
|
|
|
|
get { return namespaceName; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string FullName { |
|
|
|
|
|
|
|
get { return namespaceName.QualifiedName; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override string Name { |
|
|
|
|
|
|
|
get { return FullName; } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|