UNPKG

react-kiwi-dropdown

Version:

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

20 lines (18 loc) 463 B
var TYPE = require('../../tokenizer').TYPE; var IDENTIFIER = TYPE.Identifier; module.exports = { name: 'Identifier', structure: { name: String }, parse: function() { return { type: 'Identifier', loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd), name: this.scanner.consume(IDENTIFIER) }; }, generate: function(node) { this.chunk(node.name); } };