1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Offset fixes for Hoda.

This commit is contained in:
John Camelon 2003-07-22 14:50:13 +00:00
parent 9a70e8f755
commit 4b8ed789cc
2 changed files with 4 additions and 3 deletions

View file

@ -19,7 +19,7 @@ import org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate;
* @author jcamelon
*
*/
public interface IASTClassSpecifier extends IASTTypeSpecifier, IASTScope, IASTOffsetableNamedElement, IASTScopedTypeSpecifier, ISourceElementCallbackDelegate {
public interface IASTClassSpecifier extends IASTScope, IASTOffsetableNamedElement, IASTScopedTypeSpecifier, ISourceElementCallbackDelegate {
public class ClassNameType extends Enum {

View file

@ -692,7 +692,7 @@ public class Parser implements IParser
scope,
(identifier == null ? "" : identifier.getImage()),
first.getOffset(),
(identifier == null ? 0 : identifier.getOffset()));
(identifier == null ? first.getOffset() : identifier.getOffset()));
}
catch (ASTSemanticException e)
{
@ -2120,7 +2120,8 @@ public class Parser implements IParser
astFactory.createEnumerationSpecifier(
sdw.getScope(),
((identifier == null) ? "" : identifier.getImage()),
mark.getOffset(), ((identifier == null)
mark.getOffset(),
((identifier == null)
? mark.getOffset()
: identifier.getOffset()));
consume(IToken.tLBRACE);