Browse Source

Change namespace to ICSharpCode.Decompiler.

pull/70/head
Daniel Grunwald 14 years ago
parent
commit
60c02d577b
  1. 13
      ICSharpCode.Decompiler/Ast/AstBuilder.cs
  2. 12
      ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs
  3. 2
      ICSharpCode.Decompiler/Ast/CommentStatement.cs
  4. 2
      ICSharpCode.Decompiler/Ast/DeclareVariableInSmallestScope.cs
  5. 2
      ICSharpCode.Decompiler/Ast/DecompilerContext.cs
  6. 2
      ICSharpCode.Decompiler/Ast/NRefactoryExtensions.cs
  7. 4
      ICSharpCode.Decompiler/Ast/NameVariables.cs
  8. 2
      ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs
  9. 2
      ICSharpCode.Decompiler/Ast/Transforms/ContextTrackingVisitor.cs
  10. 2
      ICSharpCode.Decompiler/Ast/Transforms/ConvertConstructorCallIntoInitializer.cs
  11. 2
      ICSharpCode.Decompiler/Ast/Transforms/DelegateConstruction.cs
  12. 3
      ICSharpCode.Decompiler/Ast/Transforms/PatternStatementTransform.cs
  13. 2
      ICSharpCode.Decompiler/Ast/Transforms/PushNegation.cs
  14. 2
      ICSharpCode.Decompiler/Ast/Transforms/ReplaceMethodCallsWithOperators.cs
  15. 2
      ICSharpCode.Decompiler/Ast/Transforms/TransformationPipeline.cs
  16. 2
      ICSharpCode.Decompiler/FlowAnalysis/ControlFlowEdge.cs
  17. 2
      ICSharpCode.Decompiler/ILAst/ArrayInitializers.cs
  18. 3
      ICSharpCode.Decompiler/ILAst/GotoRemoval.cs
  19. 2
      ICSharpCode.Decompiler/ILAst/ILAstBuilder.cs
  20. 2
      ICSharpCode.Decompiler/ILAst/ILAstOptimizer.cs
  21. 3
      ICSharpCode.Decompiler/ILAst/ILAstTypes.cs
  22. 2
      ICSharpCode.Decompiler/ILAst/ILCodes.cs
  23. 2
      ICSharpCode.Decompiler/ILAst/ILInlining.cs
  24. 2
      ICSharpCode.Decompiler/ILAst/Pattern.cs
  25. 2
      ICSharpCode.Decompiler/ILAst/PeepholeTransform.cs
  26. 3
      ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs
  27. 9
      ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs
  28. 5
      ICSharpCode.Decompiler/Tests/DelegateConstruction.cs
  29. 3
      ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs
  30. 3
      ICSharpCode.Decompiler/Tests/TestRunner.cs
  31. 4
      ILSpy/CSharpLanguage.cs
  32. 5
      ILSpy/ILAstLanguage.cs

13
ICSharpCode.Decompiler/Ast/AstBuilder.cs

@ -3,18 +3,21 @@ using System.Collections.Generic; @@ -3,18 +3,21 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using Decompiler.Transforms;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.Ast.Transforms;
using ICSharpCode.Decompiler.ILAst;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.Utils;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Ast = ICSharpCode.NRefactory.CSharp;
using ClassType = ICSharpCode.NRefactory.TypeSystem.ClassType;
using VarianceModifier = ICSharpCode.NRefactory.TypeSystem.VarianceModifier;
namespace Decompiler
namespace ICSharpCode.Decompiler.Ast
{
using Ast = ICSharpCode.NRefactory.CSharp;
using ClassType = ICSharpCode.NRefactory.TypeSystem.ClassType;
using VarianceModifier = ICSharpCode.NRefactory.TypeSystem.VarianceModifier;
public class AstBuilder
{
DecompilerContext context = new DecompilerContext();

12
ICSharpCode.Decompiler/Ast/AstMethodBodyBuilder.cs

@ -4,16 +4,18 @@ using System.Collections.Generic; @@ -4,16 +4,18 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using ICSharpCode.NRefactory.Utils;
using Ast = ICSharpCode.NRefactory.CSharp;
using ICSharpCode.Decompiler.ILAst;
using ICSharpCode.NRefactory.CSharp;
using Cecil = Mono.Cecil;
using ICSharpCode.NRefactory.Utils;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Decompiler.ControlFlow;
namespace Decompiler
namespace ICSharpCode.Decompiler.Ast
{
using Ast = ICSharpCode.NRefactory.CSharp;
using Cecil = Mono.Cecil;
public class AstMethodBodyBuilder
{
MethodDefinition methodDef;

2
ICSharpCode.Decompiler/Ast/CommentStatement.cs

@ -6,7 +6,7 @@ using System.Linq; @@ -6,7 +6,7 @@ using System.Linq;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.CSharp.PatternMatching;
namespace Decompiler
namespace ICSharpCode.Decompiler.Ast
{
/// <summary>
/// Allows storing comments inside IEnumerable{Statement}. Used in the AstMethodBuilder.

2
ICSharpCode.Decompiler/Ast/DeclareVariableInSmallestScope.cs

@ -6,7 +6,7 @@ using System.Linq; @@ -6,7 +6,7 @@ using System.Linq;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.CSharp.PatternMatching;
namespace Decompiler
namespace ICSharpCode.Decompiler.Ast
{
/// <summary>
/// Helper class for declaring variables.

2
ICSharpCode.Decompiler/Ast/DecompilerContext.cs

@ -5,7 +5,7 @@ using System; @@ -5,7 +5,7 @@ using System;
using System.Threading;
using Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler
{
public class DecompilerContext
{

2
ICSharpCode.Decompiler/Ast/NRefactoryExtensions.cs

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
using System;
using ICSharpCode.NRefactory.CSharp;
namespace Decompiler
namespace ICSharpCode.Decompiler.Ast
{
static class NRefactoryExtensions
{

4
ICSharpCode.Decompiler/Ast/NameVariables.cs

@ -4,9 +4,11 @@ @@ -4,9 +4,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler.ILAst;
using Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler.Ast
{
public class NameVariables
{

2
ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs

@ -8,7 +8,7 @@ using ICSharpCode.Decompiler; @@ -8,7 +8,7 @@ using ICSharpCode.Decompiler;
using ICSharpCode.NRefactory.CSharp;
using Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler.Ast
{
public class TextOutputFormatter : IOutputFormatter
{

2
ICSharpCode.Decompiler/Ast/Transforms/ContextTrackingVisitor.cs

@ -6,7 +6,7 @@ using System.Diagnostics; @@ -6,7 +6,7 @@ using System.Diagnostics;
using ICSharpCode.NRefactory.CSharp;
using Mono.Cecil;
namespace Decompiler.Transforms
namespace ICSharpCode.Decompiler.Ast.Transforms
{
/// <summary>
/// Base class for AST visitors that need the current type/method context info.

2
ICSharpCode.Decompiler/Ast/Transforms/ConvertConstructorCallIntoInitializer.cs

@ -6,7 +6,7 @@ using System.Linq; @@ -6,7 +6,7 @@ using System.Linq;
using ICSharpCode.NRefactory.CSharp;
using Mono.Cecil;
namespace Decompiler.Transforms
namespace ICSharpCode.Decompiler.Ast.Transforms
{
/// <summary>
/// If the first element of a constructor is a chained constructor call, convert it into a constructor initializer.

2
ICSharpCode.Decompiler/Ast/Transforms/DelegateConstruction.cs

@ -10,7 +10,7 @@ using ICSharpCode.NRefactory.CSharp; @@ -10,7 +10,7 @@ using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.CSharp.PatternMatching;
using Mono.Cecil;
namespace Decompiler.Transforms
namespace ICSharpCode.Decompiler.Ast.Transforms
{
/// <summary>
/// Converts "new Action(obj, ldftn(func))" into "new Action(obj.func)".

3
ICSharpCode.Decompiler/Ast/Transforms/PatternStatementTransform.cs

@ -3,12 +3,11 @@ @@ -3,12 +3,11 @@
using System;
using System.Linq;
using Decompiler.Transforms;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.CSharp.PatternMatching;
using Mono.Cecil;
namespace Decompiler.Transforms
namespace ICSharpCode.Decompiler.Ast.Transforms
{
/// <summary>
/// Finds the expanded form of using statements using pattern matching and replaces it with a UsingStatement.

2
ICSharpCode.Decompiler/Ast/Transforms/PushNegation.cs

@ -4,7 +4,7 @@ using System.Linq; @@ -4,7 +4,7 @@ using System.Linq;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.CSharp.PatternMatching;
namespace Decompiler.Transforms
namespace ICSharpCode.Decompiler.Ast.Transforms
{
public class PushNegation: DepthFirstAstVisitor<object, object>, IAstTransform
{

2
ICSharpCode.Decompiler/Ast/Transforms/ReplaceMethodCallsWithOperators.cs

@ -6,7 +6,7 @@ using Mono.Cecil; @@ -6,7 +6,7 @@ using Mono.Cecil;
using Ast = ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.CSharp;
namespace Decompiler.Transforms
namespace ICSharpCode.Decompiler.Ast.Transforms
{
/// <summary>
/// Replaces method calls with the appropriate operator expressions.

2
ICSharpCode.Decompiler/Ast/Transforms/TransformationPipeline.cs

@ -5,7 +5,7 @@ using System; @@ -5,7 +5,7 @@ using System;
using System.Threading;
using ICSharpCode.NRefactory.CSharp;
namespace Decompiler.Transforms
namespace ICSharpCode.Decompiler.Ast.Transforms
{
public interface IAstTransform
{

2
ICSharpCode.Decompiler/FlowAnalysis/ControlFlowEdge.cs

@ -21,7 +21,7 @@ using System; @@ -21,7 +21,7 @@ using System;
namespace ICSharpCode.Decompiler.FlowAnalysis
{
/// <summary>
///
/// Describes the type of a control flow egde.
/// </summary>
public enum JumpType
{

2
ICSharpCode.Decompiler/ILAst/ArrayInitializers.cs

@ -7,7 +7,7 @@ using System.Linq; @@ -7,7 +7,7 @@ using System.Linq;
using Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
/// <summary>
/// IL AST transformation that introduces array initializers.

3
ICSharpCode.Decompiler/ILAst/GotoRemoval.cs

@ -3,9 +3,8 @@ using System.Diagnostics; @@ -3,9 +3,8 @@ using System.Diagnostics;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using Decompiler.ControlFlow;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
public class GotoRemoval
{

2
ICSharpCode.Decompiler/ILAst/ILAstBuilder.cs

@ -6,7 +6,7 @@ using Mono.Cecil; @@ -6,7 +6,7 @@ using Mono.Cecil;
using Mono.Cecil.Cil;
using Cecil = Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
public class ILAstBuilder
{

2
ICSharpCode.Decompiler/ILAst/ILAstOptimizer.cs

@ -7,7 +7,7 @@ using Mono.Cecil; @@ -7,7 +7,7 @@ using Mono.Cecil;
using Mono.Cecil.Cil;
using Mono.CSharp;
namespace Decompiler.ControlFlow
namespace ICSharpCode.Decompiler.ILAst
{
public enum ILAstOptimizationStep
{

3
ICSharpCode.Decompiler/ILAst/ILAstTypes.cs

@ -3,7 +3,6 @@ using System.Collections.Generic; @@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Decompiler.ControlFlow;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.Disassembler;
using ICSharpCode.NRefactory.Utils;
@ -12,7 +11,7 @@ using Mono.Cecil.Cil; @@ -12,7 +11,7 @@ using Mono.Cecil.Cil;
using Mono.CSharp;
using Cecil = Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
public abstract class ILNode
{

2
ICSharpCode.Decompiler/ILAst/ILCodes.cs

@ -27,7 +27,7 @@ using System; @@ -27,7 +27,7 @@ using System;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
public enum ILCode
{

2
ICSharpCode.Decompiler/ILAst/ILInlining.cs

@ -5,7 +5,7 @@ using System; @@ -5,7 +5,7 @@ using System;
using System.Diagnostics;
using System.Linq;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
/// <summary>
/// Performs inlining transformations.

2
ICSharpCode.Decompiler/ILAst/Pattern.cs

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
using System;
using Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
public interface IVariablePattern
{

2
ICSharpCode.Decompiler/ILAst/PeepholeTransform.cs

@ -6,7 +6,7 @@ using System.Linq; @@ -6,7 +6,7 @@ using System.Linq;
using ICSharpCode.NRefactory.Utils;
using Mono.Cecil;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
public delegate void PeepholeTransform(ILBlock block, ref int i);

3
ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs

@ -5,11 +5,10 @@ using System; @@ -5,11 +5,10 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Decompiler;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace Decompiler
namespace ICSharpCode.Decompiler.ILAst
{
/// <summary>
/// Assigns C# types to IL expressions.

9
ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs

@ -1,12 +1,13 @@ @@ -1,12 +1,13 @@
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Mono.Cecil;
using System.IO;
using Decompiler;
using ICSharpCode.Decompiler.Ast;
using Microsoft.CSharp;
using System.CodeDom.Compiler;
using Mono.Cecil;
using NUnit.Framework;
namespace ICSharpCode.Decompiler.Tests

5
ICSharpCode.Decompiler/Tests/DelegateConstruction.cs

@ -59,4 +59,9 @@ public static class DelegateConstruction @@ -59,4 +59,9 @@ public static class DelegateConstruction
}
return list;
}
public static Action StaticAnonymousMethodNoClosure()
{
return delegate { Console.WriteLine(); };
}
}

3
ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs

@ -2,8 +2,9 @@ @@ -2,8 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.Decompiler.Ast.Transforms;
using ICSharpCode.NRefactory.CSharp;
using Decompiler.Transforms;
namespace ICSharpCode.Decompiler.Tests.Helpers
{

3
ICSharpCode.Decompiler/Tests/TestRunner.cs

@ -6,7 +6,8 @@ using System.CodeDom.Compiler; @@ -6,7 +6,8 @@ using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Decompiler;
using ICSharpCode.Decompiler.Ast;
using Microsoft.CSharp;
using Mono.Cecil;

4
ILSpy/CSharpLanguage.cs

@ -26,9 +26,9 @@ using System.Threading.Tasks; @@ -26,9 +26,9 @@ using System.Threading.Tasks;
using System.Xaml;
using System.Xml;
using Decompiler;
using Decompiler.Transforms;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.Ast;
using ICSharpCode.Decompiler.Ast.Transforms;
using ICSharpCode.NRefactory.CSharp;
using Mono.Cecil;

5
ILSpy/ILAstLanguage.cs

@ -20,11 +20,10 @@ using System; @@ -20,11 +20,10 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Decompiler;
using Decompiler.ControlFlow;
using Decompiler.Transforms;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.Disassembler;
using ICSharpCode.Decompiler.ILAst;
using ICSharpCode.NRefactory.CSharp;
using Mono.Cecil;

Loading…
Cancel
Save