Browse Source

Merge branch 'master' of git://github.com/icsharpcode/ILSpy into Debugger

pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
8b68bc3caf
  1. 19
      ICSharpCode.Decompiler/Ast/Transforms/AddCheckedBlocks.cs
  2. 19
      ICSharpCode.Decompiler/Ast/Transforms/CombineQueryExpressions.cs
  3. 19
      ICSharpCode.Decompiler/Ast/Transforms/ContextTrackingVisitor.cs
  4. 19
      ICSharpCode.Decompiler/Ast/Transforms/ConvertConstructorCallIntoInitializer.cs
  5. 19
      ICSharpCode.Decompiler/Ast/Transforms/DeclareVariables.cs
  6. 19
      ICSharpCode.Decompiler/Ast/Transforms/DelegateConstruction.cs
  7. 19
      ICSharpCode.Decompiler/Ast/Transforms/IntroduceExtensionMethods.cs
  8. 19
      ICSharpCode.Decompiler/Ast/Transforms/IntroduceQueryExpressions.cs
  9. 19
      ICSharpCode.Decompiler/Ast/Transforms/IntroduceUnsafeModifier.cs
  10. 19
      ICSharpCode.Decompiler/Ast/Transforms/IntroduceUsingDeclarations.cs
  11. 19
      ICSharpCode.Decompiler/Ast/Transforms/PatternStatementTransform.cs
  12. 20
      ICSharpCode.Decompiler/Ast/Transforms/PushNegation.cs
  13. 20
      ICSharpCode.Decompiler/Ast/Transforms/ReplaceMethodCallsWithOperators.cs
  14. 19
      ICSharpCode.Decompiler/Ast/Transforms/TransformationPipeline.cs
  15. 19
      ICSharpCode.Decompiler/CodeMappings.cs
  16. 19
      ICSharpCode.Decompiler/DecompilerException.cs
  17. 19
      ICSharpCode.Decompiler/DecompilerSettings.cs
  18. 23
      ICSharpCode.Decompiler/ILAst/DefaultDictionary.cs
  19. 20
      ICSharpCode.Decompiler/ILAst/GotoRemoval.cs
  20. 18
      ICSharpCode.Decompiler/ILAst/ILAstBuilder.cs
  21. 18
      ICSharpCode.Decompiler/ILAst/ILAstOptimizer.cs
  22. 18
      ICSharpCode.Decompiler/ILAst/ILAstTypes.cs
  23. 19
      ICSharpCode.Decompiler/ILAst/ILCodes.cs
  24. 21
      ICSharpCode.Decompiler/ILAst/ILInlining.cs
  25. 19
      ICSharpCode.Decompiler/ILAst/InitializerPeepholeTransforms.cs
  26. 19
      ICSharpCode.Decompiler/ILAst/LoopsAndConditions.cs
  27. 19
      ICSharpCode.Decompiler/ILAst/PatternMatching.cs
  28. 19
      ICSharpCode.Decompiler/ILAst/PeepholeTransform.cs
  29. 19
      ICSharpCode.Decompiler/ILAst/SimpleControlFlow.cs
  30. 19
      ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs
  31. 19
      ICSharpCode.Decompiler/ILAst/YieldReturnDecompiler.cs
  32. 44
      ILSpy/AboutPage.cs
  33. 15
      ILSpy/App.xaml.cs
  34. 19
      ILSpy/BamlDecompiler.cs
  35. 19
      ILSpy/CommandLineArguments.cs
  36. 19
      ILSpy/Commands.cs
  37. 19
      ILSpy/ExportCommandAttribute.cs
  38. 19
      ILSpy/GuessFileType.cs
  39. 6
      ILSpy/ILSpy.csproj
  40. 19
      ILSpy/ISmartTextOutput.cs
  41. 5
      ILSpy/Images/AccessOverlayIcon.cs
  42. 19
      ILSpy/Images/Images.cs
  43. 19
      ILSpy/LoadedAssembly.cs
  44. 19
      ILSpy/NavigationHistory.cs
  45. 21
      ILSpy/NavigationState.cs
  46. 19
      ILSpy/Options/DecompilerSettingsPanel.xaml.cs
  47. 19
      ILSpy/Options/OptionsDialog.xaml.cs
  48. 8
      ILSpy/TextView/AvalonEditTextOutput.cs
  49. 13
      ILSpy/TextView/DecompilerTextView.cs
  50. 25
      ILSpy/TreeNodes/Analyzer/AnalyzedEventAccessorsTreeNode.cs
  51. 20
      ILSpy/TreeNodes/Analyzer/AnalyzedEventOverridesTreeNode.cs
  52. 19
      ILSpy/TreeNodes/Analyzer/AnalyzedFieldAccessNode.cs
  53. 19
      ILSpy/TreeNodes/Analyzer/AnalyzedFieldNode.cs
  54. 25
      ILSpy/TreeNodes/Analyzer/AnalyzedPropertyAccessorsTreeNode.cs
  55. 20
      ILSpy/TreeNodes/Analyzer/AnalyzedPropertyOverridesTreeNode.cs
  56. 20
      ILSpy/TreeNodes/Analyzer/AnalyzerMethodOverridesTreeNode.cs
  57. 20
      ILSpy/TreeNodes/Analyzer/Helpers.cs
  58. 21
      ILSpy/TreeNodes/Analyzer/ScopedWhereUsedAnalyzer.cs
  59. 19
      ILSpy/TreeNodes/DerivedTypesTreeNode.cs
  60. 19
      ILSpy/TreeNodes/ResourceEntryNode.cs
  61. 19
      ILSpy/TreeNodes/ResourceListTreeNode.cs
  62. 19
      ILSpy/TreeNodes/ResourceTreeNode.cs
  63. 19
      ILSpy/TreeNodes/ThreadingSupport.cs
  64. 19
      ILSpy/TreeNodes/XamlResourceNode.cs
  65. 19
      ILSpy/XmlDoc/XmlDocKeyProvider.cs
  66. 19
      ILSpy/XmlDoc/XmlDocLoader.cs
  67. 19
      ILSpy/XmlDoc/XmlDocRenderer.cs
  68. 1
      Mono.Cecil/.gitignore
  69. 2
      Mono.Cecil/Mono.Cecil.Cil/Code.cs
  70. 10
      Mono.Cecil/Mono.Cecil.Cil/CodeReader.cs
  71. 4
      Mono.Cecil/Mono.Cecil.Cil/CodeWriter.cs
  72. 2
      Mono.Cecil/Mono.Cecil.Cil/Document.cs
  73. 8
      Mono.Cecil/Mono.Cecil.Cil/ExceptionHandler.cs
  74. 2
      Mono.Cecil/Mono.Cecil.Cil/ILProcessor.cs
  75. 2
      Mono.Cecil/Mono.Cecil.Cil/Instruction.cs
  76. 2
      Mono.Cecil/Mono.Cecil.Cil/MethodBody.cs
  77. 547
      Mono.Cecil/Mono.Cecil.Cil/OpCode.cs
  78. 2
      Mono.Cecil/Mono.Cecil.Cil/OpCodes.cs
  79. 2
      Mono.Cecil/Mono.Cecil.Cil/SequencePoint.cs
  80. 9
      Mono.Cecil/Mono.Cecil.Cil/Symbols.cs
  81. 2
      Mono.Cecil/Mono.Cecil.Cil/VariableDefinition.cs
  82. 2
      Mono.Cecil/Mono.Cecil.Cil/VariableReference.cs
  83. 2
      Mono.Cecil/Mono.Cecil.Metadata/BlobHeap.cs
  84. 4
      Mono.Cecil/Mono.Cecil.Metadata/Buffers.cs
  85. 2
      Mono.Cecil/Mono.Cecil.Metadata/CodedIndex.cs
  86. 2
      Mono.Cecil/Mono.Cecil.Metadata/ElementType.cs
  87. 2
      Mono.Cecil/Mono.Cecil.Metadata/GuidHeap.cs
  88. 2
      Mono.Cecil/Mono.Cecil.Metadata/Heap.cs
  89. 2
      Mono.Cecil/Mono.Cecil.Metadata/MetadataToken.cs
  90. 2
      Mono.Cecil/Mono.Cecil.Metadata/Row.cs
  91. 2
      Mono.Cecil/Mono.Cecil.Metadata/StringHeap.cs
  92. 52
      Mono.Cecil/Mono.Cecil.Metadata/TableHeap.cs
  93. 2
      Mono.Cecil/Mono.Cecil.Metadata/TokenType.cs
  94. 2
      Mono.Cecil/Mono.Cecil.Metadata/UserStringHeap.cs
  95. 2
      Mono.Cecil/Mono.Cecil.Metadata/Utilities.cs
  96. 2
      Mono.Cecil/Mono.Cecil.PE/BinaryStreamReader.cs
  97. 2
      Mono.Cecil/Mono.Cecil.PE/BinaryStreamWriter.cs
  98. 2
      Mono.Cecil/Mono.Cecil.PE/ByteBuffer.cs
  99. 2
      Mono.Cecil/Mono.Cecil.PE/ByteBufferEqualityComparer.cs
  100. 2
      Mono.Cecil/Mono.Cecil.PE/DataDirectory.cs
  101. Some files were not shown because too many files have changed in this diff Show More

19
ICSharpCode.Decompiler/Ast/Transforms/AddCheckedBlocks.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Linq; using System.Linq;

19
ICSharpCode.Decompiler/Ast/Transforms/CombineQueryExpressions.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Linq; using System.Linq;

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

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Diagnostics; using System.Diagnostics;

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

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Linq; using System.Linq;

19
ICSharpCode.Decompiler/Ast/Transforms/DeclareVariables.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

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

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ICSharpCode.Decompiler/Ast/Transforms/IntroduceExtensionMethods.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Linq; using System.Linq;

19
ICSharpCode.Decompiler/Ast/Transforms/IntroduceQueryExpressions.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Diagnostics; using System.Diagnostics;

19
ICSharpCode.Decompiler/Ast/Transforms/IntroduceUnsafeModifier.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using ICSharpCode.NRefactory.CSharp; using ICSharpCode.NRefactory.CSharp;

19
ICSharpCode.Decompiler/Ast/Transforms/IntroduceUsingDeclarations.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

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

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

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

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using ICSharpCode.NRefactory.CSharp; using ICSharpCode.NRefactory.CSharp;

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

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using ICSharpCode.NRefactory.PatternMatching; using ICSharpCode.NRefactory.PatternMatching;

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

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Threading; using System.Threading;

19
ICSharpCode.Decompiler/CodeMappings.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;

19
ICSharpCode.Decompiler/DecompilerException.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;

19
ICSharpCode.Decompiler/DecompilerSettings.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.ComponentModel; using System.ComponentModel;

23
ICSharpCode.Decompiler/ILAst/DefaultDictionary.cs

@ -1,9 +1,20 @@
// <file> // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// <copyright see="prj:///doc/copyright.txt"/> //
// <license see="prj:///doc/license.txt"/> // Permission is hereby granted, free of charge, to any person obtaining a copy of this
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/> // software and associated documentation files (the "Software"), to deal in the Software
// <version>$Revision$</version> // without restriction, including without limitation the rights to use, copy, modify, merge,
// </file> // publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections; using System.Collections;

20
ICSharpCode.Decompiler/ILAst/GotoRemoval.cs

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Collections.Generic; using System.Collections.Generic;

18
ICSharpCode.Decompiler/ILAst/ILAstBuilder.cs

@ -1,3 +1,21 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;

18
ICSharpCode.Decompiler/ILAst/ILAstOptimizer.cs

@ -1,3 +1,21 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;

18
ICSharpCode.Decompiler/ILAst/ILAstTypes.cs

@ -1,3 +1,21 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;

19
ICSharpCode.Decompiler/ILAst/ILCodes.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using Mono.Cecil; using Mono.Cecil;

21
ICSharpCode.Decompiler/ILAst/ILInlining.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -147,7 +162,7 @@ namespace ICSharpCode.Decompiler.ILAst
return true; return true;
} else if (numLdloc.GetOrDefault(v) == 0 && numLdloca.GetOrDefault(v) == 0) { } else if (numLdloc.GetOrDefault(v) == 0 && numLdloca.GetOrDefault(v) == 0) {
// The variable is never loaded // The variable is never loaded
if (inlinedExpression.HasNoSideEffects()) { if (inlinedExpression.HasNoSideEffects() && v.IsGenerated) {
// Remove completely // Remove completely
body.RemoveAt(pos); body.RemoveAt(pos);
return true; return true;

19
ICSharpCode.Decompiler/ILAst/InitializerPeepholeTransforms.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ICSharpCode.Decompiler/ILAst/LoopsAndConditions.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ICSharpCode.Decompiler/ILAst/PatternMatching.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ICSharpCode.Decompiler/ILAst/PeepholeTransform.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ICSharpCode.Decompiler/ILAst/SimpleControlFlow.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ICSharpCode.Decompiler/ILAst/YieldReturnDecompiler.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

44
ILSpy/AboutPage.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.ComponentModel; using System.ComponentModel;
@ -8,6 +23,7 @@ using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
@ -15,7 +31,7 @@ using System.Windows.Data;
using System.Windows.Input; using System.Windows.Input;
using System.Xml; using System.Xml;
using System.Xml.Linq; using System.Xml.Linq;
using ICSharpCode.AvalonEdit.Rendering;
using ICSharpCode.Decompiler; using ICSharpCode.Decompiler;
using ICSharpCode.ILSpy.TextView; using ICSharpCode.ILSpy.TextView;
@ -70,13 +86,33 @@ namespace ICSharpCode.ILSpy
using (Stream s = typeof(AboutPage).Assembly.GetManifestResourceStream(typeof(AboutPage), "README.txt")) { using (Stream s = typeof(AboutPage).Assembly.GetManifestResourceStream(typeof(AboutPage), "README.txt")) {
using (StreamReader r = new StreamReader(s)) { using (StreamReader r = new StreamReader(s)) {
string line; string line;
while ((line = r.ReadLine()) != null) while ((line = r.ReadLine()) != null) {
output.WriteLine(line); output.WriteLine(line);
} }
} }
}
output.AddVisualLineElementGenerator(new MyLinkElementGenerator("SharpDevelop", "http://www.icsharpcode.net/opensource/sd/"));
output.AddVisualLineElementGenerator(new MyLinkElementGenerator("MIT License", "resource:license.txt"));
output.AddVisualLineElementGenerator(new MyLinkElementGenerator("LGPL", "resource:LGPL.txt"));
textView.Show(output); textView.Show(output);
} }
sealed class MyLinkElementGenerator : LinkElementGenerator
{
readonly Uri uri;
public MyLinkElementGenerator(string matchText, string url) : base(new Regex(Regex.Escape(matchText)))
{
this.uri = new Uri(url);
this.RequireControlModifierForClick = false;
}
protected override Uri GetUriFromMatch(Match match)
{
return uri;
}
}
static void AddUpdateCheckButton(StackPanel stackPanel, DecompilerTextView textView) static void AddUpdateCheckButton(StackPanel stackPanel, DecompilerTextView textView)
{ {
Button button = new Button(); Button button = new Button();

15
ILSpy/App.xaml.cs

@ -27,6 +27,7 @@ using System.Windows;
using System.Windows.Documents; using System.Windows.Documents;
using System.Windows.Navigation; using System.Windows.Navigation;
using System.Windows.Threading; using System.Windows.Threading;
using ICSharpCode.ILSpy.TextView;
namespace ICSharpCode.ILSpy namespace ICSharpCode.ILSpy
{ {
@ -154,7 +155,21 @@ namespace ICSharpCode.ILSpy
void Window_RequestNavigate(object sender, RequestNavigateEventArgs e) void Window_RequestNavigate(object sender, RequestNavigateEventArgs e)
{ {
if (e.Uri.Scheme == "resource") {
AvalonEditTextOutput output = new AvalonEditTextOutput();
using (Stream s = typeof(App).Assembly.GetManifestResourceStream(typeof(App), e.Uri.AbsolutePath)) {
using (StreamReader r = new StreamReader(s)) {
string line;
while ((line = r.ReadLine()) != null) {
output.Write(line);
output.WriteLine();
}
}
}
ILSpy.MainWindow.Instance.TextView.Show(output);
} else {
Process.Start(e.Uri.ToString()); Process.Start(e.Uri.ToString());
} }
} }
}
} }

19
ILSpy/BamlDecompiler.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.ComponentModel.Composition; using System.ComponentModel.Composition;

19
ILSpy/CommandLineArguments.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ILSpy/Commands.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.ComponentModel.Composition; using System.ComponentModel.Composition;

19
ILSpy/ExportCommandAttribute.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.ComponentModel.Composition; using System.ComponentModel.Composition;

19
ILSpy/GuessFileType.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.IO; using System.IO;

6
ILSpy/ILSpy.csproj

@ -154,6 +154,12 @@
<EmbeddedResource Include="..\README.txt"> <EmbeddedResource Include="..\README.txt">
<Link>README.txt</Link> <Link>README.txt</Link>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="..\doc\LGPL.txt">
<Link>LGPL.txt</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\doc\license.txt">
<Link>license.txt</Link>
</EmbeddedResource>
<Resource Include="Images\AssemblyList.png" /> <Resource Include="Images\AssemblyList.png" />
<Resource Include="Images\AssemblyWarning.png" /> <Resource Include="Images\AssemblyWarning.png" />
<Resource Include="Images\ViewCode.png" /> <Resource Include="Images\ViewCode.png" />

19
ILSpy/ISmartTextOutput.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Windows; using System.Windows;

5
ILSpy/Images/AccessOverlayIcon.cs

@ -1,7 +1,4 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this // Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software // software and associated documentation files (the "Software"), to deal in the Software

19
ILSpy/Images/Images.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;

19
ILSpy/LoadedAssembly.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.IO; using System.IO;

19
ILSpy/NavigationHistory.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

21
ILSpy/NavigationState.cs

@ -1,9 +1,28 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using ICSharpCode.ILSpy.TextView; using ICSharpCode.ILSpy.TextView;
using ICSharpCode.TreeView; using ICSharpCode.TreeView;
namespace ICSharpCode.ILSpy namespace ICSharpCode.ILSpy
{ {
public class NavigationState : IEquatable<NavigationState> public class NavigationState : IEquatable<NavigationState>

19
ILSpy/Options/DecompilerSettingsPanel.xaml.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ILSpy/Options/OptionsDialog.xaml.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

8
ILSpy/TextView/AvalonEditTextOutput.cs

@ -24,6 +24,7 @@ using System.Text;
using System.Windows; using System.Windows;
using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Folding; using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.AvalonEdit.Rendering;
using ICSharpCode.AvalonEdit.Utils; using ICSharpCode.AvalonEdit.Utils;
using ICSharpCode.Decompiler; using ICSharpCode.Decompiler;
@ -73,6 +74,8 @@ namespace ICSharpCode.ILSpy.TextView
/// <summary>Whether indentation should be inserted on the next write</summary> /// <summary>Whether indentation should be inserted on the next write</summary>
bool needsIndent; bool needsIndent;
internal readonly List<VisualLineElementGenerator> elementGenerators = new List<VisualLineElementGenerator>();
/// <summary>List of all references that were written to the output</summary> /// <summary>List of all references that were written to the output</summary>
TextSegmentCollection<ReferenceSegment> references = new TextSegmentCollection<ReferenceSegment>(); TextSegmentCollection<ReferenceSegment> references = new TextSegmentCollection<ReferenceSegment>();
@ -98,6 +101,11 @@ namespace ICSharpCode.ILSpy.TextView
get { return references; } get { return references; }
} }
public void AddVisualLineElementGenerator(VisualLineElementGenerator elementGenerator)
{
elementGenerators.Add(elementGenerator);
}
/// <summary> /// <summary>
/// Controls the maximum length of the text. /// Controls the maximum length of the text.
/// When this length is exceeded, an <see cref="OutputLengthExceededException"/> will be thrown, /// When this length is exceeded, an <see cref="OutputLengthExceededException"/> will be thrown,

13
ILSpy/TextView/DecompilerTextView.cs

@ -39,6 +39,7 @@ using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Folding; using ICSharpCode.AvalonEdit.Folding;
using ICSharpCode.AvalonEdit.Highlighting; using ICSharpCode.AvalonEdit.Highlighting;
using ICSharpCode.AvalonEdit.Highlighting.Xshd; using ICSharpCode.AvalonEdit.Highlighting.Xshd;
using ICSharpCode.AvalonEdit.Rendering;
using ICSharpCode.Decompiler; using ICSharpCode.Decompiler;
using ICSharpCode.ILSpy.Debugger; using ICSharpCode.ILSpy.Debugger;
using ICSharpCode.ILSpy.Debugger.AvalonEdit; using ICSharpCode.ILSpy.Debugger.AvalonEdit;
@ -64,6 +65,7 @@ namespace ICSharpCode.ILSpy.TextView
{ {
readonly ReferenceElementGenerator referenceElementGenerator; readonly ReferenceElementGenerator referenceElementGenerator;
readonly UIElementGenerator uiElementGenerator; readonly UIElementGenerator uiElementGenerator;
List<VisualLineElementGenerator> activeCustomElementGenerators = new List<VisualLineElementGenerator>();
FoldingManager foldingManager; FoldingManager foldingManager;
DefinitionLookup definitionLookup; DefinitionLookup definitionLookup;
@ -272,6 +274,17 @@ namespace ICSharpCode.ILSpy.TextView
definitionLookup = textOutput.DefinitionLookup; definitionLookup = textOutput.DefinitionLookup;
textEditor.SyntaxHighlighting = highlighting; textEditor.SyntaxHighlighting = highlighting;
// Change the set of active element generators:
foreach (var elementGenerator in activeCustomElementGenerators) {
textEditor.TextArea.TextView.ElementGenerators.Remove(elementGenerator);
}
activeCustomElementGenerators.Clear();
foreach (var elementGenerator in textOutput.elementGenerators) {
textEditor.TextArea.TextView.ElementGenerators.Add(elementGenerator);
activeCustomElementGenerators.Add(elementGenerator);
}
Debug.WriteLine(" Set-up: {0}", w.Elapsed); w.Restart(); Debug.WriteLine(" Set-up: {0}", w.Elapsed); w.Restart();
textEditor.Document = textOutput.GetDocument(); textEditor.Document = textOutput.GetDocument();
Debug.WriteLine(" Assigning document: {0}", w.Elapsed); w.Restart(); Debug.WriteLine(" Assigning document: {0}", w.Elapsed); w.Restart();

25
ILSpy/TreeNodes/Analyzer/AnalyzedEventAccessorsTreeNode.cs

@ -1,12 +1,27 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using Mono.Cecil; using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes.Analyzer namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
{ {
/// <summary> class AnalyzedEventAccessorsTreeNode : AnalyzerTreeNode
/// Description of AnalyzedEventAccessorsTreeNode.
/// </summary>
public class AnalyzedEventAccessorsTreeNode : AnalyzerTreeNode
{ {
EventDefinition analyzedEvent; EventDefinition analyzedEvent;

20
ILSpy/TreeNodes/Analyzer/AnalyzedEventOverridesTreeNode.cs

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

19
ILSpy/TreeNodes/Analyzer/AnalyzedFieldAccessNode.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ILSpy/TreeNodes/Analyzer/AnalyzedFieldNode.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using Mono.Cecil; using Mono.Cecil;

25
ILSpy/TreeNodes/Analyzer/AnalyzedPropertyAccessorsTreeNode.cs

@ -1,12 +1,27 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using Mono.Cecil; using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes.Analyzer namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
{ {
/// <summary> class AnalyzedPropertyAccessorsTreeNode : AnalyzerTreeNode
/// Description of AnalyzedPropertyAccessorsTreeNode.
/// </summary>
public class AnalyzedPropertyAccessorsTreeNode : AnalyzerTreeNode
{ {
PropertyDefinition analyzedProperty; PropertyDefinition analyzedProperty;

20
ILSpy/TreeNodes/Analyzer/AnalyzedPropertyOverridesTreeNode.cs

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

20
ILSpy/TreeNodes/Analyzer/AnalyzerMethodOverridesTreeNode.cs

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

20
ILSpy/TreeNodes/Analyzer/Helpers.cs

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

21
ILSpy/TreeNodes/Analyzer/ScopedWhereUsedAnalyzer.cs

@ -1,4 +1,22 @@
using System; // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
@ -6,7 +24,6 @@ using Mono.Cecil;
using ICSharpCode.NRefactory.Utils; using ICSharpCode.NRefactory.Utils;
using ICSharpCode.TreeView; using ICSharpCode.TreeView;
namespace ICSharpCode.ILSpy.TreeNodes.Analyzer namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
{ {
/// <summary> /// <summary>

19
ILSpy/TreeNodes/DerivedTypesTreeNode.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ILSpy/TreeNodes/ResourceEntryNode.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.IO; using System.IO;

19
ILSpy/TreeNodes/ResourceListTreeNode.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections; using System.Collections;

19
ILSpy/TreeNodes/ResourceTreeNode.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections; using System.Collections;

19
ILSpy/TreeNodes/ThreadingSupport.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ILSpy/TreeNodes/XamlResourceNode.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.ComponentModel.Composition; using System.ComponentModel.Composition;

19
ILSpy/XmlDoc/XmlDocKeyProvider.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

19
ILSpy/XmlDoc/XmlDocLoader.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Diagnostics; using System.Diagnostics;

19
ILSpy/XmlDoc/XmlDocRenderer.cs

@ -1,5 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under MIT X11 license (for details please see \doc\license.txt) //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Diagnostics; using System.Diagnostics;

1
Mono.Cecil/.gitignore vendored

@ -5,3 +5,4 @@ obj
*.pidb *.pidb
*.userprefs *.userprefs
*.xml *.xml
*.nupkg

2
Mono.Cecil/Mono.Cecil.Cil/Code.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

10
Mono.Cecil/Mono.Cecil.Cil/CodeReader.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the
@ -49,18 +49,13 @@ namespace Mono.Cecil.Cil {
get { return base.position - start; } get { return base.position - start; }
} }
CodeReader (Section section, MetadataReader reader) public CodeReader (Section section, MetadataReader reader)
: base (section.Data) : base (section.Data)
{ {
this.code_section = section; this.code_section = section;
this.reader = reader; this.reader = reader;
} }
public static CodeReader CreateCodeReader (MetadataReader metadata)
{
return new CodeReader (metadata.image.MetadataSection, metadata);
}
public MethodBody ReadMethodBody (MethodDefinition method) public MethodBody ReadMethodBody (MethodDefinition method)
{ {
this.method = method; this.method = method;
@ -364,7 +359,6 @@ namespace Mono.Cecil.Cil {
break; break;
case ExceptionHandlerType.Filter: case ExceptionHandlerType.Filter:
handler.FilterStart = GetInstruction (ReadInt32 ()); handler.FilterStart = GetInstruction (ReadInt32 ());
handler.FilterEnd = handler.HandlerStart.Previous;
break; break;
default: default:
Advance (4); Advance (4);

4
Mono.Cecil/Mono.Cecil.Cil/CodeWriter.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the
@ -510,7 +510,7 @@ namespace Mono.Cecil.Cil {
return true; return true;
if (handler.HandlerType == ExceptionHandlerType.Filter if (handler.HandlerType == ExceptionHandlerType.Filter
&& IsFatRange (handler.FilterStart, handler.FilterEnd)) && IsFatRange (handler.FilterStart, handler.HandlerStart))
return true; return true;
} }

2
Mono.Cecil/Mono.Cecil.Cil/Document.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

8
Mono.Cecil/Mono.Cecil.Cil/ExceptionHandler.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the
@ -40,7 +40,6 @@ namespace Mono.Cecil.Cil {
Instruction try_start; Instruction try_start;
Instruction try_end; Instruction try_end;
Instruction filter_start; Instruction filter_start;
Instruction filter_end;
Instruction handler_start; Instruction handler_start;
Instruction handler_end; Instruction handler_end;
@ -62,11 +61,6 @@ namespace Mono.Cecil.Cil {
set { filter_start = value; } set { filter_start = value; }
} }
public Instruction FilterEnd {
get { return filter_end; }
set { filter_end = value; }
}
public Instruction HandlerStart { public Instruction HandlerStart {
get { return handler_start; } get { return handler_start; }
set { handler_start = value; } set { handler_start = value; }

2
Mono.Cecil/Mono.Cecil.Cil/ILProcessor.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Cil/Instruction.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Cil/MethodBody.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

547
Mono.Cecil/Mono.Cecil.Cil/OpCode.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the
@ -116,7 +116,7 @@ namespace Mono.Cecil.Cil {
readonly byte stack_behavior_push; readonly byte stack_behavior_push;
public string Name { public string Name {
get { return OpCodeNames.names [op1 == 0xff ? op2 : op2 + 256]; } get { return OpCodeNames.names [(int) Code]; }
} }
public int Size { public int Size {
@ -132,7 +132,7 @@ namespace Mono.Cecil.Cil {
} }
public short Value { public short Value {
get { return (short) ((op1 << 8) | op2); } get { return op1 == 0xff ? op2 : (short) ((op1 << 8) | op2); }
} }
public Code Code { public Code Code {
@ -214,311 +214,242 @@ namespace Mono.Cecil.Cil {
static class OpCodeNames { static class OpCodeNames {
internal static readonly string [] names = { internal static readonly string [] names;
"nop",
"break", static OpCodeNames ()
"ldarg.0", {
"ldarg.1", var table = new byte [] {
"ldarg.2", 3, 110, 111, 112,
"ldarg.3", 5, 98, 114, 101, 97, 107,
"ldloc.0", 7, 108, 100, 97, 114, 103, 46, 48,
"ldloc.1", 7, 108, 100, 97, 114, 103, 46, 49,
"ldloc.2", 7, 108, 100, 97, 114, 103, 46, 50,
"ldloc.3", 7, 108, 100, 97, 114, 103, 46, 51,
"stloc.0", 7, 108, 100, 108, 111, 99, 46, 48,
"stloc.1", 7, 108, 100, 108, 111, 99, 46, 49,
"stloc.2", 7, 108, 100, 108, 111, 99, 46, 50,
"stloc.3", 7, 108, 100, 108, 111, 99, 46, 51,
"ldarg.s", 7, 115, 116, 108, 111, 99, 46, 48,
"ldarga.s", 7, 115, 116, 108, 111, 99, 46, 49,
"starg.s", 7, 115, 116, 108, 111, 99, 46, 50,
"ldloc.s", 7, 115, 116, 108, 111, 99, 46, 51,
"ldloca.s", 7, 108, 100, 97, 114, 103, 46, 115,
"stloc.s", 8, 108, 100, 97, 114, 103, 97, 46, 115,
"ldnull", 7, 115, 116, 97, 114, 103, 46, 115,
"ldc.i4.m1", 7, 108, 100, 108, 111, 99, 46, 115,
"ldc.i4.0", 8, 108, 100, 108, 111, 99, 97, 46, 115,
"ldc.i4.1", 7, 115, 116, 108, 111, 99, 46, 115,
"ldc.i4.2", 6, 108, 100, 110, 117, 108, 108,
"ldc.i4.3", 9, 108, 100, 99, 46, 105, 52, 46, 109, 49,
"ldc.i4.4", 8, 108, 100, 99, 46, 105, 52, 46, 48,
"ldc.i4.5", 8, 108, 100, 99, 46, 105, 52, 46, 49,
"ldc.i4.6", 8, 108, 100, 99, 46, 105, 52, 46, 50,
"ldc.i4.7", 8, 108, 100, 99, 46, 105, 52, 46, 51,
"ldc.i4.8", 8, 108, 100, 99, 46, 105, 52, 46, 52,
"ldc.i4.s", 8, 108, 100, 99, 46, 105, 52, 46, 53,
"ldc.i4", 8, 108, 100, 99, 46, 105, 52, 46, 54,
"ldc.i8", 8, 108, 100, 99, 46, 105, 52, 46, 55,
"ldc.r4", 8, 108, 100, 99, 46, 105, 52, 46, 56,
"ldc.r8", 8, 108, 100, 99, 46, 105, 52, 46, 115,
null, 6, 108, 100, 99, 46, 105, 52,
"dup", 6, 108, 100, 99, 46, 105, 56,
"pop", 6, 108, 100, 99, 46, 114, 52,
"jmp", 6, 108, 100, 99, 46, 114, 56,
"call", 3, 100, 117, 112,
"calli", 3, 112, 111, 112,
"ret", 3, 106, 109, 112,
"br.s", 4, 99, 97, 108, 108,
"brfalse.s", 5, 99, 97, 108, 108, 105,
"brtrue.s", 3, 114, 101, 116,
"beq.s", 4, 98, 114, 46, 115,
"bge.s", 9, 98, 114, 102, 97, 108, 115, 101, 46, 115,
"bgt.s", 8, 98, 114, 116, 114, 117, 101, 46, 115,
"ble.s", 5, 98, 101, 113, 46, 115,
"blt.s", 5, 98, 103, 101, 46, 115,
"bne.un.s", 5, 98, 103, 116, 46, 115,
"bge.un.s", 5, 98, 108, 101, 46, 115,
"bgt.un.s", 5, 98, 108, 116, 46, 115,
"ble.un.s", 8, 98, 110, 101, 46, 117, 110, 46, 115,
"blt.un.s", 8, 98, 103, 101, 46, 117, 110, 46, 115,
"br", 8, 98, 103, 116, 46, 117, 110, 46, 115,
"brfalse", 8, 98, 108, 101, 46, 117, 110, 46, 115,
"brtrue", 8, 98, 108, 116, 46, 117, 110, 46, 115,
"beq", 2, 98, 114,
"bge", 7, 98, 114, 102, 97, 108, 115, 101,
"bgt", 6, 98, 114, 116, 114, 117, 101,
"ble", 3, 98, 101, 113,
"blt", 3, 98, 103, 101,
"bne.un", 3, 98, 103, 116,
"bge.un", 3, 98, 108, 101,
"bgt.un", 3, 98, 108, 116,
"ble.un", 6, 98, 110, 101, 46, 117, 110,
"blt.un", 6, 98, 103, 101, 46, 117, 110,
"switch", 6, 98, 103, 116, 46, 117, 110,
"ldind.i1", 6, 98, 108, 101, 46, 117, 110,
"ldind.u1", 6, 98, 108, 116, 46, 117, 110,
"ldind.i2", 6, 115, 119, 105, 116, 99, 104,
"ldind.u2", 8, 108, 100, 105, 110, 100, 46, 105, 49,
"ldind.i4", 8, 108, 100, 105, 110, 100, 46, 117, 49,
"ldind.u4", 8, 108, 100, 105, 110, 100, 46, 105, 50,
"ldind.i8", 8, 108, 100, 105, 110, 100, 46, 117, 50,
"ldind.i", 8, 108, 100, 105, 110, 100, 46, 105, 52,
"ldind.r4", 8, 108, 100, 105, 110, 100, 46, 117, 52,
"ldind.r8", 8, 108, 100, 105, 110, 100, 46, 105, 56,
"ldind.ref", 7, 108, 100, 105, 110, 100, 46, 105,
"stind.ref", 8, 108, 100, 105, 110, 100, 46, 114, 52,
"stind.i1", 8, 108, 100, 105, 110, 100, 46, 114, 56,
"stind.i2", 9, 108, 100, 105, 110, 100, 46, 114, 101, 102,
"stind.i4", 9, 115, 116, 105, 110, 100, 46, 114, 101, 102,
"stind.i8", 8, 115, 116, 105, 110, 100, 46, 105, 49,
"stind.r4", 8, 115, 116, 105, 110, 100, 46, 105, 50,
"stind.r8", 8, 115, 116, 105, 110, 100, 46, 105, 52,
"add", 8, 115, 116, 105, 110, 100, 46, 105, 56,
"sub", 8, 115, 116, 105, 110, 100, 46, 114, 52,
"mul", 8, 115, 116, 105, 110, 100, 46, 114, 56,
"div", 3, 97, 100, 100,
"div.un", 3, 115, 117, 98,
"rem", 3, 109, 117, 108,
"rem.un", 3, 100, 105, 118,
"and", 6, 100, 105, 118, 46, 117, 110,
"or", 3, 114, 101, 109,
"xor", 6, 114, 101, 109, 46, 117, 110,
"shl", 3, 97, 110, 100,
"shr", 2, 111, 114,
"shr.un", 3, 120, 111, 114,
"neg", 3, 115, 104, 108,
"not", 3, 115, 104, 114,
"conv.i1", 6, 115, 104, 114, 46, 117, 110,
"conv.i2", 3, 110, 101, 103,
"conv.i4", 3, 110, 111, 116,
"conv.i8", 7, 99, 111, 110, 118, 46, 105, 49,
"conv.r4", 7, 99, 111, 110, 118, 46, 105, 50,
"conv.r8", 7, 99, 111, 110, 118, 46, 105, 52,
"conv.u4", 7, 99, 111, 110, 118, 46, 105, 56,
"conv.u8", 7, 99, 111, 110, 118, 46, 114, 52,
"callvirt", 7, 99, 111, 110, 118, 46, 114, 56,
"cpobj", 7, 99, 111, 110, 118, 46, 117, 52,
"ldobj", 7, 99, 111, 110, 118, 46, 117, 56,
"ldstr", 8, 99, 97, 108, 108, 118, 105, 114, 116,
"newobj", 5, 99, 112, 111, 98, 106,
"castclass", 5, 108, 100, 111, 98, 106,
"isinst", 5, 108, 100, 115, 116, 114,
"conv.r.un", 6, 110, 101, 119, 111, 98, 106,
null, 9, 99, 97, 115, 116, 99, 108, 97, 115, 115,
null, 6, 105, 115, 105, 110, 115, 116,
"unbox", 9, 99, 111, 110, 118, 46, 114, 46, 117, 110,
"throw", 5, 117, 110, 98, 111, 120,
"ldfld", 5, 116, 104, 114, 111, 119,
"ldflda", 5, 108, 100, 102, 108, 100,
"stfld", 6, 108, 100, 102, 108, 100, 97,
"ldsfld", 5, 115, 116, 102, 108, 100,
"ldsflda", 6, 108, 100, 115, 102, 108, 100,
"stsfld", 7, 108, 100, 115, 102, 108, 100, 97,
"stobj", 6, 115, 116, 115, 102, 108, 100,
"conv.ovf.i1.un", 5, 115, 116, 111, 98, 106,
"conv.ovf.i2.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 49, 46, 117, 110,
"conv.ovf.i4.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 50, 46, 117, 110,
"conv.ovf.i8.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 52, 46, 117, 110,
"conv.ovf.u1.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 56, 46, 117, 110,
"conv.ovf.u2.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 49, 46, 117, 110,
"conv.ovf.u4.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 50, 46, 117, 110,
"conv.ovf.u8.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 52, 46, 117, 110,
"conv.ovf.i.un", 14, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 56, 46, 117, 110,
"conv.ovf.u.un", 13, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 46, 117, 110,
"box", 13, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 46, 117, 110,
"newarr", 3, 98, 111, 120,
"ldlen", 6, 110, 101, 119, 97, 114, 114,
"ldelema", 5, 108, 100, 108, 101, 110,
"ldelem.i1", 7, 108, 100, 101, 108, 101, 109, 97,
"ldelem.u1", 9, 108, 100, 101, 108, 101, 109, 46, 105, 49,
"ldelem.i2", 9, 108, 100, 101, 108, 101, 109, 46, 117, 49,
"ldelem.u2", 9, 108, 100, 101, 108, 101, 109, 46, 105, 50,
"ldelem.i4", 9, 108, 100, 101, 108, 101, 109, 46, 117, 50,
"ldelem.u4", 9, 108, 100, 101, 108, 101, 109, 46, 105, 52,
"ldelem.i8", 9, 108, 100, 101, 108, 101, 109, 46, 117, 52,
"ldelem.i", 9, 108, 100, 101, 108, 101, 109, 46, 105, 56,
"ldelem.r4", 8, 108, 100, 101, 108, 101, 109, 46, 105,
"ldelem.r8", 9, 108, 100, 101, 108, 101, 109, 46, 114, 52,
"ldelem.ref", 9, 108, 100, 101, 108, 101, 109, 46, 114, 56,
"stelem.i", 10, 108, 100, 101, 108, 101, 109, 46, 114, 101, 102,
"stelem.i1", 8, 115, 116, 101, 108, 101, 109, 46, 105,
"stelem.i2", 9, 115, 116, 101, 108, 101, 109, 46, 105, 49,
"stelem.i4", 9, 115, 116, 101, 108, 101, 109, 46, 105, 50,
"stelem.i8", 9, 115, 116, 101, 108, 101, 109, 46, 105, 52,
"stelem.r4", 9, 115, 116, 101, 108, 101, 109, 46, 105, 56,
"stelem.r8", 9, 115, 116, 101, 108, 101, 109, 46, 114, 52,
"stelem.ref", 9, 115, 116, 101, 108, 101, 109, 46, 114, 56,
"ldelem.any", 10, 115, 116, 101, 108, 101, 109, 46, 114, 101, 102,
"stelem.any", 10, 108, 100, 101, 108, 101, 109, 46, 97, 110, 121,
"unbox.any", 10, 115, 116, 101, 108, 101, 109, 46, 97, 110, 121,
null, 9, 117, 110, 98, 111, 120, 46, 97, 110, 121,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 49,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 49,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 50,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 50,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 52,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 52,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105, 56,
null, 11, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117, 56,
null, 9, 114, 101, 102, 97, 110, 121, 118, 97, 108,
null, 8, 99, 107, 102, 105, 110, 105, 116, 101,
null, 8, 109, 107, 114, 101, 102, 97, 110, 121,
null, 7, 108, 100, 116, 111, 107, 101, 110,
"conv.ovf.i1", 7, 99, 111, 110, 118, 46, 117, 50,
"conv.ovf.u1", 7, 99, 111, 110, 118, 46, 117, 49,
"conv.ovf.i2", 6, 99, 111, 110, 118, 46, 105,
"conv.ovf.u2", 10, 99, 111, 110, 118, 46, 111, 118, 102, 46, 105,
"conv.ovf.i4", 10, 99, 111, 110, 118, 46, 111, 118, 102, 46, 117,
"conv.ovf.u4", 7, 97, 100, 100, 46, 111, 118, 102,
"conv.ovf.i8", 10, 97, 100, 100, 46, 111, 118, 102, 46, 117, 110,
"conv.ovf.u8", 7, 109, 117, 108, 46, 111, 118, 102,
null, 10, 109, 117, 108, 46, 111, 118, 102, 46, 117, 110,
null, 7, 115, 117, 98, 46, 111, 118, 102,
null, 10, 115, 117, 98, 46, 111, 118, 102, 46, 117, 110,
null, 10, 101, 110, 100, 102, 105, 110, 97, 108, 108, 121,
null, 5, 108, 101, 97, 118, 101,
null, 7, 108, 101, 97, 118, 101, 46, 115,
null, 7, 115, 116, 105, 110, 100, 46, 105,
"refanyval", 6, 99, 111, 110, 118, 46, 117,
"ckfinite", 7, 97, 114, 103, 108, 105, 115, 116,
null, 3, 99, 101, 113,
null, 3, 99, 103, 116,
"mkrefany", 6, 99, 103, 116, 46, 117, 110,
null, 3, 99, 108, 116,
null, 6, 99, 108, 116, 46, 117, 110,
null, 5, 108, 100, 102, 116, 110,
null, 9, 108, 100, 118, 105, 114, 116, 102, 116, 110,
null, 5, 108, 100, 97, 114, 103,
null, 6, 108, 100, 97, 114, 103, 97,
null, 5, 115, 116, 97, 114, 103,
null, 5, 108, 100, 108, 111, 99,
null, 6, 108, 100, 108, 111, 99, 97,
"ldtoken", 5, 115, 116, 108, 111, 99,
"conv.u2", 8, 108, 111, 99, 97, 108, 108, 111, 99,
"conv.u1", 9, 101, 110, 100, 102, 105, 108, 116, 101, 114,
"conv.i", 10, 117, 110, 97, 108, 105, 103, 110, 101, 100, 46,
"conv.ovf.i", 9, 118, 111, 108, 97, 116, 105, 108, 101, 46,
"conv.ovf.u", 5, 116, 97, 105, 108, 46,
"add.ovf", 7, 105, 110, 105, 116, 111, 98, 106,
"add.ovf.un", 12, 99, 111, 110, 115, 116, 114, 97, 105, 110, 101, 100, 46,
"mul.ovf", 5, 99, 112, 98, 108, 107,
"mul.ovf.un", 7, 105, 110, 105, 116, 98, 108, 107,
"sub.ovf", 3, 110, 111, 46,
"sub.ovf.un", 7, 114, 101, 116, 104, 114, 111, 119,
"endfinally", 6, 115, 105, 122, 101, 111, 102,
"leave", 10, 114, 101, 102, 97, 110, 121, 116, 121, 112, 101,
"leave.s", 9, 114, 101, 97, 100, 111, 110, 108, 121, 46,
"stind.i",
"conv.u",
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
"prefix7",
"prefix6",
"prefix5",
"prefix4",
"prefix3",
"prefix2",
"prefix1",
"prefixref",
"arglist",
"ceq",
"cgt",
"cgt.un",
"clt",
"clt.un",
"ldftn",
"ldvirtftn",
null,
"ldarg",
"ldarga",
"starg",
"ldloc",
"ldloca",
"stloc",
"localloc",
null,
"endfilter",
"unaligned.",
"volatile.",
"tail.",
"initobj",
"constrained.",
"cpblk",
"initblk",
"no.", // added by spouliot to match Cecil existing definitions
"rethrow",
null,
"sizeof",
"refanytype",
"readonly.", // added by spouliot to match Cecil existing definitions
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
}; };
names = new string [219];
for (int i = 0, p = 0; i < names.Length; i++) {
var buffer = new char [table [p++]];
for (int j = 0; j < buffer.Length; j++)
buffer [j] = (char) table [p++];
names [i] = new string (buffer);
}
}
} }
} }

2
Mono.Cecil/Mono.Cecil.Cil/OpCodes.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Cil/SequencePoint.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

9
Mono.Cecil/Mono.Cecil.Cil/Symbols.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the
@ -151,10 +151,15 @@ namespace Mono.Cecil.Cil {
get { return local_var_token; } get { return local_var_token; }
} }
public MethodSymbols (string methodName) internal MethodSymbols (string methodName)
{ {
this.method_name = methodName; this.method_name = methodName;
} }
public MethodSymbols (MetadataToken methodToken)
{
this.method_token = methodToken;
}
} }
public delegate Instruction InstructionMapper (int offset); public delegate Instruction InstructionMapper (int offset);

2
Mono.Cecil/Mono.Cecil.Cil/VariableDefinition.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Cil/VariableReference.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/BlobHeap.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

4
Mono.Cecil/Mono.Cecil.Metadata/Buffers.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the
@ -261,7 +261,7 @@ namespace Mono.Cecil.Metadata {
abstract class HeapBuffer : ByteBuffer { abstract class HeapBuffer : ByteBuffer {
public bool IsLarge { public bool IsLarge {
get { return base.length > 65536; } get { return base.length > 65535; }
} }
public abstract bool IsEmpty { get; } public abstract bool IsEmpty { get; }

2
Mono.Cecil/Mono.Cecil.Metadata/CodedIndex.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/ElementType.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/GuidHeap.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/Heap.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/MetadataToken.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/Row.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/StringHeap.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

52
Mono.Cecil/Mono.Cecil.Metadata/TableHeap.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the
@ -62,6 +62,8 @@ namespace Mono.Cecil.Metadata {
TypeSpec = 0x1b, TypeSpec = 0x1b,
ImplMap = 0x1c, ImplMap = 0x1c,
FieldRVA = 0x1d, FieldRVA = 0x1d,
EncLog = 0x1e,
EncMap = 0x1f,
Assembly = 0x20, Assembly = 0x20,
AssemblyProcessor = 0x21, AssemblyProcessor = 0x21,
AssemblyOS = 0x22, AssemblyOS = 0x22,
@ -88,53 +90,9 @@ namespace Mono.Cecil.Metadata {
public long Valid; public long Valid;
public long Sorted; public long Sorted;
public static readonly Table [] TableIdentifiers = new [] { public const int TableCount = 45;
Table.Module,
Table.TypeRef,
Table.TypeDef,
Table.FieldPtr,
Table.Field,
Table.MethodPtr,
Table.Method,
Table.ParamPtr,
Table.Param,
Table.InterfaceImpl,
Table.MemberRef,
Table.Constant,
Table.CustomAttribute,
Table.FieldMarshal,
Table.DeclSecurity,
Table.ClassLayout,
Table.FieldLayout,
Table.StandAloneSig,
Table.EventMap,
Table.EventPtr,
Table.Event,
Table.PropertyMap,
Table.PropertyPtr,
Table.Property,
Table.MethodSemantics,
Table.MethodImpl,
Table.ModuleRef,
Table.TypeSpec,
Table.ImplMap,
Table.FieldRVA,
Table.Assembly,
Table.AssemblyProcessor,
Table.AssemblyOS,
Table.AssemblyRef,
Table.AssemblyRefProcessor,
Table.AssemblyRefOS,
Table.File,
Table.ExportedType,
Table.ManifestResource,
Table.NestedClass,
Table.GenericParam,
Table.MethodSpec,
Table.GenericParamConstraint,
};
public readonly TableInformation [] Tables = new TableInformation [45]; public readonly TableInformation [] Tables = new TableInformation [TableCount];
public TableInformation this [Table table] { public TableInformation this [Table table] {
get { return Tables [(int) table]; } get { return Tables [(int) table]; }

2
Mono.Cecil/Mono.Cecil.Metadata/TokenType.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/UserStringHeap.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.Metadata/Utilities.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.PE/BinaryStreamReader.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.PE/BinaryStreamWriter.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.PE/ByteBuffer.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.PE/ByteBufferEqualityComparer.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

2
Mono.Cecil/Mono.Cecil.PE/DataDirectory.cs

@ -4,7 +4,7 @@
// Author: // Author:
// Jb Evain (jbevain@gmail.com) // Jb Evain (jbevain@gmail.com)
// //
// Copyright (c) 2008 - 2010 Jb Evain // Copyright (c) 2008 - 2011 Jb Evain
// //
// Permission is hereby granted, free of charge, to any person obtaining // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the // a copy of this software and associated documentation files (the

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save