@projectwallace/css-parser 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css-node.d.ts +0 -2
- package/dist/css-node.js +4 -1
- package/dist/parse-atrule-prelude.js +2 -0
- package/package.json +1 -1
package/dist/css-node.d.ts
CHANGED
|
@@ -81,8 +81,6 @@ export declare class CSSNode {
|
|
|
81
81
|
private source;
|
|
82
82
|
private index;
|
|
83
83
|
constructor(arena: CSSDataArena, source: string, index: number);
|
|
84
|
-
/** Get the arena (for internal/advanced use only) */
|
|
85
|
-
__get_arena(): CSSDataArena;
|
|
86
84
|
/** Get node type as number (for performance) */
|
|
87
85
|
get type(): CSSNodeType;
|
|
88
86
|
/** Get node type as human-readable string */
|
package/dist/css-node.js
CHANGED
|
@@ -222,6 +222,8 @@ class AtRulePreludeParser {
|
|
|
222
222
|
let token_type = this.lexer.token_type;
|
|
223
223
|
if (token_type === TOKEN_IDENT) {
|
|
224
224
|
let layer = this.create_node(LAYER_NAME, this.lexer.token_start, this.lexer.token_end);
|
|
225
|
+
this.arena.set_value_start_delta(layer, 0);
|
|
226
|
+
this.arena.set_value_length(layer, this.lexer.token_end - this.lexer.token_start);
|
|
225
227
|
nodes.push(layer);
|
|
226
228
|
} else if (token_type === TOKEN_COMMA) {
|
|
227
229
|
continue;
|
package/package.json
CHANGED