From c3565edec08a8b8a116c893bdd8a21db13469a2c Mon Sep 17 00:00:00 2001 From: Mike Kucera Date: Wed, 23 Jan 2008 23:08:29 +0000 Subject: [PATCH] added constructors to CPPASTFunctionTryBlockDeclarator --- .../cpp/CPPASTFunctionTryBlockDeclarator.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTFunctionTryBlockDeclarator.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTFunctionTryBlockDeclarator.java index e15e7011e9c..4f98e4de829 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTFunctionTryBlockDeclarator.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTFunctionTryBlockDeclarator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2006 IBM Corporation and others. + * Copyright (c) 2004, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -11,6 +11,7 @@ package org.eclipse.cdt.internal.core.dom.parser.cpp; import org.eclipse.cdt.core.dom.ast.ASTVisitor; +import org.eclipse.cdt.core.dom.ast.IASTName; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTCatchHandler; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTFunctionTryBlockDeclarator; import org.eclipse.cdt.core.parser.util.ArrayUtil; @@ -21,8 +22,16 @@ import org.eclipse.cdt.core.parser.util.ArrayUtil; public class CPPASTFunctionTryBlockDeclarator extends CPPASTFunctionDeclarator implements ICPPASTFunctionTryBlockDeclarator { + - public void addCatchHandler(ICPPASTCatchHandler statement) { + public CPPASTFunctionTryBlockDeclarator() { + } + + public CPPASTFunctionTryBlockDeclarator(IASTName name) { + super(name); + } + + public void addCatchHandler(ICPPASTCatchHandler statement) { if (statement != null) { catchHandlers = (ICPPASTCatchHandler[]) ArrayUtil.append( ICPPASTCatchHandler.class, catchHandlers, ++catchHandlersPos, statement ); statement.setParent(this);