|
|
|
@ -35,6 +35,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
@@ -35,6 +35,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
|
|
|
|
|
public static readonly TokenRole ThisKeywordRole = new TokenRole ("this"); |
|
|
|
|
public static readonly Role<Accessor> GetterRole = PropertyDeclaration.GetterRole; |
|
|
|
|
public static readonly Role<Accessor> SetterRole = PropertyDeclaration.SetterRole; |
|
|
|
|
public static readonly Role<Expression> ExpressionBodyRole = new Role<Expression>("ExpressionBody", Expression.Null); |
|
|
|
|
|
|
|
|
|
public override SymbolKind SymbolKind { |
|
|
|
|
get { return SymbolKind.Indexer; } |
|
|
|
@ -94,6 +95,11 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
@@ -94,6 +95,11 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
|
|
|
|
|
get { return GetChildByRole (Roles.RBrace); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Expression ExpressionBody { |
|
|
|
|
get { return GetChildByRole(ExpressionBodyRole); } |
|
|
|
|
set { SetChildByRole(ExpressionBodyRole, value); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override void AcceptVisitor (IAstVisitor visitor) |
|
|
|
|
{ |
|
|
|
|
visitor.VisitIndexerDeclaration (this); |
|
|
|
@ -116,7 +122,8 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
@@ -116,7 +122,8 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
|
|
|
|
|
&& this.MatchAttributesAndModifiers(o, match) && this.ReturnType.DoMatch(o.ReturnType, match) |
|
|
|
|
&& this.PrivateImplementationType.DoMatch(o.PrivateImplementationType, match) |
|
|
|
|
&& this.Parameters.DoMatch(o.Parameters, match) |
|
|
|
|
&& this.Getter.DoMatch(o.Getter, match) && this.Setter.DoMatch(o.Setter, match); |
|
|
|
|
&& this.Getter.DoMatch(o.Getter, match) && this.Setter.DoMatch(o.Setter, match) |
|
|
|
|
&& this.ExpressionBody.DoMatch(o.ExpressionBody, match); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|