Parsing support for the :empty pseudo.
This commit is contained in:
1 parent
1b870406de
commit
de04c61df9
2 files changed
+20
No files matched your search
@@ -550,6 +550,15 @@ end
|
||||
return s(:eq, s(:call, 'last'), s(:int, 1))
|
||||
end
|
||||
|
||||
##
|
||||
# Generates the AST for the `:empty` selector.
|
||||
#
|
||||
# @return [AST::Node]
|
||||
#
|
||||
def on_pseudo_class_empty
|
||||
return s(:call, 'not', s(:axis, 'child', s(:type_test, 'node')))
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
##
|
||||
|
||||
Reference in new issue
Block a user