Sha256: ec9ae1b461c15589a061773bc16c977121ac1befcb234fd32d76a11570df6971

Contents?: true

Size: 595 Bytes

Versions: 41

Compression:

Stored size: 595 Bytes

Contents

var WHITESPACE = require('../../tokenizer').TYPE.WhiteSpace;
var SPACE = Object.freeze({
    type: 'WhiteSpace',
    loc: null,
    value: ' '
});

module.exports = {
    name: 'WhiteSpace',
    structure: {
        value: String
    },
    parse: function() {
        this.eat(WHITESPACE);
        return SPACE;

        // return {
        //     type: 'WhiteSpace',
        //     loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
        //     value: this.consume(WHITESPACE)
        // };
    },
    generate: function(node) {
        this.chunk(node.value);
    }
};

Version data entries

41 entries across 31 versions & 9 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
optimacms-0.1.61 spec/dummy/node_modules/csso/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.18.0 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.18.2 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.16.1 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.15.2 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.18.4 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.18.1 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.14.0 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
isomorfeus-preact-10.5.7 node_modules/css-tree/lib/syntax/node/WhiteSpace.js
isomorfeus-preact-10.5.6 node_modules/css-tree/lib/syntax/node/WhiteSpace.js
isomorfeus-preact-10.5.5 node_modules/css-tree/lib/syntax/node/WhiteSpace.js
isomorfeus-preact-10.5.4 node_modules/css-tree/lib/syntax/node/WhiteSpace.js
isomorfeus-preact-10.5.3 node_modules/css-tree/lib/syntax/node/WhiteSpace.js
isomorfeus-preact-10.5.2 node_modules/css-tree/lib/syntax/node/WhiteSpace.js
tang-0.2.1 spec/tang_app/node_modules/csso/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
tang-0.2.1 spec/tang_app/node_modules/css-tree/lib/syntax/node/WhiteSpace.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/csso/node_modules/css-tree/lib/syntax/node/WhiteSpace.js