forked from JavaTX/JavaCompilerCore
Korrektur der Ersetzung.
This commit is contained in:
parent
1eaeca1db5
commit
c18daad047
@ -31,7 +31,7 @@ public class TypeInsertPoint {
|
|||||||
//token.point.getLine() != point.getLine() && token.point.getCharPositionInLine() <= point.getCharPositionInLine()))
|
//token.point.getLine() != point.getLine() && token.point.getCharPositionInLine() <= point.getCharPositionInLine()))
|
||||||
token.point.getStartIndex() <= point.getStartIndex()))
|
token.point.getStartIndex() <= point.getStartIndex()))
|
||||||
.mapToInt((typeInsertPoint -> typeInsertPoint.insertString.length())).sum();
|
.mapToInt((typeInsertPoint -> typeInsertPoint.insertString.length())).sum();
|
||||||
return new StringBuilder(intoSource).insert(point.getStartIndex()+offset+extraOffset, insertString).toString();
|
return new StringBuilder(intoSource).insert(point.getStartIndex()+extraOffset, insertString).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getInsertString() {
|
public String getInsertString() {
|
||||||
|
Loading…
Reference in New Issue
Block a user