예제 #1
0
 internal CssParser(ICssItemFactory itemFactory)
     : this(null, itemFactory)
 {
 }
예제 #2
0
 internal ItemFactory(ICssItemFactory externalFactory, ITextProvider textProvider, TokenStream tokenStream)
 {
     ExternalFactory = externalFactory;
     TextProvider    = textProvider;
     TokenStream     = tokenStream;
 }
예제 #3
0
 /// <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;
 }