parseCopyProperties method

void parseCopyProperties (dynamic options)

Copy properties for parse

Some are common to options and contexts

Implementation

void parseCopyProperties(dynamic options) {
  if (options is! LessOptions && options is! Contexts) return;

  final List<String> properties = <String>[
    'paths', // from options
    'rewriteUrls',
    'rootpath',
    'strictImports',
    'insecure',
    'dumpLineNumbers',
    'compress',
    'syncImport',
    'chunkInput',
    'mime',
    'useFileCache',
    'processImports',
    'numPrecision',
    'color',
    'pluginManager',
    'cleanCss',
    'files', // from contexts
    'contents',
    'contentsIgnoredChars',
    'currentFileInfo'
  ];

  Utils.copyFrom(options, this, properties); // from -> to (this)
}