File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 8
8
namespace Sass {
9
9
using namespace std ;
10
10
11
+ static Null sass_null (Sass::Null(ParserState(" null" )));
12
+
11
13
bool Compound_Selector::operator <(const Compound_Selector& rhs) const
12
14
{
13
15
To_String to_string;
@@ -587,5 +589,12 @@ namespace Sass {
587
589
return result;
588
590
}*/
589
591
592
+ Expression* Hashed::at (Expression* k) const
593
+ {
594
+ if (elements_.count (k))
595
+ { return elements_.at (k); }
596
+ else { return &sass_null; }
597
+ }
598
+
590
599
}
591
600
Original file line number Diff line number Diff line change @@ -210,9 +210,10 @@ namespace Sass {
210
210
size_t length () const { return list_.size (); }
211
211
bool empty () const { return list_.empty (); }
212
212
bool has (Expression* k) const { return elements_.count (k) == 1 ; }
213
- Expression* at (Expression* k) const { return elements_. at (k); }
213
+ Expression* at (Expression* k) const ;
214
214
bool has_duplicate_key () const { return duplicate_key_ != 0 ; }
215
215
Expression* get_duplicate_key () const { return duplicate_key_; }
216
+ const unordered_map<Expression*, Expression*> elements () { return elements_; }
216
217
Hashed& operator <<(pair<Expression*, Expression*> p)
217
218
{
218
219
reset_hash ();
You can’t perform that action at this time.
0 commit comments