|
Last change
on this file since 9af201e was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
692 bytes
|
| Line | |
|---|
| 1 | var TYPE = require('../../tokenizer').TYPE;
|
|---|
| 2 | var rawMode = require('../node/Raw').mode;
|
|---|
| 3 |
|
|---|
| 4 | var COMMA = TYPE.Comma;
|
|---|
| 5 |
|
|---|
| 6 | // var( <ident> , <value>? )
|
|---|
| 7 | module.exports = function() {
|
|---|
| 8 | var children = this.createList();
|
|---|
| 9 |
|
|---|
| 10 | this.scanner.skipSC();
|
|---|
| 11 |
|
|---|
| 12 | // NOTE: Don't check more than a first argument is an ident, rest checks are for lexer
|
|---|
| 13 | children.push(this.Identifier());
|
|---|
| 14 |
|
|---|
| 15 | this.scanner.skipSC();
|
|---|
| 16 |
|
|---|
| 17 | if (this.scanner.tokenType === COMMA) {
|
|---|
| 18 | children.push(this.Operator());
|
|---|
| 19 | children.push(this.parseCustomProperty
|
|---|
| 20 | ? this.Value(null)
|
|---|
| 21 | : this.Raw(this.scanner.tokenIndex, rawMode.exclamationMarkOrSemicolon, false)
|
|---|
| 22 | );
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | return children;
|
|---|
| 26 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.