internal CssParser(ICssItemFactory itemFactory) : this(null, itemFactory) { }
internal ItemFactory(ICssItemFactory externalFactory, ITextProvider textProvider, TokenStream tokenStream) { ExternalFactory = externalFactory; TextProvider = textProvider; TokenStream = tokenStream; }
/// <summary> /// CSS parser constructor /// </summary> /// <param name="itemFactory">Item factory <seealso cref=""/>. Null cause parser use /// default item factory. You can provide different factory if you are extending CSS /// parser, such as when implementing LESS CSS support.</param> internal CssParser(ICssTokenizerFactory tokenizerFactory, ICssItemFactory itemFactory) { TokenizerFactory = tokenizerFactory ?? new DefaultTokenizerFactory(); ExternalItemFactory = itemFactory; }