mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Offset fixes for Hoda.
This commit is contained in:
parent
9a70e8f755
commit
4b8ed789cc
2 changed files with 4 additions and 3 deletions
|
@ -19,7 +19,7 @@ import org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate;
|
||||||
* @author jcamelon
|
* @author jcamelon
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface IASTClassSpecifier extends IASTTypeSpecifier, IASTScope, IASTOffsetableNamedElement, IASTScopedTypeSpecifier, ISourceElementCallbackDelegate {
|
public interface IASTClassSpecifier extends IASTScope, IASTOffsetableNamedElement, IASTScopedTypeSpecifier, ISourceElementCallbackDelegate {
|
||||||
|
|
||||||
public class ClassNameType extends Enum {
|
public class ClassNameType extends Enum {
|
||||||
|
|
||||||
|
|
|
@ -692,7 +692,7 @@ public class Parser implements IParser
|
||||||
scope,
|
scope,
|
||||||
(identifier == null ? "" : identifier.getImage()),
|
(identifier == null ? "" : identifier.getImage()),
|
||||||
first.getOffset(),
|
first.getOffset(),
|
||||||
(identifier == null ? 0 : identifier.getOffset()));
|
(identifier == null ? first.getOffset() : identifier.getOffset()));
|
||||||
}
|
}
|
||||||
catch (ASTSemanticException e)
|
catch (ASTSemanticException e)
|
||||||
{
|
{
|
||||||
|
@ -2120,7 +2120,8 @@ public class Parser implements IParser
|
||||||
astFactory.createEnumerationSpecifier(
|
astFactory.createEnumerationSpecifier(
|
||||||
sdw.getScope(),
|
sdw.getScope(),
|
||||||
((identifier == null) ? "" : identifier.getImage()),
|
((identifier == null) ? "" : identifier.getImage()),
|
||||||
mark.getOffset(), ((identifier == null)
|
mark.getOffset(),
|
||||||
|
((identifier == null)
|
||||||
? mark.getOffset()
|
? mark.getOffset()
|
||||||
: identifier.getOffset()));
|
: identifier.getOffset()));
|
||||||
consume(IToken.tLBRACE);
|
consume(IToken.tLBRACE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue