Class: SyntaxTree::CSS::SemicolonToken
- Defined in:
- lib/syntax_tree/css/nodes.rb
Overview
A parsed token that contains a comma. www.w3.org/TR/css-syntax-3/#typedef-semicolon-token
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #child_nodes ⇒ Object (also: #deconstruct)
- #deconstruct_keys(keys) ⇒ Object
-
#initialize(location:) ⇒ SemicolonToken
constructor
A new instance of SemicolonToken.
Methods inherited from Node
Constructor Details
#initialize(location:) ⇒ SemicolonToken
Returns a new instance of SemicolonToken.
769 770 771 |
# File 'lib/syntax_tree/css/nodes.rb', line 769 def initialize(location:) @location = Location.from(location) end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
767 768 769 |
# File 'lib/syntax_tree/css/nodes.rb', line 767 def location @location end |
Instance Method Details
#accept(visitor) ⇒ Object
773 774 775 |
# File 'lib/syntax_tree/css/nodes.rb', line 773 def accept(visitor) visitor.visit_semicolon_token(self) end |
#child_nodes ⇒ Object Also known as: deconstruct
777 778 779 |
# File 'lib/syntax_tree/css/nodes.rb', line 777 def child_nodes [] end |
#deconstruct_keys(keys) ⇒ Object
783 784 785 |
# File 'lib/syntax_tree/css/nodes.rb', line 783 def deconstruct_keys(keys) { location: location } end |