예제 #1
0
 protected virtual void ParseName(ItemFactory itemFactory, ITextProvider text, TokenStream tokens)
 {
     if ((tokens.CurrentToken.TokenType == CssTokenType.Identifier ||
          tokens.CurrentToken.TokenType == CssTokenType.Asterisk) &&
         tokens.CurrentToken.Start == Dot.AfterEnd)
     {
         ClassName = Children.AddCurrentAndAdvance(tokens, CssClassifierContextType.ClassSelector);
     }
     else
     {
         Dot.AddParseError(ParseErrorType.ClassNameMissing, ParseErrorLocation.AfterItem);
     }
 }