forked from glayzzle/php-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring.js
More file actions
27 lines (25 loc) · 725 Bytes
/
string.js
File metadata and controls
27 lines (25 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
"use strict";
const Literal = require("./literal");
const KIND = "string";
/**
* Defines a string (simple or double quoted) - chars are already escaped
* @constructor String
* @memberOf module:php-parser
* @extends {Literal}
* @property {boolean} unicode
* @property {boolean} isDoubleQuote
* @see {Encapsed}
*/
module.exports = Literal.extends(
KIND,
function String(isDoubleQuote, value, unicode, raw, docs, location) {
Literal.apply(this, [KIND, value, raw, docs, location]);
this.unicode = unicode;
this.isDoubleQuote = isDoubleQuote;
}
);