|
|
|
@ -90,6 +90,8 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
@@ -90,6 +90,8 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
|
|
|
|
|
public static readonly TokenRole CatchKeywordRole = new TokenRole("catch"); |
|
|
|
|
public static readonly TokenRole WhenKeywordRole = new TokenRole("when"); |
|
|
|
|
public static readonly Role<Expression> ConditionRole = Roles.Condition; |
|
|
|
|
public static readonly TokenRole CondLPar = new TokenRole("("); |
|
|
|
|
public static readonly TokenRole CondRPar = new TokenRole(")"); |
|
|
|
|
|
|
|
|
|
#region Null
|
|
|
|
|
public new static readonly CatchClause Null = new NullCatchClause(); |
|
|
|
@ -195,7 +197,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
@@ -195,7 +197,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
|
|
|
|
|
if (string.IsNullOrEmpty(value)) |
|
|
|
|
SetChildByRole(Roles.Identifier, null); |
|
|
|
|
else |
|
|
|
|
SetChildByRole (Roles.Identifier, Identifier.Create (value)); |
|
|
|
|
SetChildByRole(Roles.Identifier, Identifier.Create(value)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -216,11 +218,19 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
@@ -216,11 +218,19 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
|
|
|
|
|
get { return GetChildByRole(WhenKeywordRole); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public CSharpTokenNode CondLParToken { |
|
|
|
|
get { return GetChildByRole(CondLPar); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Expression Condition { |
|
|
|
|
get { return GetChildByRole(ConditionRole); } |
|
|
|
|
set { SetChildByRole(ConditionRole, value); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public CSharpTokenNode CondRParToken { |
|
|
|
|
get { return GetChildByRole(CondRPar); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public BlockStatement Body { |
|
|
|
|
get { return GetChildByRole(Roles.Body); } |
|
|
|
|
set { SetChildByRole(Roles.Body, value); } |
|
|
|
|