diff -r 48b0c2edb0df -r d8379f5d5a1d src/AST.h --- a/src/AST.h Sun Jul 29 18:02:13 2012 -0700 +++ b/src/AST.h Sun Jul 29 18:19:12 2012 -0700 @@ -1,19 +1,20 @@ -/* +/* vim: set ts=4 sw=4 tw=99 et: + * * Copyright (C) 2012 David Anderson * - * This file is part of JITCraft. + * This file is part of SourcePawn. * - * JITCraft is free software: you can redistribute it and/or modify it under + * SourcePawn is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) * any later version. * - * Foobar is distributed in the hope that it will be useful, but WITHOUT ANY + * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with - * JITCraft. If not, see http://www.gnu.org/licenses/. + * SourcePawn. If not, see http://www.gnu.org/licenses/. */ #ifndef _include_jitcraft_ast_h_ #define _include_jitcraft_ast_h_ @@ -691,10 +692,11 @@ Statement *body_; ParameterList *parameters_; bool explicitReturn_; + ScopedRoot tag_; public: FunctionStatement(const SourcePosition &pos, Scope *scope, NamedFunction *fun, Statement *body, - ParameterList *parameters, bool explicitReturn) + ParameterList *parameters, Handle returnTag, bool explicitReturn) : Statement(pos), scope_(scope), fun_(fun), @@ -725,6 +727,9 @@ bool hasExplicitReturn() const { return explicitReturn_; } + String *returnTag() const { + return tag_; + } }; class IfStatement : public Statement