main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
441 bytes
|
Rev | Line | |
---|
[d565449] | 1 | var TYPE = require('../../tokenizer').TYPE;
|
---|
| 2 |
|
---|
| 3 | var IDENT = TYPE.Ident;
|
---|
| 4 |
|
---|
| 5 | module.exports = {
|
---|
| 6 | name: 'Identifier',
|
---|
| 7 | structure: {
|
---|
| 8 | name: String
|
---|
| 9 | },
|
---|
| 10 | parse: function() {
|
---|
| 11 | return {
|
---|
| 12 | type: 'Identifier',
|
---|
| 13 | loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
|
---|
| 14 | name: this.consume(IDENT)
|
---|
| 15 | };
|
---|
| 16 | },
|
---|
| 17 | generate: function(node) {
|
---|
| 18 | this.chunk(node.name);
|
---|
| 19 | }
|
---|
| 20 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.