visitOptions method

Options visitOptions (Options optionsNode, VisitArgs visitArgs)

Load options and remove directive Associate plugin functions with paren node

Implementation

Options visitOptions(Options optionsNode, VisitArgs visitArgs) {
  optionsNode.apply(environment);

  //could vary from pluginManager used in run
  final PluginManager pluginManager = lessOptions.pluginManager;
  if (pluginManager != null) {
    optionsNode.functions = pluginManager.getCustomFunction().sublist(0);
    pluginManager.resetCustomFunction();
    return optionsNode; //we need eval and load the functions
  }
  return null;
}