1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using ICSharpCode.NRefactory.Ast;
6
using ICSharpCode.NRefactory.Visitors;
8
namespace SharpRefactoring.Visitors
10
public class HasReturnStatementVisitor : AbstractAstVisitor
14
public bool HasReturn {
15
get { return hasReturn; }
18
public HasReturnStatementVisitor()
22
public override object VisitReturnStatement(ReturnStatement returnStatement, object data)
24
this.hasReturn = true;
25
return base.VisitReturnStatement(returnStatement, data);