Browse Source

".generated" suffix for the generated extension methods

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5133 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 16 years ago
parent
commit
ea138eed0b
  1. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebugExtensionMethods.generated.cs
  2. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSymExtensionMethods.generated.cs
  3. 6
      src/Tools/ComExtensionMethodGenerator/ComExtensionMethodGenerator.cs

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebugExtensionMethods.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebugExtensionMethods.generated.cs

@ -11,7 +11,7 @@ using System.Runtime.InteropServices; @@ -11,7 +11,7 @@ using System.Runtime.InteropServices;
namespace Debugger.Interop.CorDebug
{
public static class CorDebugExtensionMethods
public static partial class CorDebugExtensionMethods
{
static void ProcessOutParameter(object parameter)
{

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSymExtensionMethods.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSymExtensionMethods.generated.cs

@ -11,7 +11,7 @@ using System.Runtime.InteropServices; @@ -11,7 +11,7 @@ using System.Runtime.InteropServices;
namespace Debugger.Interop.CorSym
{
public static class CorSymExtensionMethods
public static partial class CorSymExtensionMethods
{
static void ProcessOutParameter(object parameter)
{

6
src/Tools/ComExtensionMethodGenerator/ComExtensionMethodGenerator.cs

@ -34,7 +34,7 @@ namespace ComExtensionMethodGenerator @@ -34,7 +34,7 @@ namespace ComExtensionMethodGenerator
{
new ComExtensionMethodGenerator() {
InputFile = path + "CorDebug.cs",
OutputFile = path + "CorDebugExtensionMethods.cs",
OutputFile = path + "CorDebugExtensionMethods.generated.cs",
Header = header,
Namespace = "Debugger.Interop.CorDebug",
TypeName = "CorDebugExtensionMethods",
@ -42,7 +42,7 @@ namespace ComExtensionMethodGenerator @@ -42,7 +42,7 @@ namespace ComExtensionMethodGenerator
new ComExtensionMethodGenerator() {
InputFile = path + "CorSym.cs",
OutputFile = path + "CorSymExtensionMethods.cs",
OutputFile = path + "CorSymExtensionMethods.generated.cs",
Header = header,
Namespace = "Debugger.Interop.CorSym",
TypeName = "CorSymExtensionMethods",
@ -79,7 +79,7 @@ namespace ComExtensionMethodGenerator @@ -79,7 +79,7 @@ namespace ComExtensionMethodGenerator
}
if (generated.Children.OfType<UsingDeclaration>().Count() > 0)
generated.AddChild(new IdentifierExpression("\r\n"));
TypeDeclaration extensionMethodsType = new TypeDeclaration(Modifiers.Public | Modifiers.Static, new List<AttributeSection>()) { Name = TypeName };
TypeDeclaration extensionMethodsType = new TypeDeclaration(Modifiers.Public | Modifiers.Partial | Modifiers.Static, new List<AttributeSection>()) { Name = TypeName };
generated.AddChild(
Namespace == null ?
(INode)extensionMethodsType :

Loading…
Cancel
Save