mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Cosmetics.
This commit is contained in:
parent
e726c3d217
commit
1e9ebf883d
2 changed files with 8 additions and 12 deletions
|
@ -16,7 +16,6 @@ package org.eclipse.cdt.core.parser;
|
|||
* @noimplement This interface is not intended to be implemented by clients.
|
||||
*/
|
||||
public interface IToken {
|
||||
|
||||
// getters
|
||||
public int getType();
|
||||
public String getImage();
|
||||
|
@ -29,7 +28,6 @@ public interface IToken {
|
|||
public void setNext(IToken t);
|
||||
public void setType(int i);
|
||||
|
||||
|
||||
// Token types
|
||||
int FIRST_RESERVED_PREPROCESSOR= -200;
|
||||
int LAST_RESERVED_PREPROCESSOR= -101;
|
||||
|
@ -39,7 +37,6 @@ public interface IToken {
|
|||
/** @since 5.2 */
|
||||
int t_PRAGMA = 5200;
|
||||
|
||||
|
||||
int tIDENTIFIER = 1;
|
||||
int tINTEGER = 2;
|
||||
int tCOLONCOLON = 3;
|
||||
|
|
|
@ -48,7 +48,7 @@ public class Token implements IToken, Cloneable {
|
|||
|
||||
@Override
|
||||
final public int getLength() {
|
||||
return fEndOffset-fOffset;
|
||||
return fEndOffset - fOffset;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -56,7 +56,6 @@ public class Token implements IToken, Cloneable {
|
|||
return fNextToken;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
final public void setType(int kind) {
|
||||
fKind= kind;
|
||||
|
@ -73,8 +72,8 @@ public class Token implements IToken, Cloneable {
|
|||
}
|
||||
|
||||
public void shiftOffset(int shift) {
|
||||
fOffset+= shift;
|
||||
fEndOffset+= shift;
|
||||
fOffset += shift;
|
||||
fEndOffset += shift;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue