Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
441 bytes
|
Line | |
---|
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.