 
     if isCompletingFunction = @isCompletingFunction({scopeDescriptor})
       completions = completions.concat(@getMethodCompletions({scopeDescriptor, prefix}))
+
     if isCompletingConstant = @isCompletingConstant({scopeDescriptor})
       completions = completions.concat(@getConstantCompletions({prefix}))
-    return completions
+
+    completions
     # @getConstructCompletions(request)
 
   # getConstructCompletions: (request) ->

    displayText: constant
    replacementPrefix: prefix

    # if argument?
    #   completion.snippet = "#{pseudoSelector}(${1:#{argument}})"
    # else
    #   completion.text = pseudoSelector
    # completion

hasScope = (scopesArray, scope) ->
  if scopesArray.indexOf(scope) isnt -1
    true

      value.indexOf(scope) isnt -1
    return selected.length > 0

stringContains = (prefix, text) ->
  text.replace(/\W/g, '').toLowerCase().indexOf(prefix.toLowerCase()) == 0

  # scopesArray.indexOf(scope) isnt -1
