Browse Source

Remove NextStatement/PrevStatement properties - too many properties can be confusing (e.g. a loop's EmbeddedStatement would show up next to those two properties)

newNRvisualizers
Daniel Grunwald 15 years ago
parent
commit
307559c5ac
  1. 32
      ICSharpCode.NRefactory/CSharp/Ast/Statements/Statement.cs

32
ICSharpCode.NRefactory/CSharp/Ast/Statements/Statement.cs

@ -74,38 +74,6 @@ namespace ICSharpCode.NRefactory.CSharp @@ -74,38 +74,6 @@ namespace ICSharpCode.NRefactory.CSharp
}
#endregion
/// <summary>
/// Gets the previous statement within the current block.
/// This is usually equivalent to <see cref="PrevSibling"/>, but will skip any non-statements (e.g. comments)
/// </summary>
public Statement PreviousStatement {
get {
AstNode node = this;
while ((node = node.PrevSibling) != null) {
Statement stmt = node as Statement;
if (stmt != null)
return stmt;
}
return null;
}
}
/// <summary>
/// Gets the next statement within the current block.
/// This is usually equivalent to <see cref="NextSibling"/>, but will skip any non-statements (e.g. comments)
/// </summary>
public Statement NextStatement {
get {
AstNode node = this;
while ((node = node.NextSibling) != null) {
Statement stmt = node as Statement;
if (stmt != null)
return stmt;
}
return null;
}
}
public new Statement Clone()
{
return (Statement)base.Clone();

Loading…
Cancel
Save