mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Removed INodeFactory.newTranslationUnit() method.
Change-Id: Iaff5e56a18f1a1c53dfc1c31d7bdc6bbfc6c0ae3
This commit is contained in:
parent
4559a2308a
commit
e984df3ba0
5 changed files with 3 additions and 26 deletions
|
@ -197,12 +197,6 @@ public interface INodeFactory {
|
|||
/** @since 5.4 */
|
||||
public IASTTokenList newTokenList();
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by {@link #newTranslationUnit(IScanner)}.
|
||||
*/
|
||||
@Deprecated
|
||||
public IASTTranslationUnit newTranslationUnit();
|
||||
|
||||
/**
|
||||
* Creates a new translation unit that cooperates with the given scanner in order
|
||||
* to track macro-expansions and location information.
|
||||
|
|
|
@ -408,13 +408,6 @@ public interface ICPPNodeFactory extends INodeFactory {
|
|||
|
||||
public ICPPASTTemplateSpecialization newTemplateSpecialization(IASTDeclaration declaration);
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by {@link #newTranslationUnit(IScanner)}.
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
public ICPPASTTranslationUnit newTranslationUnit();
|
||||
|
||||
/**
|
||||
* Creates a new translation unit that cooperates with the given scanner in order
|
||||
* to track macro-expansions and location information.
|
||||
|
|
|
@ -434,11 +434,6 @@ public class CNodeFactory extends NodeFactory implements ICNodeFactory {
|
|||
return new ASTTokenList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IASTTranslationUnit newTranslationUnit() {
|
||||
return newTranslationUnit(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IASTTranslationUnit newTranslationUnit(IScanner scanner) {
|
||||
CASTTranslationUnit tu = new CASTTranslationUnit();
|
||||
|
|
|
@ -790,11 +790,6 @@ public class CPPNodeFactory extends NodeFactory implements ICPPNodeFactory {
|
|||
return new ASTTokenList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ICPPASTTranslationUnit newTranslationUnit() {
|
||||
return newTranslationUnit(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ICPPASTTranslationUnit newTranslationUnit(IScanner scanner) {
|
||||
CPPASTTranslationUnit tu = new CPPASTTranslationUnit();
|
||||
|
|
|
@ -16,8 +16,6 @@ import static org.eclipse.cdt.core.dom.lrparser.action.ParserUtil.offset;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import lpg.lpgjavaruntime.IToken;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.IASTASMDeclaration;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTArrayDeclarator;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTArrayModifier;
|
||||
|
@ -85,6 +83,8 @@ import org.eclipse.cdt.internal.core.dom.parser.AbstractGNUSourceCodeParser;
|
|||
import org.eclipse.cdt.internal.core.dom.parser.IASTAmbiguousExpression;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.IASTAmbiguousStatement;
|
||||
|
||||
import lpg.lpgjavaruntime.IToken;
|
||||
|
||||
/**
|
||||
* Parser semantic actions that are common to both C and C++.
|
||||
*
|
||||
|
@ -149,7 +149,7 @@ public abstract class BuildASTParserAction extends AbstractParserAction {
|
|||
|
||||
public void consumeTranslationUnit() {
|
||||
if(tu == null)
|
||||
tu = nodeFactory.newTranslationUnit();
|
||||
tu = nodeFactory.newTranslationUnit(null);
|
||||
|
||||
// can't close the outermost scope
|
||||
for(Object o : astStack.topScope()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue