|
|
|
@ -40,13 +40,13 @@ namespace ICSharpCode.NRefactory.CSharp
@@ -40,13 +40,13 @@ namespace ICSharpCode.NRefactory.CSharp
|
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public NamedExpression (string identifier, Expression expression) |
|
|
|
|
public NamedExpression (string name, Expression expression) |
|
|
|
|
{ |
|
|
|
|
this.Identifier = identifier; |
|
|
|
|
this.Name = name; |
|
|
|
|
this.Expression = expression; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string Identifier { |
|
|
|
|
public string Name { |
|
|
|
|
get { |
|
|
|
|
return GetChildByRole (Roles.Identifier).Name; |
|
|
|
|
} |
|
|
|
@ -55,7 +55,7 @@ namespace ICSharpCode.NRefactory.CSharp
@@ -55,7 +55,7 @@ namespace ICSharpCode.NRefactory.CSharp
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Identifier IdentifierToken { |
|
|
|
|
public Identifier NameToken { |
|
|
|
|
get { |
|
|
|
|
return GetChildByRole (Roles.Identifier); |
|
|
|
|
} |
|
|
|
@ -91,7 +91,7 @@ namespace ICSharpCode.NRefactory.CSharp
@@ -91,7 +91,7 @@ namespace ICSharpCode.NRefactory.CSharp
|
|
|
|
|
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) |
|
|
|
|
{ |
|
|
|
|
var o = other as NamedExpression; |
|
|
|
|
return o != null && MatchString(this.Identifier, o.Identifier) && this.Expression.DoMatch(o.Expression, match); |
|
|
|
|
return o != null && MatchString(this.Name, o.Name) && this.Expression.DoMatch(o.Expression, match); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|