mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-11 11:05:24 +02:00
added constructors to CPPASTFunctionTryBlockDeclarator
This commit is contained in:
parent
82c457efbc
commit
c3565edec0
1 changed files with 11 additions and 2 deletions
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
package org.eclipse.cdt.internal.core.dom.parser.cpp;
|
package org.eclipse.cdt.internal.core.dom.parser.cpp;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
|
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.ICPPASTCatchHandler;
|
||||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTFunctionTryBlockDeclarator;
|
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTFunctionTryBlockDeclarator;
|
||||||
import org.eclipse.cdt.core.parser.util.ArrayUtil;
|
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
|
public class CPPASTFunctionTryBlockDeclarator extends CPPASTFunctionDeclarator
|
||||||
implements ICPPASTFunctionTryBlockDeclarator {
|
implements ICPPASTFunctionTryBlockDeclarator {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void addCatchHandler(ICPPASTCatchHandler statement) {
|
public CPPASTFunctionTryBlockDeclarator() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public CPPASTFunctionTryBlockDeclarator(IASTName name) {
|
||||||
|
super(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addCatchHandler(ICPPASTCatchHandler statement) {
|
||||||
if (statement != null) {
|
if (statement != null) {
|
||||||
catchHandlers = (ICPPASTCatchHandler[]) ArrayUtil.append( ICPPASTCatchHandler.class, catchHandlers, ++catchHandlersPos, statement );
|
catchHandlers = (ICPPASTCatchHandler[]) ArrayUtil.append( ICPPASTCatchHandler.class, catchHandlers, ++catchHandlersPos, statement );
|
||||||
statement.setParent(this);
|
statement.setParent(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue