Skip to content

Commit

Permalink
add orderedChildren
Browse files Browse the repository at this point in the history
	^ self children asOrderedCollection sort: #startPos ascending
  • Loading branch information
badetitou committed Apr 6, 2020
1 parent ed11bdd commit 4337342
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/FAST-Core-Model-Extension/FASTEntity.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ FASTEntity >> containers [

{ #category : #'*FAST-Core-Model-Extension' }
FASTEntity >> currentParentSelector [
| res |
res := Set new.
self parentSelectors do: [ :accessor |
(self perform: accessor) ifNotNil: [ :r | ^ accessor ] ].
self parentSelectors do: [ :accessor | (self perform: accessor) ifNotNil: [ :r | ^ accessor ] ].
^ nil
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Extension { #name : #FASTEntitySourceAnchor }

{ #category : #'*FAST-Core-Model-Extension' }
FASTEntitySourceAnchor >> orderedChildren [
^ self children asOrderedCollection sort: #startPos ascending
]

{ #category : #'*FAST-Core-Model-Extension' }
FASTEntitySourceAnchor >> sourceCode [

Expand Down

0 comments on commit 4337342

Please sign in to comment.