<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-parser-algorithms](./css-parser-algorithms.md) &gt; [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md)

## SimpleBlockNode class

A simple block node.

**Signature:**

```typescript
export declare class SimpleBlockNode extends ContainerNodeBaseClass 
```
**Extends:** [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md)

## Example


```js
const node = parseComponentValue(tokenize('[foo=bar]'));

isSimpleBlockNode(node); // true
node.startToken; // [TokenType.OpenSquare, '[', 0, 0, undefined]
```

## Constructors

<table><thead><tr><th>

Constructor


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[(constructor)(startToken, endToken, value)](./css-parser-algorithms.simpleblocknode._constructor_.md)


</td><td>


</td><td>

Constructs a new instance of the `SimpleBlockNode` class


</td></tr>
</tbody></table>

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[endToken](./css-parser-algorithms.simpleblocknode.endtoken.md)


</td><td>


</td><td>

CSSToken


</td><td>

The token for the closing token of the block. If the block is closed it will be the mirror variant of the `startToken`<!-- -->. If the block is unclosed, this will be an EOF token.


</td></tr>
<tr><td>

[startToken](./css-parser-algorithms.simpleblocknode.starttoken.md)


</td><td>


</td><td>

CSSToken


</td><td>

The token for the opening token of the block.


</td></tr>
<tr><td>

[type](./css-parser-algorithms.simpleblocknode.type.md)


</td><td>


</td><td>

[ComponentValueType](./css-parser-algorithms.componentvaluetype.md)


</td><td>

The node type, always `ComponentValueType.SimpleBlock`


</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[normalize()](./css-parser-algorithms.simpleblocknode.normalize.md)


</td><td>


</td><td>

Normalize the current simple block 1. if the "endToken" is EOF, replace with the mirror token of the "startToken"


</td></tr>
<tr><td>

[tokens()](./css-parser-algorithms.simpleblocknode.tokens.md)


</td><td>


</td><td>

Retrieve the tokens for the current simple block. This is the inverse of parsing from a list of tokens.


</td></tr>
<tr><td>

[toString()](./css-parser-algorithms.simpleblocknode.tostring.md)


</td><td>


</td><td>

Convert the current simple block to a string. This is not a true serialization. It is purely a concatenation of the string representation of the tokens.


</td></tr>
</tbody></table>

