mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-05-09 22:03:35 +08:00
24 lines
1.0 KiB
JavaScript
24 lines
1.0 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var literal_types_1 = require("../constants/literal_types");
|
|
var binding_when_on_syntax_1 = require("./binding_when_on_syntax");
|
|
var BindingInSyntax = (function () {
|
|
function BindingInSyntax(binding) {
|
|
this._binding = binding;
|
|
}
|
|
BindingInSyntax.prototype.inRequestScope = function () {
|
|
this._binding.scope = literal_types_1.BindingScopeEnum.Request;
|
|
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
};
|
|
BindingInSyntax.prototype.inSingletonScope = function () {
|
|
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
};
|
|
BindingInSyntax.prototype.inTransientScope = function () {
|
|
this._binding.scope = literal_types_1.BindingScopeEnum.Transient;
|
|
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
};
|
|
return BindingInSyntax;
|
|
}());
|
|
exports.BindingInSyntax = BindingInSyntax;
|