Skip to content

Commit

Permalink
Fixing error on method to find siblings
Browse files Browse the repository at this point in the history
  • Loading branch information
javierfernandes committed Mar 20, 2016
1 parent f1a77b5 commit 97f2496
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class XTextExtensions {

def static objectURI(EObject o) { (o.eResource as XtextResource).getURIFragment(o) }

def static getSiblings(EObject o) { o.eContainer.eContents.filter[it != 0] }
def static getSiblings(EObject o) { o.eContainer.eContents.filter[it != o] }

def static allSiblingsBefore(EObject o) {
val beforeNodes = newArrayList
for(c : o.eContainer.eContents) {
for (c : o.eContainer.eContents) {
if (c != o)
beforeNodes.add(c)
else
Expand Down

0 comments on commit 97f2496

Please sign in to comment.