public void PrepareExpression(CssCombinatorOperator combinator) { switch (combinator) { default: { } break; case CssCombinatorOperator.AdjacentSibling: { throw new NotSupportedException(); } break; case CssCombinatorOperator.Child: { throw new NotSupportedException(); } break; case CssCombinatorOperator.Descendant: { throw new NotSupportedException(); } break; case CssCombinatorOperator.GeneralSibling: { throw new NotSupportedException(); } break; case CssCombinatorOperator.List: { CssCompundElementSelector combinatorExpr = new CssCompundElementSelector(combinator); combinatorExpr.LeftSelector = this.elementSelector; this.elementSelector = combinatorExpr; } break; } }
public void PrepareExpression(CssCombinatorOperator combinator) { switch (combinator) { default: { } break; case CssCombinatorOperator.AdjacentSibling: { throw new NotSupportedException(); } break; case CssCombinatorOperator.Child: { throw new NotSupportedException(); } break; case CssCombinatorOperator.Descendant: { throw new NotSupportedException(); } break; case CssCombinatorOperator.GeneralSibling: { throw new NotSupportedException(); } break; case CssCombinatorOperator.List: { CssCompundElementSelector combinatorExpr = new CssCompundElementSelector(combinator); combinatorExpr.LeftSelector = _elementSelector; _elementSelector = combinatorExpr; } break; } }
public CssCompundElementSelector(CssCombinatorOperator opname) { this.OperatorName = opname; }