UNPKG

react-kiwi-dropdown

Version:

A minimal, easy-to-use and highly adjustable dropdown component made with ReactJS.

19 lines (17 loc) 429 B
var STRING = require('../../tokenizer').TYPE.String; module.exports = { name: 'String', structure: { value: String }, parse: function() { return { type: 'String', loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd), value: this.scanner.consume(STRING) }; }, generate: function(node) { this.chunk(node.value); } };