1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Added debugging info for Andrew.

This commit is contained in:
John Camelon 2004-04-25 22:47:56 +00:00
parent d2e9119927
commit e0706f6786
2 changed files with 8 additions and 4 deletions

View file

@ -11,10 +11,8 @@
package org.eclipse.cdt.core.parser.failedTests;
import java.io.StringWriter;
import java.util.Iterator;
import org.eclipse.cdt.core.parser.ast.IASTCompletionNode;
import org.eclipse.cdt.core.parser.ast.IASTField;
import org.eclipse.cdt.core.parser.ast.IASTNode;
import org.eclipse.cdt.core.parser.ast.IASTNode.ILookupResult;
import org.eclipse.cdt.core.parser.tests.CompletionParseBaseTest;

View file

@ -3322,7 +3322,10 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
public boolean validateIndirectMemberOperation(IASTNode node) {
List pointerOps = null;
if( ( node instanceof ISymbolOwner ) )
pointerOps = ((ISymbolOwner) node).getSymbol().getTypeInfo().getFinalType().getPtrOperators();
{
ISymbol symbol = ((ISymbolOwner) node).getSymbol();
pointerOps = symbol.getTypeInfo().getFinalType().getPtrOperators();
}
else if( node instanceof ASTExpression )
{
ISymbol typeSymbol = ((ASTExpression)node).getResultType().getResult().getTypeSymbol();
@ -3345,7 +3348,10 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
public boolean validateDirectMemberOperation(IASTNode node) {
List pointerOps = null;
if( ( node instanceof ISymbolOwner ) )
pointerOps = ((ISymbolOwner) node).getSymbol().getPtrOperators();
{
ISymbol symbol = ((ISymbolOwner) node).getSymbol();
pointerOps = symbol.getTypeInfo().getFinalType().getPtrOperators();
}
else if( node instanceof ASTExpression )
{
ISymbol typeSymbol = ((ASTExpression)node).getResultType().getResult().getTypeSymbol();