/// <summary> /// Creates a function from the given source. /// </summary> /// <param name="source">The token iterator.</param> /// <returns>The created function.</returns> CSSFunction CreateFunction(IEnumerator <CssToken> source) { var name = ((CssKeywordToken)source.Current).Data; var args = new CSSValueList(); //TODO while (source.MoveNext()) { if (source.Current.Type == CssTokenType.RoundBracketClose) { break; } } return(CSSFunction.Create(name, args)); }
public CSSValue Done() { Include(); return(CSSFunction.Create(name, arguments)); }