Website/node_modules/yaml-js/lib/events.js

189 lines
4.6 KiB
JavaScript

(function() {
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
this.Event = (function() {
function Event(start_mark, end_mark) {
this.start_mark = start_mark;
this.end_mark = end_mark;
}
return Event;
})();
this.NodeEvent = (function(_super) {
__extends(NodeEvent, _super);
function NodeEvent(anchor, start_mark, end_mark) {
this.anchor = anchor;
this.start_mark = start_mark;
this.end_mark = end_mark;
}
return NodeEvent;
})(this.Event);
this.CollectionStartEvent = (function(_super) {
__extends(CollectionStartEvent, _super);
function CollectionStartEvent(anchor, tag, implicit, start_mark, end_mark) {
this.anchor = anchor;
this.tag = tag;
this.implicit = implicit;
this.start_mark = start_mark;
this.end_mark = end_mark;
}
return CollectionStartEvent;
})(this.NodeEvent);
this.CollectionEndEvent = (function(_super) {
__extends(CollectionEndEvent, _super);
function CollectionEndEvent() {
_ref = CollectionEndEvent.__super__.constructor.apply(this, arguments);
return _ref;
}
return CollectionEndEvent;
})(this.Event);
this.StreamStartEvent = (function(_super) {
__extends(StreamStartEvent, _super);
function StreamStartEvent(start_mark, end_mark, explicit, version, tags) {
this.start_mark = start_mark;
this.end_mark = end_mark;
this.explicit = explicit;
this.version = version;
this.tags = tags;
}
return StreamStartEvent;
})(this.Event);
this.StreamEndEvent = (function(_super) {
__extends(StreamEndEvent, _super);
function StreamEndEvent() {
_ref1 = StreamEndEvent.__super__.constructor.apply(this, arguments);
return _ref1;
}
return StreamEndEvent;
})(this.Event);
this.DocumentStartEvent = (function(_super) {
__extends(DocumentStartEvent, _super);
function DocumentStartEvent(start_mark, end_mark, explicit, version, tags) {
this.start_mark = start_mark;
this.end_mark = end_mark;
this.explicit = explicit;
this.version = version;
this.tags = tags;
}
return DocumentStartEvent;
})(this.Event);
this.DocumentEndEvent = (function(_super) {
__extends(DocumentEndEvent, _super);
function DocumentEndEvent(start_mark, end_mark, explicit) {
this.start_mark = start_mark;
this.end_mark = end_mark;
this.explicit = explicit;
}
return DocumentEndEvent;
})(this.Event);
this.AliasEvent = (function(_super) {
__extends(AliasEvent, _super);
function AliasEvent() {
_ref2 = AliasEvent.__super__.constructor.apply(this, arguments);
return _ref2;
}
return AliasEvent;
})(this.NodeEvent);
this.ScalarEvent = (function(_super) {
__extends(ScalarEvent, _super);
function ScalarEvent(anchor, tag, implicit, value, start_mark, end_mark, style) {
this.anchor = anchor;
this.tag = tag;
this.implicit = implicit;
this.value = value;
this.start_mark = start_mark;
this.end_mark = end_mark;
this.style = style;
}
return ScalarEvent;
})(this.NodeEvent);
this.SequenceStartEvent = (function(_super) {
__extends(SequenceStartEvent, _super);
function SequenceStartEvent() {
_ref3 = SequenceStartEvent.__super__.constructor.apply(this, arguments);
return _ref3;
}
return SequenceStartEvent;
})(this.CollectionStartEvent);
this.SequenceEndEvent = (function(_super) {
__extends(SequenceEndEvent, _super);
function SequenceEndEvent() {
_ref4 = SequenceEndEvent.__super__.constructor.apply(this, arguments);
return _ref4;
}
return SequenceEndEvent;
})(this.CollectionEndEvent);
this.MappingStartEvent = (function(_super) {
__extends(MappingStartEvent, _super);
function MappingStartEvent() {
_ref5 = MappingStartEvent.__super__.constructor.apply(this, arguments);
return _ref5;
}
return MappingStartEvent;
})(this.CollectionStartEvent);
this.MappingEndEvent = (function(_super) {
__extends(MappingEndEvent, _super);
function MappingEndEvent() {
_ref6 = MappingEndEvent.__super__.constructor.apply(this, arguments);
return _ref6;
}
return MappingEndEvent;
})(this.CollectionEndEvent);
}).call(this);