yapp 5.1.294 → 5.1.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.aiignore +12 -0
- package/.swcrc +4 -3
- package/example.js +7037 -12028
- package/lib/colours.js +26 -26
- package/lib/constants.js +9 -9
- package/lib/customEventTypes.js +2 -2
- package/lib/defaults.js +8 -8
- package/lib/div/gutter.js +49 -253
- package/lib/div/lineNumbers.js +42 -197
- package/lib/div/pretty.js +55 -257
- package/lib/div/syntax.js +78 -253
- package/lib/example/constants.js +2 -2
- package/lib/example/view/div/sizeable/left.js +12 -104
- package/lib/example/view/div/sizeable/middle.js +12 -104
- package/lib/example/view/div/sizeable/right.js +12 -104
- package/lib/example/view/div/sizeable/top.js +12 -104
- package/lib/example/view/input.js +11 -23
- package/lib/example/view/javascript.js +32 -86
- package/lib/example/view/json.js +20 -87
- package/lib/example/view/plainText.js +9 -87
- package/lib/example/view/subHeading.js +13 -23
- package/lib/example/view/textarea/bnf.js +21 -124
- package/lib/example/view/textarea/lexicalEntries.js +21 -124
- package/lib/example/view/textarea/parseTree.js +27 -130
- package/lib/example/view/textarea/tokens.js +40 -143
- package/lib/example/view/textarea.js +15 -23
- package/lib/example/view/xml.js +24 -87
- package/lib/example/view.js +85 -258
- package/lib/example/yapp.js +8 -86
- package/lib/example.js +11 -11
- package/lib/index.js +10 -10
- package/lib/languages.js +5 -5
- package/lib/lexer/javascript.js +21 -121
- package/lib/lexer/json.js +21 -121
- package/lib/lexer/plainText.js +21 -121
- package/lib/lexer/xml.js +21 -121
- package/lib/mixins/style.js +27 -27
- package/lib/parser/javascript.js +276 -115
- package/lib/parser/json.js +30 -110
- package/lib/parser/plainText.js +14 -110
- package/lib/parser/xml.js +55 -111
- package/lib/plugin/javascript.js +13 -156
- package/lib/plugin/json.js +13 -156
- package/lib/plugin/plainText.js +13 -156
- package/lib/plugin/xml.js +13 -156
- package/lib/plugin.js +41 -98
- package/lib/prettyPrinter.js +81 -273
- package/lib/processor/javascript.js +64 -153
- package/lib/processor/json.js +17 -105
- package/lib/processor/plainText.js +8 -96
- package/lib/processor/xml.js +32 -120
- package/lib/processor.js +53 -103
- package/lib/renderYappStyles.js +6 -6
- package/lib/richTextarea.js +66 -182
- package/lib/scheme/colour.js +17 -17
- package/lib/scheme/syntax/default.js +6 -6
- package/lib/scheme/syntax/javaScript.js +6 -6
- package/lib/scheme/syntax/json.js +3 -3
- package/lib/scheme/syntax/xml.js +4 -4
- package/lib/style/firaCode.js +18 -7
- package/lib/style/syntax/default.js +33 -5
- package/lib/style/syntax/javaScript.js +14 -4
- package/lib/style/syntax/json.js +8 -4
- package/lib/style/syntax/xml.js +10 -4
- package/lib/style/syntax.js +17 -7
- package/lib/style/yapp.js +70 -5
- package/lib/styles.js +3 -3
- package/lib/token/significant/argument.js +7 -91
- package/lib/token/significant/attribute.js +7 -91
- package/lib/token/significant/comment.js +7 -91
- package/lib/token/significant/error.js +7 -91
- package/lib/token/significant/jsx/attributeName.js +7 -91
- package/lib/token/significant/jsx/tagName.js +7 -91
- package/lib/token/significant/name.js +7 -91
- package/lib/token/significant/string.js +7 -91
- package/lib/token/significant/variable.js +7 -91
- package/lib/tokenTypes.js +9 -9
- package/lib/utilities/configuration.js +4 -6
- package/lib/utilities/content.js +10 -10
- package/lib/utilities/css.js +5 -5
- package/lib/utilities/element.js +5 -5
- package/lib/utilities/plugin.js +10 -11
- package/lib/utilities/rules.js +6 -6
- package/lib/utilities/scrollbar.js +7 -7
- package/lib/utilities/tokens.js +4 -4
- package/lib/yapp.js +115 -337
- package/package.json +3 -3
package/lib/style/yapp.js
CHANGED
|
@@ -8,9 +8,74 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var _default = yappStyle;
|
|
11
|
+
const _styles = require("../styles");
|
|
12
|
+
const _colour = require("../scheme/colour");
|
|
13
|
+
const yappStyle = `
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
.yapp {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
border: 1px solid ${_colour.borderColour};
|
|
19
|
+
background-color: ${_colour.backgroundColour};
|
|
20
|
+
|
|
21
|
+
font-size: 13px;
|
|
22
|
+
line-height: 20px;
|
|
23
|
+
font-family: "Menlo", "Lucida Sans Typewriter", monospace;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
text-rendering: initial;
|
|
26
|
+
font-feature-settings: initial;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.yapp.fira-code {
|
|
30
|
+
font-family: "Fira Code";
|
|
31
|
+
text-rendering: optimizeLegibility;
|
|
32
|
+
font-feature-settings: "calt" 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.yapp>.pretty-printer>.gutter {
|
|
36
|
+
border-right: 1px dotted ${_colour.borderColour};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.yapp>.pretty-printer>.gutter>.line-numbers {
|
|
40
|
+
color: ${_colour.colour};
|
|
41
|
+
margin: 0 6px 0 6px;
|
|
42
|
+
text-align: right;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.yapp>.pretty-printer textarea.rich {
|
|
46
|
+
caret-color: ${_colour.caretColour};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.yapp>.pretty-printer textarea.rich::selection {
|
|
50
|
+
color: ${_colour.selectionColour};
|
|
51
|
+
background-color: ${_colour.selectionBackgroundColour};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.yapp>.pretty-printer textarea.rich.fancy-scrollbars {
|
|
55
|
+
scrollbar-color: ${_colour.scrollbarColour} transparent;
|
|
56
|
+
scrollbar-gutter: auto;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.yapp>.pretty-printer textarea.rich.fancy-scrollbars::-webkit-scrollbar {
|
|
60
|
+
width: ${_styles.scrollbarThickness};
|
|
61
|
+
height: ${_styles.scrollbarThickness};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.yapp>.pretty-printer textarea.rich.fancy-scrollbars::-webkit-scrollbar-track {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.yapp>.pretty-printer textarea.rich.fancy-scrollbars::-webkit-scrollbar-thumb {
|
|
69
|
+
border: 2px solid ${_colour.backgroundColour};
|
|
70
|
+
border-radius: ${_styles.scrollbarThumbBorderRadius};
|
|
71
|
+
background-color: ${_colour.scrollbarColour};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.yapp>.pretty-printer textarea.rich.fancy-scrollbars::-webkit-scrollbar-corner {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
`;
|
|
79
|
+
const _default = yappStyle;
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHlsZS95YXBwLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgeyBzY3JvbGxiYXJUaGlja25lc3MsIHNjcm9sbGJhclRodW1iQm9yZGVyUmFkaXVzIH0gZnJvbSBcIi4uL3N0eWxlc1wiO1xuaW1wb3J0IHsgY29sb3VyLCBjYXJldENvbG91ciwgYm9yZGVyQ29sb3VyLCBzY3JvbGxiYXJDb2xvdXIsIHNlbGVjdGlvbkNvbG91ciwgYmFja2dyb3VuZENvbG91ciwgc2VsZWN0aW9uQmFja2dyb3VuZENvbG91ciB9IGZyb20gXCIuLi9zY2hlbWUvY29sb3VyXCI7XG5cbmNvbnN0IHlhcHBTdHlsZSA9IGBcblxuICAueWFwcCB7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICR7Ym9yZGVyQ29sb3Vyf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const scrollbarThumbBorderRadius = "8px";
|
|
21
21
|
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zdHlsZXMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmV4cG9ydCBjb25zdCBzY3JvbGxiYXJUaGlja25lc3MgPSBcIjEycHhcIjtcbmV4cG9ydCBjb25zdCBzY3JvbGxiYXJUaHVtYkJvcmRlclJhZGl1cyA9IFwiOHB4XCI7XG4iXSwibmFtZXMiOlsic2Nyb2xsYmFyVGhpY2tuZXNzIiwic2Nyb2xsYmFyVGh1bWJCb3JkZXJSYWRpdXMiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7OztRQUVhQTtlQUFBQTs7UUFDQUM7ZUFBQUE7OztBQUROLE1BQU1ELHFCQUFxQjtBQUMzQixNQUFNQyw2QkFBNkIifQ==
|
|
@@ -8,97 +8,13 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ArgumentToken;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const _occamlexers = require("occam-lexers");
|
|
12
|
+
const _tokenTypes = require("../../tokenTypes");
|
|
13
|
+
const type = _tokenTypes.ARGUMENT_TOKEN_TYPE; ///
|
|
14
|
+
class ArgumentToken extends _occamlexers.SignificantToken {
|
|
15
|
+
static fromContent(content) {
|
|
16
|
+
return _occamlexers.SignificantToken.fromContentAndType(ArgumentToken, content, type);
|
|
16
17
|
}
|
|
17
|
-
return self;
|
|
18
18
|
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
44
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
|
-
};
|
|
46
|
-
return _get_prototype_of(o);
|
|
47
|
-
}
|
|
48
|
-
function _inherits(subClass, superClass) {
|
|
49
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
-
}
|
|
52
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
53
|
-
constructor: {
|
|
54
|
-
value: subClass,
|
|
55
|
-
writable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
try {
|
|
80
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
} catch (_) {}
|
|
82
|
-
return (_is_native_reflect_construct = function() {
|
|
83
|
-
return !!result;
|
|
84
|
-
})();
|
|
85
|
-
}
|
|
86
|
-
var type = _tokenTypes.ARGUMENT_TOKEN_TYPE; ///
|
|
87
|
-
var ArgumentToken = /*#__PURE__*/ function(SignificantToken) {
|
|
88
|
-
_inherits(ArgumentToken, SignificantToken);
|
|
89
|
-
function ArgumentToken() {
|
|
90
|
-
_class_call_check(this, ArgumentToken);
|
|
91
|
-
return _call_super(this, ArgumentToken, arguments);
|
|
92
|
-
}
|
|
93
|
-
_create_class(ArgumentToken, null, [
|
|
94
|
-
{
|
|
95
|
-
key: "fromContent",
|
|
96
|
-
value: function fromContent(content) {
|
|
97
|
-
return _occamlexers.SignificantToken.fromContentAndType(ArgumentToken, content, type);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]);
|
|
101
|
-
return ArgumentToken;
|
|
102
|
-
}(_occamlexers.SignificantToken);
|
|
103
19
|
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90b2tlbi9z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|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const _occamlexers = require("occam-lexers");
|
|
12
|
+
const _tokenTypes = require("../../tokenTypes");
|
|
13
|
+
const type = _tokenTypes.ATTRIBUTE_TOKEN_TYPE; ///
|
|
14
|
+
class AttributeToken extends _occamlexers.SignificantToken {
|
|
15
|
+
static fromContent(content) {
|
|
16
|
+
return _occamlexers.SignificantToken.fromContentAndType(AttributeToken, content, type);
|
|
16
17
|
}
|
|
17
|
-
return self;
|
|
18
18
|
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
44
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
|
-
};
|
|
46
|
-
return _get_prototype_of(o);
|
|
47
|
-
}
|
|
48
|
-
function _inherits(subClass, superClass) {
|
|
49
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
-
}
|
|
52
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
53
|
-
constructor: {
|
|
54
|
-
value: subClass,
|
|
55
|
-
writable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
try {
|
|
80
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
} catch (_) {}
|
|
82
|
-
return (_is_native_reflect_construct = function() {
|
|
83
|
-
return !!result;
|
|
84
|
-
})();
|
|
85
|
-
}
|
|
86
|
-
var type = _tokenTypes.ATTRIBUTE_TOKEN_TYPE; ///
|
|
87
|
-
var AttributeToken = /*#__PURE__*/ function(SignificantToken) {
|
|
88
|
-
_inherits(AttributeToken, SignificantToken);
|
|
89
|
-
function AttributeToken() {
|
|
90
|
-
_class_call_check(this, AttributeToken);
|
|
91
|
-
return _call_super(this, AttributeToken, arguments);
|
|
92
|
-
}
|
|
93
|
-
_create_class(AttributeToken, null, [
|
|
94
|
-
{
|
|
95
|
-
key: "fromContent",
|
|
96
|
-
value: function fromContent(content) {
|
|
97
|
-
return _occamlexers.SignificantToken.fromContentAndType(AttributeToken, content, type);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]);
|
|
101
|
-
return AttributeToken;
|
|
102
|
-
}(_occamlexers.SignificantToken);
|
|
103
19
|
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90b2tlbi9zaWduaWZpY2FudC9hdHRyaWJ1dGUuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB7IFNpZ25pZmljYW50VG9rZW4gfSBmcm9tIFwib2NjYW0tbGV4ZXJzXCI7XG5cbmltcG9ydCB7IEFUVFJJQlVURV9UT0tFTl9UWVBFIH0gZnJvbSBcIi4uLy4uL3Rva2VuVHlwZXNcIjtcblxuY29uc3QgdHlwZSA9IEFUVFJJQlVURV9UT0tFTl9UWVBFOyAgLy8vXG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIEF0dHJpYnV0ZVRva2VuIGV4dGVuZHMgU2lnbmlmaWNhbnRUb2tlbiB7XG4gIHN0YXRpYyBmcm9tQ29udGVudChjb250ZW50KSB7IHJldHVybiBTaWduaWZpY2FudFRva2VuLmZyb21Db250ZW50QW5kVHlwZShBdHRyaWJ1dGVUb2tlbiwgY29udGVudCwgdHlwZSk7IH1cbn1cbiJdLCJuYW1lcyI6WyJBdHRyaWJ1dGVUb2tlbiIsInR5cGUiLCJBVFRSSUJVVEVfVE9LRU5fVFlQRSIsIlNpZ25pZmljYW50VG9rZW4iLCJmcm9tQ29udGVudCIsImNvbnRlbnQiLCJmcm9tQ29udGVudEFuZFR5cGUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQVFBOzs7ZUFBcUJBOzs7NkJBTlk7NEJBRUk7QUFFckMsTUFBTUMsT0FBT0MsZ0NBQW9CLEVBQUcsR0FBRztBQUV4QixNQUFNRix1QkFBdUJHLDZCQUFnQjtJQUMxRCxPQUFPQyxZQUFZQyxPQUFPLEVBQUU7UUFBRSxPQUFPRiw2QkFBZ0IsQ0FBQ0csa0JBQWtCLENBQUNOLGdCQUFnQkssU0FBU0o7SUFBTztBQUMzRyJ9
|
|
@@ -8,97 +8,13 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return CommentToken;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const _occamlexers = require("occam-lexers");
|
|
12
|
+
const _tokenTypes = require("../../tokenTypes");
|
|
13
|
+
const type = _tokenTypes.COMMENT_TOKEN_TYPE; ///
|
|
14
|
+
class CommentToken extends _occamlexers.SignificantToken {
|
|
15
|
+
static fromContent(content) {
|
|
16
|
+
return _occamlexers.SignificantToken.fromContentAndType(CommentToken, content, type);
|
|
16
17
|
}
|
|
17
|
-
return self;
|
|
18
18
|
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
44
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
|
-
};
|
|
46
|
-
return _get_prototype_of(o);
|
|
47
|
-
}
|
|
48
|
-
function _inherits(subClass, superClass) {
|
|
49
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
-
}
|
|
52
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
53
|
-
constructor: {
|
|
54
|
-
value: subClass,
|
|
55
|
-
writable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
try {
|
|
80
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
} catch (_) {}
|
|
82
|
-
return (_is_native_reflect_construct = function() {
|
|
83
|
-
return !!result;
|
|
84
|
-
})();
|
|
85
|
-
}
|
|
86
|
-
var type = _tokenTypes.COMMENT_TOKEN_TYPE; ///
|
|
87
|
-
var CommentToken = /*#__PURE__*/ function(SignificantToken) {
|
|
88
|
-
_inherits(CommentToken, SignificantToken);
|
|
89
|
-
function CommentToken() {
|
|
90
|
-
_class_call_check(this, CommentToken);
|
|
91
|
-
return _call_super(this, CommentToken, arguments);
|
|
92
|
-
}
|
|
93
|
-
_create_class(CommentToken, null, [
|
|
94
|
-
{
|
|
95
|
-
key: "fromContent",
|
|
96
|
-
value: function fromContent(content) {
|
|
97
|
-
return _occamlexers.SignificantToken.fromContentAndType(CommentToken, content, type);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]);
|
|
101
|
-
return CommentToken;
|
|
102
|
-
}(_occamlexers.SignificantToken);
|
|
103
19
|
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90b2tlbi9zaWduaWZpY2FudC9jb21tZW50LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgeyBTaWduaWZpY2FudFRva2VuIH0gZnJvbSBcIm9jY2FtLWxleGVyc1wiO1xuXG5pbXBvcnQgeyBDT01NRU5UX1RPS0VOX1RZUEUgfSBmcm9tIFwiLi4vLi4vdG9rZW5UeXBlc1wiO1xuXG5jb25zdCB0eXBlID0gQ09NTUVOVF9UT0tFTl9UWVBFOyAgLy8vXG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIENvbW1lbnRUb2tlbiBleHRlbmRzIFNpZ25pZmljYW50VG9rZW4ge1xuICBzdGF0aWMgZnJvbUNvbnRlbnQoY29udGVudCkgeyByZXR1cm4gU2lnbmlmaWNhbnRUb2tlbi5mcm9tQ29udGVudEFuZFR5cGUoQ29tbWVudFRva2VuLCBjb250ZW50LCB0eXBlKTsgfVxufVxuIl0sIm5hbWVzIjpbIkNvbW1lbnRUb2tlbiIsInR5cGUiLCJDT01NRU5UX1RPS0VOX1RZUEUiLCJTaWduaWZpY2FudFRva2VuIiwiZnJvbUNvbnRlbnQiLCJjb250ZW50IiwiZnJvbUNvbnRlbnRBbmRUeXBlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFRQTs7O2VBQXFCQTs7OzZCQU5ZOzRCQUVFO0FBRW5DLE1BQU1DLE9BQU9DLDhCQUFrQixFQUFHLEdBQUc7QUFFdEIsTUFBTUYscUJBQXFCRyw2QkFBZ0I7SUFDeEQsT0FBT0MsWUFBWUMsT0FBTyxFQUFFO1FBQUUsT0FBT0YsNkJBQWdCLENBQUNHLGtCQUFrQixDQUFDTixjQUFjSyxTQUFTSjtJQUFPO0FBQ3pHIn0=
|
|
@@ -8,97 +8,13 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ErrorToken;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const _occamlexers = require("occam-lexers");
|
|
12
|
+
const _tokenTypes = require("../../tokenTypes");
|
|
13
|
+
const type = _tokenTypes.ERROR_TOKEN_TYPE; ///
|
|
14
|
+
class ErrorToken extends _occamlexers.SignificantToken {
|
|
15
|
+
static fromContent(content) {
|
|
16
|
+
return _occamlexers.SignificantToken.fromContentAndType(ErrorToken, content, type);
|
|
16
17
|
}
|
|
17
|
-
return self;
|
|
18
18
|
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
44
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
|
-
};
|
|
46
|
-
return _get_prototype_of(o);
|
|
47
|
-
}
|
|
48
|
-
function _inherits(subClass, superClass) {
|
|
49
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
-
}
|
|
52
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
53
|
-
constructor: {
|
|
54
|
-
value: subClass,
|
|
55
|
-
writable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
try {
|
|
80
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
} catch (_) {}
|
|
82
|
-
return (_is_native_reflect_construct = function() {
|
|
83
|
-
return !!result;
|
|
84
|
-
})();
|
|
85
|
-
}
|
|
86
|
-
var type = _tokenTypes.ERROR_TOKEN_TYPE; ///
|
|
87
|
-
var ErrorToken = /*#__PURE__*/ function(SignificantToken) {
|
|
88
|
-
_inherits(ErrorToken, SignificantToken);
|
|
89
|
-
function ErrorToken() {
|
|
90
|
-
_class_call_check(this, ErrorToken);
|
|
91
|
-
return _call_super(this, ErrorToken, arguments);
|
|
92
|
-
}
|
|
93
|
-
_create_class(ErrorToken, null, [
|
|
94
|
-
{
|
|
95
|
-
key: "fromContent",
|
|
96
|
-
value: function fromContent(content) {
|
|
97
|
-
return _occamlexers.SignificantToken.fromContentAndType(ErrorToken, content, type);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]);
|
|
101
|
-
return ErrorToken;
|
|
102
|
-
}(_occamlexers.SignificantToken);
|
|
103
19
|
|
|
104
|
-
//# sourceMappingURL=data:application/json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
|
|
|
8
8
|
return JSXAttributeNameToken;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const _occamlexers = require("occam-lexers");
|
|
12
|
+
const _tokenTypes = require("../../../tokenTypes");
|
|
13
|
+
const type = _tokenTypes.JSX_ATTRIBUTE_NAME_TOKEN_TYPE; ///
|
|
14
|
+
class JSXAttributeNameToken extends _occamlexers.SignificantToken {
|
|
15
|
+
static fromContent(content) {
|
|
16
|
+
return _occamlexers.SignificantToken.fromContentAndType(JSXAttributeNameToken, content, type);
|
|
16
17
|
}
|
|
17
|
-
return self;
|
|
18
18
|
}
|
|
19
|
-
function _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
44
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
|
-
};
|
|
46
|
-
return _get_prototype_of(o);
|
|
47
|
-
}
|
|
48
|
-
function _inherits(subClass, superClass) {
|
|
49
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
-
}
|
|
52
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
53
|
-
constructor: {
|
|
54
|
-
value: subClass,
|
|
55
|
-
writable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
try {
|
|
80
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
} catch (_) {}
|
|
82
|
-
return (_is_native_reflect_construct = function() {
|
|
83
|
-
return !!result;
|
|
84
|
-
})();
|
|
85
|
-
}
|
|
86
|
-
var type = _tokenTypes.JSX_ATTRIBUTE_NAME_TOKEN_TYPE; ///
|
|
87
|
-
var JSXAttributeNameToken = /*#__PURE__*/ function(SignificantToken) {
|
|
88
|
-
_inherits(JSXAttributeNameToken, SignificantToken);
|
|
89
|
-
function JSXAttributeNameToken() {
|
|
90
|
-
_class_call_check(this, JSXAttributeNameToken);
|
|
91
|
-
return _call_super(this, JSXAttributeNameToken, arguments);
|
|
92
|
-
}
|
|
93
|
-
_create_class(JSXAttributeNameToken, null, [
|
|
94
|
-
{
|
|
95
|
-
key: "fromContent",
|
|
96
|
-
value: function fromContent(content) {
|
|
97
|
-
return _occamlexers.SignificantToken.fromContentAndType(JSXAttributeNameToken, content, type);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]);
|
|
101
|
-
return JSXAttributeNameToken;
|
|
102
|
-
}(_occamlexers.SignificantToken);
|
|
103
19
|
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy90b2tlbi9zaWduaWZpY2FudC9qc3gvYXR0cmlidXRlTmFtZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHsgU2lnbmlmaWNhbnRUb2tlbiB9IGZyb20gXCJvY2NhbS1sZXhlcnNcIjtcblxuaW1wb3J0IHsgSlNYX0FUVFJJQlVURV9OQU1FX1RPS0VOX1RZUEUgfSBmcm9tIFwiLi4vLi4vLi4vdG9rZW5UeXBlc1wiO1xuXG5jb25zdCB0eXBlID0gSlNYX0FUVFJJQlVURV9OQU1FX1RPS0VOX1RZUEU7ICAvLy9cblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgSlNYQXR0cmlidXRlTmFtZVRva2VuIGV4dGVuZHMgU2lnbmlmaWNhbnRUb2tlbiB7XG4gIHN0YXRpYyBmcm9tQ29udGVudChjb250ZW50KSB7IHJldHVybiBTaWduaWZpY2FudFRva2VuLmZyb21Db250ZW50QW5kVH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