We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e8513 commit 664a9c2Copy full SHA for 664a9c2
src/ast_selectors.cpp
@@ -88,16 +88,15 @@ namespace Sass {
88
bool Selector_Schema::has_parent_ref() const
89
{
90
if (String_Schema_Obj schema = Cast<String_Schema>(contents())) {
91
- return schema->length() > 0 && Cast<Parent_Selector>(schema->at(0)) != NULL;
+ return !schema->empty() && typeid(*schema->at(0)) == typeid(Parent_Selector);
92
}
93
return false;
94
95
96
bool Selector_Schema::has_real_parent_ref() const
97
98
99
- if (schema->length() == 0) return false;
100
- return Cast<Parent_Reference>(schema->at(0));
+ return !schema->empty() && typeid(*schema->at(0)) == typeid(Parent_Reference);
101
102
103
0 commit comments