Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
701 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var tslib_1 = require("tslib");
|
---|
4 | var keyword_1 = tslib_1.__importDefault(require("../tree/keyword"));
|
---|
5 | var defaultFunc = {
|
---|
6 | eval: function () {
|
---|
7 | var v = this.value_;
|
---|
8 | var e = this.error_;
|
---|
9 | if (e) {
|
---|
10 | throw e;
|
---|
11 | }
|
---|
12 | if (v != null) {
|
---|
13 | return v ? keyword_1.default.True : keyword_1.default.False;
|
---|
14 | }
|
---|
15 | },
|
---|
16 | value: function (v) {
|
---|
17 | this.value_ = v;
|
---|
18 | },
|
---|
19 | error: function (e) {
|
---|
20 | this.error_ = e;
|
---|
21 | },
|
---|
22 | reset: function () {
|
---|
23 | this.value_ = this.error_ = null;
|
---|
24 | }
|
---|
25 | };
|
---|
26 | exports.default = defaultFunc;
|
---|
27 | //# sourceMappingURL=default.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.