From 56fde51b698e6c7b8ea23ebbc5caf0cd10bc4682 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 1 Apr 2011 16:54:56 +0200 Subject: [PATCH] Use "Role" suffix for the fixed field variable role. --- .../CSharp/Ast/TypeMembers/FixedFieldDeclaration.cs | 6 +++--- ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ICSharpCode.NRefactory/CSharp/Ast/TypeMembers/FixedFieldDeclaration.cs b/ICSharpCode.NRefactory/CSharp/Ast/TypeMembers/FixedFieldDeclaration.cs index 294cc437d0..2fde822604 100644 --- a/ICSharpCode.NRefactory/CSharp/Ast/TypeMembers/FixedFieldDeclaration.cs +++ b/ICSharpCode.NRefactory/CSharp/Ast/TypeMembers/FixedFieldDeclaration.cs @@ -1,4 +1,4 @@ -// +// // FixedFieldDeclaration.cs // // Author: @@ -29,7 +29,7 @@ namespace ICSharpCode.NRefactory.CSharp { public class FixedFieldDeclaration : AttributedNode { - public static readonly Role Initializer = new Role ("Initializer"); + public static readonly Role VariableRole = new Role ("FixedVariable"); public override NodeType NodeType { get { return NodeType.Member; } @@ -45,7 +45,7 @@ namespace ICSharpCode.NRefactory.CSharp } public AstNodeCollection Variables { - get { return GetChildrenByRole (Initializer); } + get { return GetChildrenByRole (VariableRole); } } public override S AcceptVisitor (IAstVisitor visitor, T data) diff --git a/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs b/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs index 2bf75e6e6d..f9a20b45ba 100644 --- a/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs +++ b/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs @@ -418,7 +418,7 @@ namespace ICSharpCode.NRefactory.CSharp if (bracketLocations != null && bracketLocations.Count > 1) variable.AddChild (new CSharpTokenNode (Convert (bracketLocations [0]), 1), FixedFieldDeclaration.Roles.RBracket); } - newField.AddChild (variable, FixedFieldDeclaration.Initializer); + newField.AddChild (variable, FixedFieldDeclaration.VariableRole); if (f.Declarators != null) { foreach (var decl in f.Declarators) { @@ -436,7 +436,7 @@ namespace ICSharpCode.NRefactory.CSharp if (bracketLocations != null && bracketLocations.Count > 1) variable.AddChild (new CSharpTokenNode (Convert (bracketLocations [0]), 1), FixedFieldDeclaration.Roles.RBracket); } - newField.AddChild (variable, FixedFieldDeclaration.Initializer); + newField.AddChild (variable, FixedFieldDeclaration.VariableRole); } } if (location != null)