Skip to content
Permalink
Browse files

Worked on #2855

This commit simply reorder the list of the entries proposed by NECModel. Variables goes first (ordered as local variables, instance variable, and class variables).

Pair programmed with Alejandro Infante
  • Loading branch information
bergel committed Mar 29, 2019
1 parent 38c1f22 commit 1e371ab55d41361ff0e184b9a74d5fac17ee1ba1
Showing with 7 additions and 5 deletions.
  1. +2 −2 src/NECompletion/NECModel.class.st
  2. +5 −3 src/NECompletion/NECUntypedModel.class.st
@@ -10,7 +10,7 @@ Class {
'narrowString',
'entries'
],
#category : #'NECompletion-Model'
#category : 'NECompletion-Model'
}

{ #category : #'instance creation' }
@@ -35,7 +35,7 @@ NECModel >> addToEntries: aCollection [
each contents
occursInWithEmpty: narrowString
caseSensitive: caseSensitive ].
entries addAll: temp
entries addAllFirst: temp
]

{ #category : #accessing }
@@ -52,9 +52,11 @@ NECUntypedModel >> addAdditionals: aCollection [
{ #category : #private }
NECUntypedModel >> addVariables [
includeVariables ifFalse: [^ self].
self addToEntries: localVars.
self addToEntries: classVars.
self addToEntries: instVars.
self addToEntries: classVars
self addToEntries: localVars.


]

{ #category : #initialization }
@@ -91,7 +93,7 @@ NECUntypedModel >> initializeInstVars [
NECUntypedModel >> initializeSelectors [
| case |
self resetSelectors.
narrowString size < 2 ifTrue: [ ^ self ].
narrowString size < 2 ifTrue: [ ^ self ].
case := NECPreferences caseSensitive.
includeSelectors
ifTrue: [ Symbol selectorTable do: [ :symbol | | toadd |

0 comments on commit 1e371ab

Please sign in to comment.
You can’t perform that action at this time.