mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
minor refactoring
This commit is contained in:
parent
3a30307849
commit
c05a906e0f
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ public class XtextResource extends ResourceImpl {
|
|||
return parseResult;
|
||||
}
|
||||
|
||||
public void update(int offset, int originalLength, String change) {
|
||||
public void update(int offset, int replacedTextLength, String newText) {
|
||||
CompositeNode rootNode = parseResult.getRootNode();
|
||||
|
||||
// unloading is required to ensure that any EObjects hanging around
|
||||
|
@ -71,7 +71,7 @@ public class XtextResource extends ResourceImpl {
|
|||
// and thus still can be compared by their URI
|
||||
unload();
|
||||
|
||||
parseResult = parser.reparse(rootNode, offset, originalLength, change);
|
||||
parseResult = parser.reparse(rootNode, offset, replacedTextLength, newText);
|
||||
getContents().clear();
|
||||
if (parseResult != null) {
|
||||
if (parseResult.getRootASTElement() != null)
|
||||
|
|
Loading…
Reference in a new issue