mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 12:45:41 +02:00
Cosmetics.
This commit is contained in:
parent
be029369eb
commit
ab3d7d9a43
1 changed files with 6 additions and 6 deletions
|
@ -17,8 +17,13 @@ public class Token {
|
||||||
public String text;
|
public String text;
|
||||||
public int offset;
|
public int offset;
|
||||||
|
|
||||||
|
public Token(int t, String i) {
|
||||||
|
type = t;
|
||||||
|
text = i;
|
||||||
|
}
|
||||||
|
|
||||||
public Token(int t, String i, ScannerContext context) {
|
public Token(int t, String i, ScannerContext context) {
|
||||||
set(t,i,context);
|
set(t, i, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set(int t, String i, ScannerContext context) {
|
public void set(int t, String i, ScannerContext context) {
|
||||||
|
@ -27,11 +32,6 @@ public class Token {
|
||||||
offset = context.getOffset() - text.length() - context.undoStackSize();
|
offset = context.getOffset() - text.length() - context.undoStackSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Token(int t, String i) {
|
|
||||||
type = t;
|
|
||||||
text = i;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Token type=" + type + " image =" + text + " offset=" + offset; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
return "Token type=" + type + " image =" + text + " offset=" + offset; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||||
|
|
Loading…
Add table
Reference in a new issue