Browse Source

Generate AcceptVisitor overloads

Siegfried Pammer 3 months ago
parent
commit
bbfac3c18d
  1. 6
      ICSharpCode.Decompiler.Generators/DecompilerSyntaxTreeGenerator.cs
  2. 15
      ICSharpCode.Decompiler/CSharp/Syntax/CSharpTokenNode.cs
  3. 30
      ICSharpCode.Decompiler/CSharp/Syntax/ComposedType.cs
  4. 15
      ICSharpCode.Decompiler/CSharp/Syntax/DocumentationReference.cs
  5. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CastExpression.cs
  6. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CheckedExpression.cs
  7. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ConditionalExpression.cs
  8. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DeclarationExpression.cs
  9. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DefaultValueExpression.cs
  10. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DirectionExpression.cs
  11. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ErrorExpression.cs
  12. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IdentifierExpression.cs
  13. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IndexerExpression.cs
  14. 45
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/InterpolatedStringExpression.cs
  15. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/InvocationExpression.cs
  16. 16
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IsExpression.cs
  17. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/LambdaExpression.cs
  18. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/MemberReferenceExpression.cs
  19. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedArgumentExpression.cs
  20. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedExpression.cs
  21. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NullReferenceExpression.cs
  22. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ObjectCreateExpression.cs
  23. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/OutVarDeclarationExpression.cs
  24. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ParenthesizedExpression.cs
  25. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PointerReferenceExpression.cs
  26. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PrimitiveExpression.cs
  27. 150
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/QueryExpression.cs
  28. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/RecursivePatternExpression.cs
  29. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SizeOfExpression.cs
  30. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/StackAllocExpression.cs
  31. 30
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SwitchExpression.cs
  32. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThisReferenceExpression.cs
  33. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThrowExpression.cs
  34. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TupleExpression.cs
  35. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeOfExpression.cs
  36. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.cs
  37. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UnaryOperatorExpression.cs
  38. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UncheckedExpression.cs
  39. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UndocumentedExpression.cs
  40. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Expressions/WithInitializerExpression.cs
  41. 15
      ICSharpCode.Decompiler/CSharp/Syntax/FunctionPointerAstType.cs
  42. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Attribute.cs
  43. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/AttributeSection.cs
  44. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs
  45. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Constraint.cs
  46. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/DelegateDeclaration.cs
  47. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs
  48. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/NamespaceDeclaration.cs
  49. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/PreProcessorDirective.cs
  50. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TypeDeclaration.cs
  51. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/TypeParameterDeclaration.cs
  52. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs
  53. 15
      ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingDeclaration.cs
  54. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Identifier.cs
  55. 15
      ICSharpCode.Decompiler/CSharp/Syntax/InvocationAstType.cs
  56. 15
      ICSharpCode.Decompiler/CSharp/Syntax/MemberType.cs
  57. 15
      ICSharpCode.Decompiler/CSharp/Syntax/PrimitiveType.cs
  58. 15
      ICSharpCode.Decompiler/CSharp/Syntax/SimpleType.cs
  59. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/BlockStatement.cs
  60. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/BreakStatement.cs
  61. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/CheckedStatement.cs
  62. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/ContinueStatement.cs
  63. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/DoWhileStatement.cs
  64. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/EmptyStatement.cs
  65. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/ExpressionStatement.cs
  66. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/FixedStatement.cs
  67. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForStatement.cs
  68. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForeachStatement.cs
  69. 45
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/GotoStatement.cs
  70. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/IfElseStatement.cs
  71. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/LabelStatement.cs
  72. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/LocalFunctionDeclarationStatement.cs
  73. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/LockStatement.cs
  74. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/ReturnStatement.cs
  75. 45
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/SwitchStatement.cs
  76. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/ThrowStatement.cs
  77. 30
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/TryCatchStatement.cs
  78. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/UncheckedStatement.cs
  79. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/UnsafeStatement.cs
  80. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/UsingStatement.cs
  81. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/VariableDeclarationStatement.cs
  82. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/WhileStatement.cs
  83. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldBreakStatement.cs
  84. 15
      ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldReturnStatement.cs
  85. 15
      ICSharpCode.Decompiler/CSharp/Syntax/SyntaxTree.cs
  86. 30
      ICSharpCode.Decompiler/CSharp/Syntax/TupleAstType.cs
  87. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/ConstructorDeclaration.cs
  88. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/DestructorDeclaration.cs
  89. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/EnumMemberDeclaration.cs
  90. 30
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/EventDeclaration.cs
  91. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FieldDeclaration.cs
  92. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedFieldDeclaration.cs
  93. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedVariableInitializer.cs
  94. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/IndexerDeclaration.cs
  95. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/MethodDeclaration.cs
  96. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/OperatorDeclaration.cs
  97. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/ParameterDeclaration.cs
  98. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/PropertyDeclaration.cs
  99. 15
      ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/VariableInitializer.cs
  100. 30
      ICSharpCode.Decompiler/CSharp/Syntax/VariableDesignation.cs

6
ICSharpCode.Decompiler.Generators/DecompilerSyntaxTreeGenerator.cs

@ -144,17 +144,17 @@ internal class DecompilerSyntaxTreeGenerator : IIncrementalGenerator
{ {
builder.Append($@" public override void AcceptVisitor(IAstVisitor visitor) builder.Append($@" public override void AcceptVisitor(IAstVisitor visitor)
{{ {{
visitor.Visit{source.NodeName}(this); visitor.Visit{source.VisitMethodName}(this);
}} }}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor) public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{{ {{
return visitor.Visit{source.NodeName}(this); return visitor.Visit{source.VisitMethodName}(this);
}} }}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data) public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{{ {{
return visitor.Visit{source.NodeName}(this, data); return visitor.Visit{source.VisitMethodName}(this, data);
}} }}
"); ");
} }

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

@ -84,21 +84,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return string.Empty; return string.Empty;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitCSharpTokenNode(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitCSharpTokenNode(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitCSharpTokenNode(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
CSharpTokenNode o = other as CSharpTokenNode; CSharpTokenNode o = other as CSharpTokenNode;

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

@ -130,21 +130,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(PointerRole); } get { return GetChildrenByRole(PointerRole); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitComposedType(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitComposedType(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitComposedType(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ComposedType o = other as ComposedType; ComposedType o = other as ComposedType;
@ -274,21 +259,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBracket); } get { return GetChildByRole(Roles.RBracket); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitArraySpecifier(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitArraySpecifier(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitArraySpecifier(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ArraySpecifier o = other as ArraySpecifier; ArraySpecifier o = other as ArraySpecifier;

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

@ -134,20 +134,5 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
} }
return this.Parameters.DoMatch(o.Parameters, match); return this.Parameters.DoMatch(o.Parameters, match);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitDocumentationReference(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitDocumentationReference(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitDocumentationReference(this, data);
}
} }
} }

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

@ -59,21 +59,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(expression, Roles.Expression); AddChild(expression, Roles.Expression);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitCastExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitCastExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitCastExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
CastExpression o = other as CastExpression; CastExpression o = other as CastExpression;

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

@ -60,21 +60,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(expression, Roles.Expression); AddChild(expression, Roles.Expression);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitCheckedExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitCheckedExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitCheckedExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
CheckedExpression o = other as CheckedExpression; CheckedExpression o = other as CheckedExpression;

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

@ -71,21 +71,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(falseExpression, FalseRole); AddChild(falseExpression, FalseRole);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitConditionalExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitConditionalExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitConditionalExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ConditionalExpression o = other as ConditionalExpression; ConditionalExpression o = other as ConditionalExpression;

15
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DeclarationExpression.cs

@ -36,21 +36,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.VariableDesignationRole, value); } set { SetChildByRole(Roles.VariableDesignationRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitDeclarationExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitDeclarationExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitDeclarationExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is DeclarationExpression o return other is DeclarationExpression o

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

@ -61,21 +61,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(type, Roles.Type); AddChild(type, Roles.Type);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitDefaultValueExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitDefaultValueExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitDefaultValueExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
DefaultValueExpression o = other as DefaultValueExpression; DefaultValueExpression o = other as DefaultValueExpression;

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

@ -79,21 +79,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(expression, Roles.Expression); AddChild(expression, Roles.Expression);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitDirectionExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitDirectionExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitDirectionExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
DirectionExpression o = other as DirectionExpression; DirectionExpression o = other as DirectionExpression;

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

@ -56,21 +56,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(new Comment(error, CommentType.MultiLine), Roles.Comment); AddChild(new Comment(error, CommentType.MultiLine), Roles.Comment);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitErrorNode(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitErrorNode(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitErrorNode(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
var o = other as ErrorExpression; var o = other as ErrorExpression;

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

@ -65,21 +65,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(Roles.TypeArgument); } get { return GetChildrenByRole(Roles.TypeArgument); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitIdentifierExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitIdentifierExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitIdentifierExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
IdentifierExpression o = other as IdentifierExpression; IdentifierExpression o = other as IdentifierExpression;

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

@ -71,21 +71,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
{ {
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitIndexerExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitIndexerExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitIndexerExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
IndexerExpression o = other as IndexerExpression; IndexerExpression o = other as IndexerExpression;

45
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/InterpolatedStringExpression.cs

@ -24,21 +24,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
Content.AddRange(content); Content.AddRange(content);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitInterpolatedStringExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitInterpolatedStringExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitInterpolatedStringExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
InterpolatedStringExpression o = other as InterpolatedStringExpression; InterpolatedStringExpression o = other as InterpolatedStringExpression;
@ -92,21 +77,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
Suffix = suffix; Suffix = suffix;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitInterpolation(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitInterpolation(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitInterpolation(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
Interpolation o = other as Interpolation; Interpolation o = other as Interpolation;
@ -129,21 +99,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
Text = text; Text = text;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitInterpolatedStringText(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitInterpolatedStringText(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitInterpolatedStringText(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
InterpolatedStringText o = other as InterpolatedStringText; InterpolatedStringText o = other as InterpolatedStringText;

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

@ -51,21 +51,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RPar); } get { return GetChildByRole(Roles.RPar); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitInvocationExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitInvocationExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitInvocationExpression(this, data);
}
public InvocationExpression() public InvocationExpression()
{ {
} }

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

@ -57,22 +57,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(type, Roles.Type); AddChild(type, Roles.Type);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitIsExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitIsExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitIsExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
IsExpression o = other as IsExpression; IsExpression o = other as IsExpression;

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

@ -68,21 +68,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(BodyRole, value); } set { SetChildByRole(BodyRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitLambdaExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitLambdaExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitLambdaExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
LambdaExpression o = other as LambdaExpression; LambdaExpression o = other as LambdaExpression;

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

@ -98,21 +98,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
{ {
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitMemberReferenceExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitMemberReferenceExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitMemberReferenceExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
MemberReferenceExpression o = other as MemberReferenceExpression; MemberReferenceExpression o = other as MemberReferenceExpression;

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

@ -63,21 +63,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitNamedArgumentExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitNamedArgumentExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitNamedArgumentExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
NamedArgumentExpression o = other as NamedArgumentExpression; NamedArgumentExpression o = other as NamedArgumentExpression;

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

@ -72,21 +72,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitNamedExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitNamedExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitNamedExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
var o = other as NamedExpression; var o = other as NamedExpression;

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

@ -61,21 +61,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
this.location = location; this.location = location;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitNullReferenceExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitNullReferenceExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitNullReferenceExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
NullReferenceExpression o = other as NullReferenceExpression; NullReferenceExpression o = other as NullReferenceExpression;

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

@ -83,21 +83,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
{ {
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitObjectCreateExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitObjectCreateExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitObjectCreateExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ObjectCreateExpression o = other as ObjectCreateExpression; ObjectCreateExpression o = other as ObjectCreateExpression;

15
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/OutVarDeclarationExpression.cs

@ -50,21 +50,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
this.Variable = new VariableInitializer(name); this.Variable = new VariableInitializer(name);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitOutVarDeclarationExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitOutVarDeclarationExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitOutVarDeclarationExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
var o = other as OutVarDeclarationExpression; var o = other as OutVarDeclarationExpression;

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

@ -55,21 +55,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
Expression = expr; Expression = expr;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitParenthesizedExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitParenthesizedExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitParenthesizedExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ParenthesizedExpression o = other as ParenthesizedExpression; ParenthesizedExpression o = other as ParenthesizedExpression;

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

@ -66,21 +66,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(Roles.TypeArgument); } get { return GetChildrenByRole(Roles.TypeArgument); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitPointerReferenceExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitPointerReferenceExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitPointerReferenceExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
PointerReferenceExpression o = other as PointerReferenceExpression; PointerReferenceExpression o = other as PointerReferenceExpression;

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

@ -94,21 +94,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
this.format = format; this.format = format;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitPrimitiveExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitPrimitiveExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitPrimitiveExpression(this, data);
}
unsafe static TextLocation AdvanceLocation(TextLocation startLocation, string str) unsafe static TextLocation AdvanceLocation(TextLocation startLocation, string str)
{ {
int line = startLocation.Line; int line = startLocation.Line;

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

@ -27,21 +27,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(ClauseRole); } get { return GetChildrenByRole(ClauseRole); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryExpression o = other as QueryExpression; QueryExpression o = other as QueryExpression;
@ -102,21 +87,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Identifier); } get { return GetChildByRole(Roles.Identifier); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryContinuationClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryContinuationClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryContinuationClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryContinuationClause o = other as QueryContinuationClause; QueryContinuationClause o = other as QueryContinuationClause;
@ -161,21 +131,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryFromClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryFromClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryFromClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryFromClause o = other as QueryFromClause; QueryFromClause o = other as QueryFromClause;
@ -215,21 +170,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryLetClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryLetClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryLetClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryLetClause o = other as QueryLetClause; QueryLetClause o = other as QueryLetClause;
@ -252,21 +192,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Condition, value); } set { SetChildByRole(Roles.Condition, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryWhereClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryWhereClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryWhereClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryWhereClause o = other as QueryWhereClause; QueryWhereClause o = other as QueryWhereClause;
@ -362,21 +287,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(IntoIdentifierRole); } get { return GetChildByRole(IntoIdentifierRole); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryJoinClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryJoinClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryJoinClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryJoinClause o = other as QueryJoinClause; QueryJoinClause o = other as QueryJoinClause;
@ -402,21 +312,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(OrderingRole); } get { return GetChildrenByRole(OrderingRole); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryOrderClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryOrderClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryOrderClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryOrderClause o = other as QueryOrderClause; QueryOrderClause o = other as QueryOrderClause;
@ -448,21 +343,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return Direction == QueryOrderingDirection.Ascending ? GetChildByRole(AscendingKeywordRole) : GetChildByRole(DescendingKeywordRole); } get { return Direction == QueryOrderingDirection.Ascending ? GetChildByRole(AscendingKeywordRole) : GetChildByRole(DescendingKeywordRole); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryOrdering(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryOrdering(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryOrdering(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryOrdering o = other as QueryOrdering; QueryOrdering o = other as QueryOrdering;
@ -491,21 +371,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQuerySelectClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQuerySelectClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQuerySelectClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QuerySelectClause o = other as QuerySelectClause; QuerySelectClause o = other as QuerySelectClause;
@ -539,21 +404,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(KeyRole, value); } set { SetChildByRole(KeyRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitQueryGroupClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitQueryGroupClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitQueryGroupClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
QueryGroupClause o = other as QueryGroupClause; QueryGroupClause o = other as QueryGroupClause;

15
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/RecursivePatternExpression.cs

@ -41,21 +41,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
public bool IsPositional { get; set; } public bool IsPositional { get; set; }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitRecursivePatternExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitRecursivePatternExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitRecursivePatternExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is RecursivePatternExpression o return other is RecursivePatternExpression o

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

@ -61,21 +61,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(type, Roles.Type); AddChild(type, Roles.Type);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSizeOfExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSizeOfExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSizeOfExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
SizeOfExpression o = other as SizeOfExpression; SizeOfExpression o = other as SizeOfExpression;

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

@ -63,21 +63,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(InitializerRole, value); } set { SetChildByRole(InitializerRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitStackAllocExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitStackAllocExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitStackAllocExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
StackAllocExpression o = other as StackAllocExpression; StackAllocExpression o = other as StackAllocExpression;

30
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SwitchExpression.cs

@ -49,21 +49,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBrace); } get { return GetChildByRole(Roles.RBrace); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSwitchExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSwitchExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSwitchExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
SwitchExpression o = other as SwitchExpression; SwitchExpression o = other as SwitchExpression;
@ -96,21 +81,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
public override NodeType NodeType => NodeType.Unknown; public override NodeType NodeType => NodeType.Unknown;
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSwitchExpressionSection(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSwitchExpressionSection(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSwitchExpressionSection(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
SwitchExpressionSection o = other as SwitchExpressionSection; SwitchExpressionSection o = other as SwitchExpressionSection;

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

@ -49,21 +49,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
} }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitThisReferenceExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitThisReferenceExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitThisReferenceExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ThisReferenceExpression o = other as ThisReferenceExpression; ThisReferenceExpression o = other as ThisReferenceExpression;

15
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThrowExpression.cs

@ -44,21 +44,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(expression, Roles.Expression); AddChild(expression, Roles.Expression);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitThrowExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitThrowExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitThrowExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ThrowExpression o = other as ThrowExpression; ThrowExpression o = other as ThrowExpression;

15
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TupleExpression.cs

@ -27,21 +27,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(Roles.Expression); } get { return GetChildrenByRole(Roles.Expression); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTupleExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTupleExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTupleExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is TupleExpression tuple return other is TupleExpression tuple

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

@ -62,21 +62,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(type, Roles.Type); AddChild(type, Roles.Type);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTypeOfExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTypeOfExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTypeOfExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
TypeOfExpression o = other as TypeOfExpression; TypeOfExpression o = other as TypeOfExpression;

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

@ -31,21 +31,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Type, value); } set { SetChildByRole(Roles.Type, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTypeReferenceExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTypeReferenceExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTypeReferenceExpression(this, data);
}
public TypeReferenceExpression() public TypeReferenceExpression()
{ {
} }

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

@ -73,21 +73,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUnaryOperatorExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUnaryOperatorExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUnaryOperatorExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UnaryOperatorExpression o = other as UnaryOperatorExpression; UnaryOperatorExpression o = other as UnaryOperatorExpression;

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

@ -61,21 +61,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(expression, Roles.Expression); AddChild(expression, Roles.Expression);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUncheckedExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUncheckedExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUncheckedExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UncheckedExpression o = other as UncheckedExpression; UncheckedExpression o = other as UncheckedExpression;

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

@ -81,21 +81,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RPar); } get { return GetChildByRole(Roles.RPar); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUndocumentedExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUndocumentedExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUndocumentedExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UndocumentedExpression o = other as UndocumentedExpression; UndocumentedExpression o = other as UndocumentedExpression;

15
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/WithInitializerExpression.cs

@ -43,21 +43,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(InitializerRole, value); } set { SetChildByRole(InitializerRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitWithInitializerExpression(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitWithInitializerExpression(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitWithInitializerExpression(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is WithInitializerExpression o return other is WithInitializerExpression o

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

@ -52,21 +52,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Type, value); } set { SetChildByRole(Roles.Type, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitFunctionPointerType(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitFunctionPointerType(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitFunctionPointerType(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
return other is FunctionPointerAstType o return other is FunctionPointerAstType o

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

@ -63,21 +63,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set; set;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitAttribute(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitAttribute(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitAttribute(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
Attribute o = other as Attribute; Attribute o = other as Attribute;

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

@ -115,21 +115,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBracket); } get { return GetChildByRole(Roles.RBracket); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitAttributeSection(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitAttributeSection(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitAttributeSection(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
AttributeSection o = other as AttributeSection; AttributeSection o = other as AttributeSection;

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

@ -129,21 +129,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
this.endLocation = endLocation; this.endLocation = endLocation;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitComment(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitComment(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitComment(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
Comment o = other as Comment; Comment o = other as Comment;

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

@ -59,21 +59,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
} }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitConstraint(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitConstraint(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitConstraint(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
Constraint o = other as Constraint; Constraint o = other as Constraint;

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

@ -66,21 +66,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(Roles.Constraint); } get { return GetChildrenByRole(Roles.Constraint); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitDelegateDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitDelegateDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitDelegateDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
DelegateDeclaration o = other as DelegateDeclaration; DelegateDeclaration o = other as DelegateDeclaration;

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

@ -69,21 +69,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitExternAliasDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitExternAliasDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitExternAliasDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
var o = other as ExternAliasDeclaration; var o = other as ExternAliasDeclaration;

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

@ -136,21 +136,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(child, MemberRole); AddChild(child, MemberRole);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitNamespaceDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitNamespaceDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitNamespaceDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
NamespaceDeclaration o = other as NamespaceDeclaration; NamespaceDeclaration o = other as NamespaceDeclaration;

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

@ -181,21 +181,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
this.Argument = argument; this.Argument = argument;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitPreProcessorDirective(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitPreProcessorDirective(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitPreProcessorDirective(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
PreProcessorDirective o = other as PreProcessorDirective; PreProcessorDirective o = other as PreProcessorDirective;

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

@ -133,21 +133,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBrace); } get { return GetChildByRole(Roles.RBrace); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTypeDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTypeDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTypeDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
TypeDeclaration o = other as TypeDeclaration; TypeDeclaration o = other as TypeDeclaration;

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

@ -90,21 +90,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
Name = name; Name = name;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTypeParameterDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTypeParameterDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTypeParameterDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
TypeParameterDeclaration o = other as TypeParameterDeclaration; TypeParameterDeclaration o = other as TypeParameterDeclaration;

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

@ -85,21 +85,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(import, ImportRole); AddChild(import, ImportRole);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUsingAliasDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUsingAliasDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUsingAliasDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UsingAliasDeclaration o = other as UsingAliasDeclaration; UsingAliasDeclaration o = other as UsingAliasDeclaration;

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

@ -101,21 +101,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(import, ImportRole); AddChild(import, ImportRole);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUsingDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUsingDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUsingDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UsingDeclaration o = other as UsingDeclaration; UsingDeclaration o = other as UsingDeclaration;

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

@ -120,21 +120,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return new Identifier(name, location); return new Identifier(name, location);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitIdentifier(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitIdentifier(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitIdentifier(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
Identifier o = other as Identifier; Identifier o = other as Identifier;

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

@ -39,21 +39,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Type, value); } set { SetChildByRole(Roles.Type, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitInvocationType(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitInvocationType(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitInvocationType(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is InvocationAstType o return other is InvocationAstType o

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

@ -98,21 +98,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
{ {
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitMemberType(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitMemberType(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitMemberType(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
MemberType o = other as MemberType; MemberType o = other as MemberType;

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

@ -86,21 +86,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
} }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitPrimitiveType(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitPrimitiveType(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitPrimitiveType(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
PrimitiveType o = other as PrimitiveType; PrimitiveType o = other as PrimitiveType;

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

@ -89,21 +89,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(Roles.TypeArgument); } get { return GetChildrenByRole(Roles.TypeArgument); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSimpleType(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSimpleType(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSimpleType(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
SimpleType o = other as SimpleType; SimpleType o = other as SimpleType;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/BlockStatement.cs

@ -94,21 +94,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBrace); } get { return GetChildByRole(Roles.RBrace); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitBlockStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitBlockStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitBlockStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
BlockStatement o = other as BlockStatement; BlockStatement o = other as BlockStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/BreakStatement.cs

@ -43,21 +43,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitBreakStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitBreakStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitBreakStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
BreakStatement o = other as BreakStatement; BreakStatement o = other as BreakStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/CheckedStatement.cs

@ -53,21 +53,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(body, Roles.Body); AddChild(body, Roles.Body);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitCheckedStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitCheckedStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitCheckedStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
CheckedStatement o = other as CheckedStatement; CheckedStatement o = other as CheckedStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/ContinueStatement.cs

@ -43,21 +43,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitContinueStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitContinueStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitContinueStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ContinueStatement o = other as ContinueStatement; ContinueStatement o = other as ContinueStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/DoWhileStatement.cs

@ -66,21 +66,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitDoWhileStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitDoWhileStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitDoWhileStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
DoWhileStatement o = other as DoWhileStatement; DoWhileStatement o = other as DoWhileStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/EmptyStatement.cs

@ -50,21 +50,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
} }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitEmptyStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitEmptyStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitEmptyStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
EmptyStatement o = other as EmptyStatement; EmptyStatement o = other as EmptyStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/ExpressionStatement.cs

@ -42,21 +42,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitExpressionStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitExpressionStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitExpressionStatement(this, data);
}
public ExpressionStatement() public ExpressionStatement()
{ {
} }

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/FixedStatement.cs

@ -61,21 +61,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.EmbeddedStatement, value); } set { SetChildByRole(Roles.EmbeddedStatement, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitFixedStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitFixedStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitFixedStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
FixedStatement o = other as FixedStatement; FixedStatement o = other as FixedStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForStatement.cs

@ -72,21 +72,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.EmbeddedStatement, value); } set { SetChildByRole(Roles.EmbeddedStatement, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitForStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitForStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitForStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ForStatement o = other as ForStatement; ForStatement o = other as ForStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForeachStatement.cs

@ -82,21 +82,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.EmbeddedStatement, value); } set { SetChildByRole(Roles.EmbeddedStatement, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitForeachStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitForeachStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitForeachStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ForeachStatement o = other as ForeachStatement; ForeachStatement o = other as ForeachStatement;

45
ICSharpCode.Decompiler/CSharp/Syntax/Statements/GotoStatement.cs

@ -64,21 +64,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitGotoStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitGotoStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitGotoStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
GotoStatement o = other as GotoStatement; GotoStatement o = other as GotoStatement;
@ -115,21 +100,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitGotoCaseStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitGotoCaseStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitGotoCaseStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
GotoCaseStatement o = other as GotoCaseStatement; GotoCaseStatement o = other as GotoCaseStatement;
@ -158,21 +128,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitGotoDefaultStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitGotoDefaultStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitGotoDefaultStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
GotoDefaultStatement o = other as GotoDefaultStatement; GotoDefaultStatement o = other as GotoDefaultStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/IfElseStatement.cs

@ -70,21 +70,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(FalseRole, value); } set { SetChildByRole(FalseRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitIfElseStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitIfElseStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitIfElseStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
IfElseStatement o = other as IfElseStatement; IfElseStatement o = other as IfElseStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/LabelStatement.cs

@ -51,21 +51,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Colon); } get { return GetChildByRole(Roles.Colon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitLabelStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitLabelStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitLabelStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
LabelStatement o = other as LabelStatement; LabelStatement o = other as LabelStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/LocalFunctionDeclarationStatement.cs

@ -35,21 +35,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(methodDeclaration, MethodDeclarationRole); AddChild(methodDeclaration, MethodDeclarationRole);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitLocalFunctionDeclarationStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitLocalFunctionDeclarationStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitLocalFunctionDeclarationStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is LocalFunctionDeclarationStatement o && Declaration.DoMatch(o.Declaration, match); return other is LocalFunctionDeclarationStatement o && Declaration.DoMatch(o.Declaration, match);

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/LockStatement.cs

@ -57,21 +57,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.EmbeddedStatement, value); } set { SetChildByRole(Roles.EmbeddedStatement, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitLockStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitLockStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitLockStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
LockStatement o = other as LockStatement; LockStatement o = other as LockStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/ReturnStatement.cs

@ -57,21 +57,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(returnExpression, Roles.Expression); AddChild(returnExpression, Roles.Expression);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitReturnStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitReturnStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitReturnStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ReturnStatement o = other as ReturnStatement; ReturnStatement o = other as ReturnStatement;

45
ICSharpCode.Decompiler/CSharp/Syntax/Statements/SwitchStatement.cs

@ -65,21 +65,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBrace); } get { return GetChildByRole(Roles.RBrace); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSwitchStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSwitchStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSwitchStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
SwitchStatement o = other as SwitchStatement; SwitchStatement o = other as SwitchStatement;
@ -152,21 +137,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(Roles.EmbeddedStatement); } get { return GetChildrenByRole(Roles.EmbeddedStatement); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSwitchSection(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSwitchSection(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSwitchSection(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
SwitchSection o = other as SwitchSection; SwitchSection o = other as SwitchSection;
@ -207,21 +177,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
this.Expression = expression; this.Expression = expression;
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitCaseLabel(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitCaseLabel(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitCaseLabel(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
CaseLabel o = other as CaseLabel; CaseLabel o = other as CaseLabel;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/ThrowStatement.cs

@ -57,21 +57,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(expression, Roles.Expression); AddChild(expression, Roles.Expression);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitThrowStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitThrowStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitThrowStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ThrowStatement o = other as ThrowStatement; ThrowStatement o = other as ThrowStatement;

30
ICSharpCode.Decompiler/CSharp/Syntax/Statements/TryCatchStatement.cs

@ -61,21 +61,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(FinallyBlockRole, value); } set { SetChildByRole(FinallyBlockRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTryCatchStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTryCatchStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTryCatchStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
TryCatchStatement o = other as TryCatchStatement; TryCatchStatement o = other as TryCatchStatement;
@ -205,21 +190,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Body, value); } set { SetChildByRole(Roles.Body, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitCatchClause(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitCatchClause(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitCatchClause(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
CatchClause o = other as CatchClause; CatchClause o = other as CatchClause;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/UncheckedStatement.cs

@ -53,21 +53,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
AddChild(body, Roles.Body); AddChild(body, Roles.Body);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUncheckedStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUncheckedStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUncheckedStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UncheckedStatement o = other as UncheckedStatement; UncheckedStatement o = other as UncheckedStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/UnsafeStatement.cs

@ -44,21 +44,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Body, value); } set { SetChildByRole(Roles.Body, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUnsafeStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUnsafeStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUnsafeStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UnsafeStatement o = other as UnsafeStatement; UnsafeStatement o = other as UnsafeStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/UsingStatement.cs

@ -73,21 +73,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.EmbeddedStatement, value); } set { SetChildByRole(Roles.EmbeddedStatement, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitUsingStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitUsingStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitUsingStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
UsingStatement o = other as UsingStatement; UsingStatement o = other as UsingStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/VariableDeclarationStatement.cs

@ -65,21 +65,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return Variables.FirstOrNullObject(vi => vi.Name == name); return Variables.FirstOrNullObject(vi => vi.Name == name);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitVariableDeclarationStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitVariableDeclarationStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitVariableDeclarationStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
VariableDeclarationStatement o = other as VariableDeclarationStatement; VariableDeclarationStatement o = other as VariableDeclarationStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/WhileStatement.cs

@ -57,21 +57,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.EmbeddedStatement, value); } set { SetChildByRole(Roles.EmbeddedStatement, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitWhileStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitWhileStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitWhileStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
WhileStatement o = other as WhileStatement; WhileStatement o = other as WhileStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldBreakStatement.cs

@ -48,21 +48,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitYieldBreakStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitYieldBreakStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitYieldBreakStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
YieldBreakStatement o = other as YieldBreakStatement; YieldBreakStatement o = other as YieldBreakStatement;

15
ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldReturnStatement.cs

@ -53,21 +53,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.Semicolon); } get { return GetChildByRole(Roles.Semicolon); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitYieldReturnStatement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitYieldReturnStatement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitYieldReturnStatement(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
YieldReturnStatement o = other as YieldReturnStatement; YieldReturnStatement o = other as YieldReturnStatement;

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

@ -122,20 +122,5 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
SyntaxTree o = other as SyntaxTree; SyntaxTree o = other as SyntaxTree;
return o != null && this.Members.DoMatch(o.Members, match); return o != null && this.Members.DoMatch(o.Members, match);
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSyntaxTree(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSyntaxTree(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSyntaxTree(this, data);
}
} }
} }

30
ICSharpCode.Decompiler/CSharp/Syntax/TupleAstType.cs

@ -34,21 +34,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(ElementRole); } get { return GetChildrenByRole(ElementRole); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTupleType(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTupleType(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTupleType(this, data);
}
public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider = null) public override ITypeReference ToTypeReference(NameLookupMode lookupMode, InterningProvider interningProvider = null)
{ {
return new TupleTypeReference( return new TupleTypeReference(
@ -83,21 +68,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
public override NodeType NodeType => NodeType.Unknown; public override NodeType NodeType => NodeType.Unknown;
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitTupleTypeElement(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitTupleTypeElement(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitTupleTypeElement(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is TupleTypeElement o return other is TupleTypeElement o

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/ConstructorDeclaration.cs

@ -116,21 +116,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RPar); } get { return GetChildByRole(Roles.RPar); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitConstructorInitializer(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitConstructorInitializer(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitConstructorInitializer(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
ConstructorInitializer o = other as ConstructorInitializer; ConstructorInitializer o = other as ConstructorInitializer;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/DestructorDeclaration.cs

@ -53,21 +53,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Body, value); } set { SetChildByRole(Roles.Body, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitDestructorDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitDestructorDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitDestructorDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
DestructorDeclaration o = other as DestructorDeclaration; DestructorDeclaration o = other as DestructorDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/EnumMemberDeclaration.cs

@ -46,21 +46,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(InitializerRole, value); } set { SetChildByRole(InitializerRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitEnumMemberDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitEnumMemberDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitEnumMemberDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
EnumMemberDeclaration o = other as EnumMemberDeclaration; EnumMemberDeclaration o = other as EnumMemberDeclaration;

30
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/EventDeclaration.cs

@ -62,21 +62,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { throw new NotSupportedException(); } set { throw new NotSupportedException(); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitEventDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitEventDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitEventDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
EventDeclaration o = other as EventDeclaration; EventDeclaration o = other as EventDeclaration;
@ -126,21 +111,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBrace); } get { return GetChildByRole(Roles.RBrace); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitCustomEventDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitCustomEventDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitCustomEventDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
CustomEventDeclaration o = other as CustomEventDeclaration; CustomEventDeclaration o = other as CustomEventDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FieldDeclaration.cs

@ -56,21 +56,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { throw new NotSupportedException(); } set { throw new NotSupportedException(); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitFieldDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitFieldDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitFieldDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
FieldDeclaration o = other as FieldDeclaration; FieldDeclaration o = other as FieldDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedFieldDeclaration.cs

@ -45,21 +45,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildrenByRole(VariableRole); } get { return GetChildrenByRole(VariableRole); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitFixedFieldDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitFixedFieldDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitFixedFieldDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
var o = other as FixedFieldDeclaration; var o = other as FixedFieldDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedVariableInitializer.cs

@ -80,21 +80,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RBracket); } get { return GetChildByRole(Roles.RBracket); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitFixedVariableInitializer(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitFixedVariableInitializer(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitFixedVariableInitializer(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
var o = other as FixedVariableInitializer; var o = other as FixedVariableInitializer;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/IndexerDeclaration.cs

@ -102,21 +102,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(ExpressionBodyRole, value); } set { SetChildByRole(ExpressionBodyRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitIndexerDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitIndexerDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitIndexerDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
IndexerDeclaration o = other as IndexerDeclaration; IndexerDeclaration o = other as IndexerDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/MethodDeclaration.cs

@ -76,21 +76,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
} }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitMethodDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitMethodDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitMethodDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
MethodDeclaration o = other as MethodDeclaration; MethodDeclaration o = other as MethodDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/OperatorDeclaration.cs

@ -328,21 +328,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return names[(int)type][0]; return names[(int)type][0];
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitOperatorDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitOperatorDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitOperatorDeclaration(this, data);
}
public override string Name { public override string Name {
get { return GetName(this.OperatorType); } get { return GetName(this.OperatorType); }
set { throw new NotSupportedException(); } set { throw new NotSupportedException(); }

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/ParameterDeclaration.cs

@ -174,21 +174,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitParameterDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitParameterDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitParameterDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode? other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode? other, PatternMatching.Match match)
{ {
var o = other as ParameterDeclaration; var o = other as ParameterDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/PropertyDeclaration.cs

@ -83,21 +83,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(ExpressionBodyRole, value); } set { SetChildByRole(ExpressionBodyRole, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitPropertyDeclaration(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitPropertyDeclaration(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitPropertyDeclaration(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
PropertyDeclaration o = other as PropertyDeclaration; PropertyDeclaration o = other as PropertyDeclaration;

15
ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/VariableInitializer.cs

@ -119,21 +119,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Expression, value); } set { SetChildByRole(Roles.Expression, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitVariableInitializer(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitVariableInitializer(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitVariableInitializer(this, data);
}
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
{ {
VariableInitializer o = other as VariableInitializer; VariableInitializer o = other as VariableInitializer;

30
ICSharpCode.Decompiler/CSharp/Syntax/VariableDesignation.cs

@ -42,21 +42,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
set { SetChildByRole(Roles.Identifier, value); } set { SetChildByRole(Roles.Identifier, value); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitSingleVariableDesignation(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitSingleVariableDesignation(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitSingleVariableDesignation(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is SingleVariableDesignation o && MatchString(this.Identifier, o.Identifier); return other is SingleVariableDesignation o && MatchString(this.Identifier, o.Identifier);
@ -82,21 +67,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
get { return GetChildByRole(Roles.RPar); } get { return GetChildByRole(Roles.RPar); }
} }
public override void AcceptVisitor(IAstVisitor visitor)
{
visitor.VisitParenthesizedVariableDesignation(this);
}
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
{
return visitor.VisitParenthesizedVariableDesignation(this);
}
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
{
return visitor.VisitParenthesizedVariableDesignation(this, data);
}
protected internal override bool DoMatch(AstNode other, Match match) protected internal override bool DoMatch(AstNode other, Match match)
{ {
return other is ParenthesizedVariableDesignation o && VariableDesignations.DoMatch(o.VariableDesignations, match); return other is ParenthesizedVariableDesignation o && VariableDesignations.DoMatch(o.VariableDesignations, match);

Loading…
Cancel
Save