Browse Source

Namespace adjustments for Syntax classes

pull/728/merge
Siegfried Pammer 9 years ago
parent
commit
840ec04fde
  1. 1
      ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs
  2. 5
      ICSharpCode.Decompiler/CSharp/Annotations.cs
  3. 1
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs
  4. 2
      ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs
  5. 5
      ICSharpCode.Decompiler/CSharp/NRefactoryExtensions.cs
  6. 1
      ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpAmbience.cs
  7. 7
      ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpOutputVisitor.cs
  8. 1
      ICSharpCode.Decompiler/CSharp/OutputVisitor/ITokenWriter.cs
  9. 1
      ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertMissingTokensDecorator.cs
  10. 1
      ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertParenthesesVisitor.cs
  11. 1
      ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertRequiredSpacesDecorator.cs
  12. 1
      ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertSpecialsDecorator.cs
  13. 1
      ICSharpCode.Decompiler/CSharp/OutputVisitor/TextWriterOutputFormatter.cs
  14. 5
      ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs
  15. 2
      ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs
  16. 1
      ICSharpCode.Decompiler/CSharp/Resolver/CompositeResolveVisitorNavigator.cs
  17. 1
      ICSharpCode.Decompiler/CSharp/Resolver/DetectSkippableNodesNavigator.cs
  18. 1
      ICSharpCode.Decompiler/CSharp/Resolver/DynamicInvocationResolveResult.cs
  19. 1
      ICSharpCode.Decompiler/CSharp/Resolver/FindReferencedEntities.cs
  20. 1
      ICSharpCode.Decompiler/CSharp/Resolver/IResolveVisitorNavigator.cs
  21. 2
      ICSharpCode.Decompiler/CSharp/Resolver/MethodGroupResolveResult.cs
  22. 1
      ICSharpCode.Decompiler/CSharp/Resolver/NodeListResolveVisitorNavigator.cs
  23. 1
      ICSharpCode.Decompiler/CSharp/Resolver/OverloadResolution.cs
  24. 6
      ICSharpCode.Decompiler/CSharp/Resolver/ReducedExtensionMethod.cs
  25. 1
      ICSharpCode.Decompiler/CSharp/Resolver/TypeInference.cs
  26. 8
      ICSharpCode.Decompiler/CSharp/StatementBuilder.cs
  27. 27
      ICSharpCode.Decompiler/CSharp/Syntax/AstNode.cs
  28. 2
      ICSharpCode.Decompiler/CSharp/Syntax/AstNodeCollection.cs
  29. 15
      ICSharpCode.Decompiler/CSharp/Syntax/AstType.cs
  30. 3
      ICSharpCode.Decompiler/CSharp/Syntax/CSharpModifierToken.cs
  31. 5
      ICSharpCode.Decompiler/CSharp/Syntax/CSharpTokenNode.cs
  32. 4
      ICSharpCode.Decompiler/CSharp/Syntax/CSharpUtil.cs
  33. 5
      ICSharpCode.Decompiler/CSharp/Syntax/ComposedType.cs
  34. 8
      ICSharpCode.Decompiler/CSharp/Syntax/DepthFirstAstVisitor.cs
  35. 3
      ICSharpCode.Decompiler/CSharp/Syntax/DocumentationReference.cs
  36. 3
      ICSharpCode.Decompiler/CSharp/Syntax/ErrorNode.cs
  37. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AnonymousMethodExpression.cs
  38. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AnonymousTypeCreateExpression.cs
  39. 5
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayCreateExpression.cs
  40. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayInitializerExpression.cs
  41. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AsExpression.cs
  42. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AssignmentExpression.cs
  43. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BaseReferenceExpression.cs
  44. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BinaryOperatorExpression.cs
  45. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CastExpression.cs
  46. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CheckedExpression.cs
  47. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ConditionalExpression.cs
  48. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DefaultValueExpression.cs
  49. 5
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DirectionExpression.cs
  50. 5
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ErrorExpression.cs
  51. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/Expression.cs
  52. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IdentifierExpression.cs
  53. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IndexerExpression.cs
  54. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/InvocationExpression.cs
  55. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IsExpression.cs
  56. 5
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/LambdaExpression.cs
  57. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/MemberReferenceExpression.cs
  58. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedArgumentExpression.cs
  59. 5
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedExpression.cs
  60. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NullReferenceExpression.cs
  61. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ObjectCreateExpression.cs
  62. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ParenthesizedExpression.cs
  63. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PointerReferenceExpression.cs
  64. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PrimitiveExpression.cs
  65. 5
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/QueryExpression.cs
  66. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SizeOfExpression.cs
  67. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/StackAllocExpression.cs
  68. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThisReferenceExpression.cs
  69. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeOfExpression.cs
  70. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.cs
  71. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UnaryOperatorExpression.cs
  72. 3
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UncheckedExpression.cs
  73. 14
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UndocumentedExpression.cs
  74. 4
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Attribute.cs
  75. 6
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/AttributeSection.cs
  76. 3
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs
  77. 4
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Constraint.cs
  78. 3
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/DelegateDeclaration.cs
  79. 3
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs
  80. 5
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/NamespaceDeclaration.cs
  81. 6
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/NewLineNode.cs
  82. 5
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/PreProcessorDirective.cs
  83. 4
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TextNode.cs
  84. 5
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TypeDeclaration.cs
  85. 4
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TypeParameterDeclaration.cs
  86. 3
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs
  87. 5
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingDeclaration.cs
  88. 4
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/WhitespaceNode.cs
  89. 8
      ICSharpCode.Decompiler/CSharp/Syntax/IAstVisitor.cs
  90. 4
      ICSharpCode.Decompiler/CSharp/Syntax/Identifier.cs
  91. 7
      ICSharpCode.Decompiler/CSharp/Syntax/IdentifierExpressionBackreference.cs
  92. 3
      ICSharpCode.Decompiler/CSharp/Syntax/MemberType.cs
  93. 4
      ICSharpCode.Decompiler/CSharp/Syntax/ObservableAstVisitor.cs
  94. 3
      ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNode.cs
  95. 3
      ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNodeOrNull.cs
  96. 2
      ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/Backreference.cs
  97. 4
      ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/BacktrackingInfo.cs
  98. 2
      ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/Choice.cs
  99. 3
      ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/INode.cs
  100. 4
      ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/Match.cs
  101. Some files were not shown because too many files have changed in this diff Show More

1
ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs

@ -24,7 +24,6 @@ @@ -24,7 +24,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
namespace ICSharpCode.NRefactory.CSharp
{

5
ICSharpCode.Decompiler/CSharp/Annotations.cs

@ -16,11 +16,8 @@ @@ -16,11 +16,8 @@
// 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;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.Decompiler.IL;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
@ -37,7 +34,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -37,7 +34,7 @@ namespace ICSharpCode.Decompiler.CSharp
// * AddCheckedBlocks.CheckedAnnotation / AddCheckedBlocks.UnCheckedAnnotation is used on checked/unchecked integer arithmetic
// TODO: here the info is also redundant, we could peek at the BinaryNumericInstruction instead
// but on the other hand, some unchecked casts are not backed by any BinaryNumericInstruction
/// <summary>
/// Currently unused; we'll probably use the LdToken ILInstruction as annotation instead when LdToken support gets reimplemented.
/// </summary>

1
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -24,7 +24,6 @@ using System.Threading; @@ -24,7 +24,6 @@ using System.Threading;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.Decompiler.CSharp.Resolver;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
using Mono.Cecil;
using ICSharpCode.Decompiler.CSharp.Transforms;
using ICSharpCode.Decompiler.IL;

2
ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs

@ -29,8 +29,6 @@ using ICSharpCode.Decompiler.Semantics; @@ -29,8 +29,6 @@ using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.NRefactory;
using ICSharpCode.NRefactory.CSharp;
using ExpressionType = System.Linq.Expressions.ExpressionType;
using PrimitiveType = ICSharpCode.Decompiler.CSharp.Syntax.PrimitiveType;

5
ICSharpCode.Decompiler/CSharp/NRefactoryExtensions.cs

@ -18,8 +18,7 @@ @@ -18,8 +18,7 @@
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.PatternMatching;
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching;
namespace ICSharpCode.Decompiler.CSharp
{
@ -57,7 +56,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -57,7 +56,7 @@ namespace ICSharpCode.Decompiler.CSharp
return new NamedNode(patternGroupName, node);
}
public static void AddNamedArgument(this NRefactory.CSharp.Attribute attribute, string name, Expression argument)
public static void AddNamedArgument(this Syntax.Attribute attribute, string name, Expression argument)
{
attribute.Arguments.Add(new AssignmentExpression(new IdentifierExpression(name), argument));
}

1
ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpAmbience.cs

@ -20,7 +20,6 @@ using System; @@ -20,7 +20,6 @@ using System;
using System.IO;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{

7
ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpOutputVisitor.cs

@ -22,10 +22,9 @@ using System.Diagnostics; @@ -22,10 +22,9 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.PatternMatching;
using Attribute = ICSharpCode.NRefactory.CSharp.Attribute;
using Attribute = ICSharpCode.Decompiler.CSharp.Syntax.Attribute;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{
@ -2276,7 +2275,7 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor @@ -2276,7 +2275,7 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
#endregion
#region Pattern Nodes
public virtual void VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern)
public virtual void VisitPatternPlaceholder(AstNode placeholder, Pattern pattern)
{
StartNode(placeholder);
VisitNodeInPattern(pattern);

1
ICSharpCode.Decompiler/CSharp/OutputVisitor/ITokenWriter.cs

@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
using System;
using System.IO;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{

1
ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertMissingTokensDecorator.cs

@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{

1
ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertParenthesesVisitor.cs

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{

1
ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertRequiredSpacesDecorator.cs

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{

1
ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertSpecialsDecorator.cs

@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
using System.Collections.Generic;
using System.Diagnostics;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{

1
ICSharpCode.Decompiler/CSharp/OutputVisitor/TextWriterOutputFormatter.cs

@ -21,7 +21,6 @@ using System.Globalization; @@ -21,7 +21,6 @@ using System.Globalization;
using System.IO;
using System.Text;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.OutputVisitor
{

5
ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs

@ -23,7 +23,6 @@ using System.Text; @@ -23,7 +23,6 @@ using System.Text;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.NRefactory;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{
@ -169,10 +168,6 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver @@ -169,10 +168,6 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver
get { return EmptyList<IAttribute>.Instance; }
}
NRefactory.Documentation.DocumentationComment IEntity.Documentation {
get { return null; }
}
Accessibility IHasAccessibility.Accessibility {
get { return Accessibility.Public; }
}

2
ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs

@ -26,8 +26,6 @@ using ICSharpCode.Decompiler.Semantics; @@ -26,8 +26,6 @@ using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.NRefactory;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

1
ICSharpCode.Decompiler/CSharp/Resolver/CompositeResolveVisitorNavigator.cs

@ -20,7 +20,6 @@ using System; @@ -20,7 +20,6 @@ using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

1
ICSharpCode.Decompiler/CSharp/Resolver/DetectSkippableNodesNavigator.cs

@ -20,7 +20,6 @@ using System.Collections.Generic; @@ -20,7 +20,6 @@ using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

1
ICSharpCode.Decompiler/CSharp/Resolver/DynamicInvocationResolveResult.cs

@ -21,7 +21,6 @@ using System.Globalization; @@ -21,7 +21,6 @@ using System.Globalization;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.NRefactory;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

1
ICSharpCode.Decompiler/CSharp/Resolver/FindReferencedEntities.cs

@ -20,7 +20,6 @@ using System; @@ -20,7 +20,6 @@ using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

1
ICSharpCode.Decompiler/CSharp/Resolver/IResolveVisitorNavigator.cs

@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

2
ICSharpCode.Decompiler/CSharp/Resolver/MethodGroupResolveResult.cs

@ -22,9 +22,7 @@ using System.Diagnostics; @@ -22,9 +22,7 @@ using System.Diagnostics;
using System.Linq;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.NRefactory;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

1
ICSharpCode.Decompiler/CSharp/Resolver/NodeListResolveVisitorNavigator.cs

@ -21,7 +21,6 @@ using System.Collections.Generic; @@ -21,7 +21,6 @@ using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

1
ICSharpCode.Decompiler/CSharp/Resolver/OverloadResolution.cs

@ -24,7 +24,6 @@ using ICSharpCode.Decompiler.Semantics; @@ -24,7 +24,6 @@ using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.NRefactory;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

6
ICSharpCode.Decompiler/CSharp/Resolver/ReducedExtensionMethod.cs

@ -329,12 +329,6 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver @@ -329,12 +329,6 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver
}
}
public ICSharpCode.NRefactory.Documentation.DocumentationComment Documentation {
get {
return baseMethod.Documentation;
}
}
public bool IsStatic {
get {
return false;

1
ICSharpCode.Decompiler/CSharp/Resolver/TypeInference.cs

@ -24,7 +24,6 @@ using ICSharpCode.Decompiler.Semantics; @@ -24,7 +24,6 @@ using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
using ICSharpCode.NRefactory;
namespace ICSharpCode.Decompiler.CSharp.Resolver
{

8
ICSharpCode.Decompiler/CSharp/StatementBuilder.cs

@ -18,8 +18,6 @@ @@ -18,8 +18,6 @@
using System.Diagnostics;
using ICSharpCode.Decompiler.IL;
using ICSharpCode.NRefactory.CSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
@ -92,14 +90,14 @@ namespace ICSharpCode.Decompiler.CSharp @@ -92,14 +90,14 @@ namespace ICSharpCode.Decompiler.CSharp
var value = exprBuilder.Translate(inst.Value);
var stmt = new SwitchStatement() { Expression = value };
foreach (var section in inst.Sections) {
var astSection = new ICSharpCode.NRefactory.CSharp.SwitchSection();
var astSection = new Syntax.SwitchSection();
astSection.CaseLabels.AddRange(section.Labels.Values.Select(i => CreateTypedCaseLabel(i, value.Type)));
ConvertSwitchSectionBody(astSection, section.Body);
stmt.SwitchSections.Add(astSection);
}
if (inst.DefaultBody.OpCode != OpCode.Nop) {
var astSection = new ICSharpCode.NRefactory.CSharp.SwitchSection();
var astSection = new Syntax.SwitchSection();
astSection.CaseLabels.Add(new CaseLabel());
ConvertSwitchSectionBody(astSection, inst.DefaultBody);
stmt.SwitchSections.Add(astSection);
@ -109,7 +107,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -109,7 +107,7 @@ namespace ICSharpCode.Decompiler.CSharp
return stmt;
}
private void ConvertSwitchSectionBody(NRefactory.CSharp.SwitchSection astSection, ILInstruction bodyInst)
private void ConvertSwitchSectionBody(Syntax.SwitchSection astSection, ILInstruction bodyInst)
{
var body = Convert(bodyInst);
astSection.Statements.Add(body);

27
ICSharpCode.Decompiler/CSharp/Syntax/AstNode.cs

@ -30,9 +30,8 @@ using System.Diagnostics; @@ -30,9 +30,8 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.PatternMatching;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -73,7 +72,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -73,7 +72,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitNullNode(this, data);
}
protected internal override bool DoMatch (AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch (AstNode other, PatternMatching.Match match)
{
return other == null || other.IsNull;
}
@ -81,16 +80,16 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -81,16 +80,16 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
#endregion
#region PatternPlaceholder
public static implicit operator AstNode (NRefactory.PatternMatching.Pattern pattern)
public static implicit operator AstNode (PatternMatching.Pattern pattern)
{
return pattern != null ? new PatternPlaceholder (pattern) : null;
}
sealed class PatternPlaceholder : AstNode, INode
{
readonly NRefactory.PatternMatching.Pattern child;
readonly PatternMatching.Pattern child;
public PatternPlaceholder (NRefactory.PatternMatching.Pattern child)
public PatternPlaceholder (PatternMatching.Pattern child)
{
this.child = child;
}
@ -114,12 +113,12 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -114,12 +113,12 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitPatternPlaceholder (this, child, data);
}
protected internal override bool DoMatch (AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch (AstNode other, PatternMatching.Match match)
{
return child.DoMatch (other, match);
}
bool NRefactory.PatternMatching.INode.DoMatchCollection (Role role, NRefactory.PatternMatching.INode pos, NRefactory.PatternMatching.Match match, NRefactory.PatternMatching.BacktrackingInfo backtrackingInfo)
bool PatternMatching.INode.DoMatchCollection (Role role, PatternMatching.INode pos, PatternMatching.Match match, PatternMatching.BacktrackingInfo backtrackingInfo)
{
return child.DoMatchCollection (role, pos, match, backtrackingInfo);
}
@ -650,29 +649,29 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -650,29 +649,29 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
#region Pattern Matching
protected static bool MatchString (string pattern, string text)
{
return NRefactory.PatternMatching.Pattern.MatchString(pattern, text);
return PatternMatching.Pattern.MatchString(pattern, text);
}
protected internal abstract bool DoMatch (AstNode other, NRefactory.PatternMatching.Match match);
protected internal abstract bool DoMatch (AstNode other, PatternMatching.Match match);
bool NRefactory.PatternMatching.INode.DoMatch (NRefactory.PatternMatching.INode other, NRefactory.PatternMatching.Match match)
bool PatternMatching.INode.DoMatch (PatternMatching.INode other, PatternMatching.Match match)
{
AstNode o = other as AstNode;
// try matching if other is null, or if other is an AstNode
return (other == null || o != null) && DoMatch (o, match);
}
bool NRefactory.PatternMatching.INode.DoMatchCollection (Role role, NRefactory.PatternMatching.INode pos, NRefactory.PatternMatching.Match match, NRefactory.PatternMatching.BacktrackingInfo backtrackingInfo)
bool PatternMatching.INode.DoMatchCollection (Role role, PatternMatching.INode pos, PatternMatching.Match match, PatternMatching.BacktrackingInfo backtrackingInfo)
{
AstNode o = pos as AstNode;
return (pos == null || o != null) && DoMatch (o, match);
}
NRefactory.PatternMatching.INode NRefactory.PatternMatching.INode.NextSibling {
PatternMatching.INode PatternMatching.INode.NextSibling {
get { return nextSibling; }
}
NRefactory.PatternMatching.INode NRefactory.PatternMatching.INode.FirstChild {
PatternMatching.INode PatternMatching.INode.FirstChild {
get { return firstChild; }
}

2
ICSharpCode.Decompiler/CSharp/Syntax/AstNodeCollection.cs

@ -21,7 +21,7 @@ using System.Collections; @@ -21,7 +21,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.NRefactory.PatternMatching;
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{

15
ICSharpCode.Decompiler/CSharp/Syntax/AstType.cs

@ -19,9 +19,8 @@ @@ -19,9 +19,8 @@
using System;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Resolver;
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.PatternMatching;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -56,7 +55,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -56,7 +55,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitNullNode(this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
return other == null || other.IsNull;
}
@ -69,16 +68,16 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -69,16 +68,16 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
#endregion
#region PatternPlaceholder
public static implicit operator AstType(NRefactory.PatternMatching.Pattern pattern)
public static implicit operator AstType(PatternMatching.Pattern pattern)
{
return pattern != null ? new PatternPlaceholder(pattern) : null;
}
sealed class PatternPlaceholder : AstType, INode
{
readonly NRefactory.PatternMatching.Pattern child;
readonly PatternMatching.Pattern child;
public PatternPlaceholder(NRefactory.PatternMatching.Pattern child)
public PatternPlaceholder(PatternMatching.Pattern child)
{
this.child = child;
}
@ -107,12 +106,12 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -107,12 +106,12 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
throw new NotSupportedException();
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
return child.DoMatch(other, match);
}
bool NRefactory.PatternMatching.INode.DoMatchCollection(Role role, NRefactory.PatternMatching.INode pos, NRefactory.PatternMatching.Match match, NRefactory.PatternMatching.BacktrackingInfo backtrackingInfo)
bool PatternMatching.INode.DoMatchCollection(Role role, PatternMatching.INode pos, PatternMatching.Match match, PatternMatching.BacktrackingInfo backtrackingInfo)
{
return child.DoMatchCollection(role, pos, match, backtrackingInfo);
}

3
ICSharpCode.Decompiler/CSharp/Syntax/CSharpModifierToken.cs

@ -27,7 +27,6 @@ @@ -27,7 +27,6 @@
using System;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -54,7 +53,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -54,7 +53,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return GetModifierName (Modifier);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
CSharpModifierToken o = other as CSharpModifierToken;
return o != null && this.modifier == o.modifier;

5
ICSharpCode.Decompiler/CSharp/Syntax/CSharpTokenNode.cs

@ -25,7 +25,6 @@ @@ -25,7 +25,6 @@
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -65,7 +64,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -65,7 +64,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitNullNode(this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
return other == null || other.IsNull;
}
@ -123,7 +122,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -123,7 +122,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitCSharpTokenNode (this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
CSharpTokenNode o = other as CSharpTokenNode;
return o != null && !o.IsNull && !(o is CSharpModifierToken);

4
ICSharpCode.Decompiler/CSharp/Syntax/CSharpUtil.cs

@ -24,8 +24,8 @@ @@ -24,8 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.PatternMatching;
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{

5
ICSharpCode.Decompiler/CSharp/Syntax/ComposedType.cs

@ -30,7 +30,6 @@ using System.Text; @@ -30,7 +30,6 @@ using System.Text;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.Decompiler.CSharp.Resolver;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -117,7 +116,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -117,7 +116,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitComposedType (this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
ComposedType o = other as ComposedType;
return o != null
@ -247,7 +246,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -247,7 +246,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitArraySpecifier(this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
ArraySpecifier o = other as ArraySpecifier;
return o != null && this.Dimensions == o.Dimensions;

8
ICSharpCode.Decompiler/CSharp/Syntax/DepthFirstAstVisitor.cs

@ -24,8 +24,6 @@ @@ -24,8 +24,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.NRefactory.CSharp;
using Attribute = ICSharpCode.NRefactory.CSharp.Attribute;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -628,7 +626,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -628,7 +626,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
VisitChildren(errorNode);
}
public virtual void VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern)
public virtual void VisitPatternPlaceholder(AstNode placeholder, PatternMatching.Pattern pattern)
{
VisitChildren (placeholder);
}
@ -1235,7 +1233,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -1235,7 +1233,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return VisitChildren(errorNode);
}
public virtual T VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern)
public virtual T VisitPatternPlaceholder(AstNode placeholder, PatternMatching.Pattern pattern)
{
return VisitChildren (placeholder);
}
@ -1842,7 +1840,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -1842,7 +1840,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return VisitChildren(errorNode, data);
}
public virtual S VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern, T data)
public virtual S VisitPatternPlaceholder(AstNode placeholder, PatternMatching.Pattern pattern, T data)
{
return VisitChildren (placeholder, data);
}

3
ICSharpCode.Decompiler/CSharp/Syntax/DocumentationReference.cs

@ -17,7 +17,6 @@ @@ -17,7 +17,6 @@
// DEALINGS IN THE SOFTWARE.
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -110,7 +109,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -110,7 +109,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole (Roles.Parameter); }
}
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
DocumentationReference o = other as DocumentationReference;
if (!(o != null && this.SymbolKind == o.SymbolKind && this.HasParameterList == o.HasParameterList))

3
ICSharpCode.Decompiler/CSharp/Syntax/ErrorNode.cs

@ -25,7 +25,6 @@ @@ -25,7 +25,6 @@
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -75,7 +74,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -75,7 +74,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitErrorNode(this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
var o = other as ErrorNode;
return o != null;

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AnonymousMethodExpression.cs

@ -26,9 +26,8 @@ @@ -26,9 +26,8 @@
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// [async] delegate(Parameters) {Body}

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AnonymousTypeCreateExpression.cs

@ -23,11 +23,9 @@ @@ -23,11 +23,9 @@
// 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 ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// new { [ExpressionList] }

5
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayCreateExpression.cs

@ -16,11 +16,8 @@ @@ -16,11 +16,8 @@
// 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 ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// new Type[Dimensions]

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayInitializerExpression.cs

@ -25,9 +25,8 @@ @@ -25,9 +25,8 @@
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// { Elements }

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AsExpression.cs

@ -24,10 +24,8 @@ @@ -24,10 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Expression as TypeReference

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/AssignmentExpression.cs

@ -27,9 +27,8 @@ @@ -27,9 +27,8 @@
using System;
using System.Linq.Expressions;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Left Operator= Right

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BaseReferenceExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// base

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BinaryOperatorExpression.cs

@ -27,9 +27,8 @@ @@ -27,9 +27,8 @@
using System;
using System.Linq.Expressions;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Left Operator Right

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CastExpression.cs

@ -24,10 +24,8 @@ @@ -24,10 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// (CastTo)Expression

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CheckedExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// checked(Expression)

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ConditionalExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Condition ? TrueExpression : FalseExpression

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DefaultValueExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// default(Type)

5
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DirectionExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
public enum FieldDirection
{
@ -49,7 +48,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -49,7 +48,7 @@ namespace ICSharpCode.NRefactory.CSharp
}
public CSharpTokenNode FieldDirectionToken {
get { return FieldDirection == ICSharpCode.NRefactory.CSharp.FieldDirection.Ref ? GetChildByRole (RefKeywordRole) : GetChildByRole (OutKeywordRole); }
get { return FieldDirection == FieldDirection.Ref ? GetChildByRole (RefKeywordRole) : GetChildByRole (OutKeywordRole); }
}
public Expression Expression {

5
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ErrorExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
[Obsolete("This class is obsolete. Remove all referencing code.")]
public class EmptyExpression : AstNode
@ -48,7 +47,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -48,7 +47,7 @@ namespace ICSharpCode.NRefactory.CSharp
throw new NotImplementedException();
}
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
throw new NotImplementedException();
}

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/Expression.cs

@ -18,9 +18,8 @@ @@ -18,9 +18,8 @@
using System;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Base class for expressions.

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IdentifierExpression.cs

@ -23,10 +23,8 @@ @@ -23,10 +23,8 @@
// 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.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
public class IdentifierExpression : Expression
{

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IndexerExpression.cs

@ -25,9 +25,8 @@ @@ -25,9 +25,8 @@
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Target[Arguments]

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/InvocationExpression.cs

@ -25,9 +25,8 @@ @@ -25,9 +25,8 @@
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Target(Arguments)

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IsExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Expression is Type

5
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/LambdaExpression.cs

@ -23,11 +23,8 @@ @@ -23,11 +23,8 @@
// 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.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// [async] Parameters => Body

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/MemberReferenceExpression.cs

@ -25,9 +25,8 @@ @@ -25,9 +25,8 @@
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Target.MemberName

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedArgumentExpression.cs

@ -16,10 +16,8 @@ @@ -16,10 +16,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Represents a named argument passed to a method or attribute.

5
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedExpression.cs

@ -24,11 +24,8 @@ @@ -24,11 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// name = expression

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NullReferenceExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// null

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ObjectCreateExpression.cs

@ -25,9 +25,8 @@ @@ -25,9 +25,8 @@
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// new Type(Arguments) { Initializer }

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ParenthesizedExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// ( Expression )

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PointerReferenceExpression.cs

@ -24,10 +24,8 @@ @@ -24,10 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Target->MemberName

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PrimitiveExpression.cs

@ -25,9 +25,9 @@ @@ -25,9 +25,9 @@
// THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.Editor;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Represents a literal value.

5
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/QueryExpression.cs

@ -16,12 +16,9 @@ @@ -16,12 +16,9 @@
// 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.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
public class QueryExpression : Expression
{

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SizeOfExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// sizeof(Type)

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/StackAllocExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// stackalloc Type[Count]

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThisReferenceExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// this

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeOfExpression.cs

@ -25,9 +25,8 @@ @@ -25,9 +25,8 @@
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// typeof(Type)

4
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.cs

@ -16,10 +16,8 @@ @@ -16,10 +16,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Represents an AstType as an expression.

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UnaryOperatorExpression.cs

@ -26,9 +26,8 @@ @@ -26,9 +26,8 @@
using System;
using System.Linq.Expressions;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Operator Expression

3
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UncheckedExpression.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// unchecked(Expression)

14
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UndocumentedExpression.cs

@ -24,10 +24,8 @@ @@ -24,10 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
public enum UndocumentedExpressionType
{
@ -55,14 +53,14 @@ namespace ICSharpCode.NRefactory.CSharp @@ -55,14 +53,14 @@ namespace ICSharpCode.NRefactory.CSharp
public CSharpTokenNode UndocumentedToken {
get {
switch (UndocumentedExpressionType) {
case ICSharpCode.NRefactory.CSharp.UndocumentedExpressionType.ArgListAccess:
case ICSharpCode.NRefactory.CSharp.UndocumentedExpressionType.ArgList:
case UndocumentedExpressionType.ArgListAccess:
case UndocumentedExpressionType.ArgList:
return GetChildByRole (ArglistKeywordRole);
case ICSharpCode.NRefactory.CSharp.UndocumentedExpressionType.RefValue:
case UndocumentedExpressionType.RefValue:
return GetChildByRole (RefvalueKeywordRole);
case ICSharpCode.NRefactory.CSharp.UndocumentedExpressionType.RefType:
case UndocumentedExpressionType.RefType:
return GetChildByRole (ReftypeKeywordRole);
case ICSharpCode.NRefactory.CSharp.UndocumentedExpressionType.MakeRef:
case UndocumentedExpressionType.MakeRef:
return GetChildByRole (MakerefKeywordRole);
}
return CSharpTokenNode.Null;

4
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Attribute.cs

@ -24,11 +24,9 @@ @@ -24,11 +24,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Attribute(Arguments)

6
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/AttributeSection.cs

@ -24,12 +24,8 @@ @@ -24,12 +24,8 @@
// 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.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// [AttributeTarget: Attributes]

3
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
public enum CommentType
{

4
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Constraint.cs

@ -24,10 +24,8 @@ @@ -24,10 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// where TypeParameter : BaseTypes

3
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/DelegateDeclaration.cs

@ -24,10 +24,9 @@ @@ -24,10 +24,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.TypeSystem;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// delegate ReturnType Name&lt;TypeParameters&gt;(Parameters) where Constraints;

3
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// extern alias <Identifier>;

5
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/NamespaceDeclaration.cs

@ -24,12 +24,9 @@ @@ -24,12 +24,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// namespace Name { Members }

6
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/NewLineNode.cs

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
using System;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.Editor;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
@ -85,7 +85,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -85,7 +85,7 @@ namespace ICSharpCode.NRefactory.CSharp
return visitor.VisitNewLine (this, data);
}
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
return other is NewLineNode;
}

5
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/PreProcessorDirective.cs

@ -23,12 +23,9 @@ @@ -23,12 +23,9 @@
// 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.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
public enum PreProcessorDirectiveType : byte
{

4
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TextNode.cs

@ -24,10 +24,8 @@ @@ -24,10 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// A text node contains text without syntactic or semantic information.

5
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TypeDeclaration.cs

@ -24,12 +24,9 @@ @@ -24,12 +24,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.TypeSystem;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
public enum ClassType
{

4
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TypeParameterDeclaration.cs

@ -16,11 +16,9 @@ @@ -16,11 +16,9 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.TypeSystem;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// [in|out] Name

3
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// using Alias = Import;

5
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingDeclaration.cs

@ -24,13 +24,10 @@ @@ -24,13 +24,10 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// using Import;

4
ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/WhitespaceNode.cs

@ -24,10 +24,8 @@ @@ -24,10 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// A Whitespace node contains only whitespaces.

8
ICSharpCode.Decompiler/CSharp/Syntax/IAstVisitor.cs

@ -16,8 +16,6 @@ @@ -16,8 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using ICSharpCode.NRefactory.CSharp;
using Attribute = ICSharpCode.NRefactory.CSharp.Attribute;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -150,7 +148,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -150,7 +148,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
void VisitNullNode(AstNode nullNode);
void VisitErrorNode(AstNode errorNode);
void VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern);
void VisitPatternPlaceholder(AstNode placeholder, PatternMatching.Pattern pattern);
}
/// <summary>
@ -282,7 +280,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -282,7 +280,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
S VisitNullNode(AstNode nullNode);
S VisitErrorNode(AstNode errorNode);
S VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern);
S VisitPatternPlaceholder(AstNode placeholder, PatternMatching.Pattern pattern);
}
/// <summary>
@ -414,6 +412,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -414,6 +412,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
S VisitNullNode(AstNode nullNode, T data);
S VisitErrorNode(AstNode errorNode, T data);
S VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern, T data);
S VisitPatternPlaceholder(AstNode placeholder, PatternMatching.Pattern pattern, T data);
}
}

4
ICSharpCode.Decompiler/CSharp/Syntax/Identifier.cs

@ -54,7 +54,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -54,7 +54,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitNullNode(this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
return other == null || other.IsNull;
}
@ -164,7 +164,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -164,7 +164,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitIdentifier (this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
Identifier o = other as Identifier;
return o != null && !o.IsNull && MatchString(this.Name, o.Name);

7
ICSharpCode.Decompiler/CSharp/Syntax/IdentifierExpressionBackreference.cs

@ -18,14 +18,13 @@ @@ -18,14 +18,13 @@
using System;
using System.Linq;
using ICSharpCode.NRefactory.PatternMatching;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
/// <summary>
/// Matches identifier expressions that have the same identifier as the referenced variable/type definition/method definition.
/// </summary>
public class IdentifierExpressionBackreference : Pattern
public class IdentifierExpressionBackreference : PatternMatching.Pattern
{
readonly string referencedGroupName;
@ -40,9 +39,9 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -40,9 +39,9 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
this.referencedGroupName = referencedGroupName;
}
public override bool DoMatch(INode other, Match match)
public override bool DoMatch(PatternMatching.INode other, PatternMatching.Match match)
{
NRefactory.CSharp.IdentifierExpression ident = other as NRefactory.CSharp.IdentifierExpression;
IdentifierExpression ident = other as IdentifierExpression;
if (ident == null || ident.TypeArguments.Any())
return false;
AstNode referenced = (AstNode)match.Get(referencedGroupName).Last();

3
ICSharpCode.Decompiler/CSharp/Syntax/MemberType.cs

@ -28,7 +28,6 @@ using System.Collections.Generic; @@ -28,7 +28,6 @@ using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Resolver;
using ICSharpCode.Decompiler.CSharp.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -111,7 +110,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -111,7 +110,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return visitor.VisitMemberType (this, data);
}
protected internal override bool DoMatch(AstNode other, NRefactory.PatternMatching.Match match)
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{
MemberType o = other as MemberType;
return o != null && this.IsDoubleColon == o.IsDoubleColon

4
ICSharpCode.Decompiler/CSharp/Syntax/ObservableAstVisitor.cs

@ -25,8 +25,6 @@ @@ -25,8 +25,6 @@
// THE SOFTWARE.
using System;
using ICSharpCode.NRefactory.CSharp;
using Attribute = ICSharpCode.NRefactory.CSharp.Attribute;
namespace ICSharpCode.Decompiler.CSharp.Syntax
{
@ -852,7 +850,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -852,7 +850,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
Visit(EnterNamedExpression, LeaveNamedExpression, namedExpression);
}
void IAstVisitor.VisitPatternPlaceholder(AstNode placeholder, NRefactory.PatternMatching.Pattern pattern)
void IAstVisitor.VisitPatternPlaceholder(AstNode placeholder, PatternMatching.Pattern pattern)
{
}
}

3
ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNode.cs

@ -16,9 +16,8 @@ @@ -16,9 +16,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.NRefactory.PatternMatching
namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
{
/// <summary>
/// Matches any node.

3
ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNodeOrNull.cs

@ -24,9 +24,8 @@ @@ -24,9 +24,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
namespace ICSharpCode.NRefactory.PatternMatching
namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
{
/// <summary>
/// Matches any node.

2
ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/Backreference.cs

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
using System;
using System.Linq;
namespace ICSharpCode.NRefactory.PatternMatching
namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
{
/// <summary>
/// Matches the last entry in the specified named group.

4
ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/BacktrackingInfo.cs

@ -16,11 +16,9 @@ @@ -16,11 +16,9 @@
// 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.Linq;
namespace ICSharpCode.NRefactory.PatternMatching
namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
{
/// <summary>
/// Container for the backtracking info.

2
ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/Choice.cs

@ -20,7 +20,7 @@ using System; @@ -20,7 +20,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
namespace ICSharpCode.NRefactory.PatternMatching
namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
{
/// <summary>
/// Matches one of several alternatives.

3
ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/INode.cs

@ -17,9 +17,8 @@ @@ -17,9 +17,8 @@
// DEALINGS IN THE SOFTWARE.
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.PatternMatching
namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
{
/// <summary>
/// AST node that supports pattern matching.

4
ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/Match.cs

@ -16,11 +16,9 @@ @@ -16,11 +16,9 @@
// 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.Linq;
namespace ICSharpCode.NRefactory.PatternMatching
namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
{
/// <summary>
/// Represents the result of a pattern matching operation.

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

Loading…
Cancel
Save