File tree Expand file tree Collapse file tree 3 files changed +725
-269
lines changed Expand file tree Collapse file tree 3 files changed +725
-269
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,6 @@ namespace Sass {
148
148
VARIABLE,
149
149
NUM_TYPES
150
150
};
151
- enum Simple_Type {
152
- SIMPLE,
153
- ATTR_SEL,
154
- PSEUDO_SEL,
155
- WRAPPED_SEL,
156
- };
157
151
private:
158
152
// expressions in some contexts shouldn't be evaluated
159
153
ADD_PROPERTY (bool , is_delayed)
@@ -183,7 +177,10 @@ namespace Sass {
183
177
static std::string type_name () { return " " ; }
184
178
virtual bool is_false () { return false ; }
185
179
// virtual bool is_true() { return !is_false(); }
180
+ virtual bool operator < (const Expression& rhs) const { return false ; }
186
181
virtual bool operator == (const Expression& rhs) const { return false ; }
182
+ inline bool operator >(const Expression& rhs) const { return rhs < *this ; }
183
+ inline bool operator !=(const Expression& rhs) const { return !(rhs == *this ); }
187
184
virtual bool eq (const Expression& rhs) const { return *this == rhs; };
188
185
virtual void set_delayed (bool delayed) { is_delayed (delayed); }
189
186
virtual bool has_interpolant () const { return is_interpolant (); }
@@ -244,6 +241,7 @@ namespace Sass {
244
241
T& operator [](size_t i) { return elements_[i]; }
245
242
virtual const T& at (size_t i) const { return elements_.at (i); }
246
243
virtual T& at (size_t i) { return elements_.at (i); }
244
+ const T& get (size_t i) const { return elements_[i]; }
247
245
const T& operator [](size_t i) const { return elements_[i]; }
248
246
virtual void append (T element)
249
247
{
You can’t perform that action at this time.
0 commit comments