Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
421 bytes
|
Line | |
---|
1 | var STRING = require('../../tokenizer').TYPE.String;
|
---|
2 |
|
---|
3 | module.exports = {
|
---|
4 | name: 'String',
|
---|
5 | structure: {
|
---|
6 | value: String
|
---|
7 | },
|
---|
8 | parse: function() {
|
---|
9 | return {
|
---|
10 | type: 'String',
|
---|
11 | loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
|
---|
12 | value: this.consume(STRING)
|
---|
13 | };
|
---|
14 | },
|
---|
15 | generate: function(node) {
|
---|
16 | this.chunk(node.value);
|
---|
17 | }
|
---|
18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.